-
Notifications
You must be signed in to change notification settings - Fork 409
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow jdtls.py to be dynamically imported #3386
Conversation
Signed-off-by: Trenek <[email protected]>
Can one of the admins verify this patch? |
Would you be able to set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, had to ask since even https://docs.python.org/3/library/importlib.html#importing-a-source-file-directly mentions this approach should be a last resort.
I keep forgetting this becomes an issue for contributors outside Eclipse, but would you be able to sign the ECA : https://www.eclipse.org/legal/eca/ ? If you really can't I can try double checking if there's any criteria where I can bypass, but I'm pretty sure it needs to be signed. |
Co-authored-by: Roland Grunberg <[email protected]>
Oh, sure, I actually already did, but by clicking commit on github it automatically gave my other e-mail lol |
ok, I did change the commit author to my other email, now everything seems fine ^^ |
Thanks for taking the time to do this! |
@Trenek out of curiosity, would you be able to share how you were setting up JDT-LS in order to run into this issue. Were For example, if I just create a simple python script to output the module path :
executing it from any location, will always include the script's directory on the module path :
|
I downloaded jdtls from here, |
Previous

jdtls
script didn't importjdtls.py
properly, this is a problem I happened to have.The proposed change solves this problem entirely by importing
jdtls.py
module dynamically