-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix julials configuration #258
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
Conversation
|
I think your commit is not clean: it has changes to jedi and dart, too. Might need a rebase :) |
|
Oh, sorry, it's the bot's commit that is not clean. I don't know what that's about, so I'll bow out. |
|
I branched from the latest |
|
So this PR is ready to be reviewed. |
|
@h-michael I have a question here. The previous implementation of the configuration was installing the Julia LanguageServer and SymbolServer packages in the global Julia environment. This is not recommended by the LanguageServer developers. Julia has good support for environments using built in package manager. After discussing with other Julia users, I've modified the PR above to add an environment that is specified by a My question is, is this okay? Where should one put supplementary files to the lua files. Right now I put the |
I think this should be made configurable, analogously to the |
|
Thanks for the comment @clason! I think making that configurable as part of a user setting is straightforward. But we still need to ship the |
|
Okay, I've updated it such that it uses |
|
I was about to write something like that :) One small nit: I wouldn't hard code the path but refer to the XDG compliant variables (e.g., |
|
I've used this: On my computer, other language servers seem to put files in there. So I think that should be fine. It expands to the I've hardcoded it in the docstring though. Maybe I should change it there was well? |
Well, the doc string should correspond to what actually happens :) Yes, better replace it with that, otherwise it will be confusing on Windows... (If you look at |
|
Okay great! Thanks for all the comments! I've updated it so that docstring uses the same |
|
(but my user name isn't And just to make sure: if you put the server in a separate environment, it will still index and provide info for packages you use in the actual environment you're working on? |
|
Yeah, the user name being Yes, it should! If you can try it and report any issues that would be great. I'm actually having issues in some packages where it is working fine within the package but isn't tracking dependencies correctly. I'm looking into it at the moment. |
|
Okay, dependencies are being found correctly now as well! Thanks to @non-Jedi for all the help figuring this out. |
|
With the exception of autocomplete, everything is working as expected for me across multiple projects. This should be good to do :) cc @h-michael |
skip-checks: true
|
I've made the change you requested @h-michael and rebased on top of the latest master as well. |
|
Ty :) |
This PR updates julials to a working configuration. It appears adding
using SymbolServeris important to prevent segfaults.See julia-vscode/LanguageServer.jl#735 for more information.