LanguageServer.jl
LanguageServer.jl copied to clipboard
Getting Julia LanguageServer in Julia Environments to work with helix
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.