Skip to content
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

Getting Julia LanguageServer in Julia Environments to work with helix #1315

Open
vishalpaudel opened this issue Aug 19, 2024 · 0 comments
Open

Comments

@vishalpaudel
Copy link

Hi! I am trying to get Julia LSP to work with helix editor for environments, and I need help understanding how to achieve this.

Helix uses the following config for Julia LSP source:

julia = { command = "julia", timeout = 60, args = [ "--startup-file=no", "--history-file=no", "--quiet", "-e", "using LanguageServer; runserver()", ] }

And in the Julia LanguageServer docs it says to use the following:

"To run an instance of LanguageServer.jl on env_path, you can run Julia as follows:

julia --project=/path/to/LanguageServer.jl/environment \
 -e "using LanguageServer; runserver()" \
 <env_path>

If env_path is not specified, the language server will run on the parent project of pwd or on the default .julia/environments/v#.# if there is no parent project."

I think the helix config for Julia LSP should work as per the defaults of LanguageServer.

In the following image you can see @variable syntax of JuliaSymbolics not being recognized inside a Julia environment (Project.toml, Manifest.toml). But if I were to open the same files after deleting Project.toml and Manifest.toml from the project root (the screenshot of which I have not added yet), and have the said packages installed in my base enviroment, then the @variable syntax is recognized flawlessly.

What is the issue? I can give any further details that are required.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant