#julia-lsp crashes instantly
1 messages · Page 1 of 1 (latest)
Does it happen everytime ? I remember the Julia LSP implementation to be very slow, maybe some limit is reached sometimes. I have this problem too on Neovim though not on every session. Sometimes it just takes very long to start.
I just ditched the LS and prefer relying on good ol doc.
everytime, It doesn't even start
the thing i don't like about lsp that completions does not work the same way in pluto i can't write composition of functions without inserting some extra space for lsp to pick up that i want to complete to \circ
Tho that was about edior not lsp
Well i can hardly tell. I did not have the issue when installing the LS with mason.
mason says that everything is okay, but when attaching to file there is an error that
Client julias quit with exit code 1 and signal 0
Does :checkhealth yield anything bad ?
output of mason.health
mason says that julia-lsp is installed
- ADVICE:
- spawn: julia failed with exit code - and signal -. julia is not executable```
hm
Is julia executable in your shell ? I guess it is but who knows
also, check if you have the language server installed in $HOME/.local/share/nvim/mason/packages/julia-lsp/libexec/extension/scripts/packages/
when i type julia repl comes up
is the command defined in your bashrc or equivalent, or is it really a binary on the PATH ?
CommandType Name Version Source
Application julia.exe 0.0.0.0 C:\Users\jll\AppData\Local\Microsoft\Win…
i have juliaup installed using windows store
Version 1.11.0-rc2 (2024-07-29) of julia
Does not seem wrong. I guess the only thing left to do is to open a question asking how neovim finds the julia exe. I had to set the paths for node and python in mine, but the associated parameters are easily found.
this is output of lspinfo
now cmd is executable
added to path julia 1.11.0, i think problem is with juliaup being installed from microsoft store
idk
it found root
but crashed with exit code 1
"[ Info: Starting LS with Julia 1.11.0-rc2"" Activating"" project at `C:\Users\jll\AppData\Local\nvim-data\mason\packages\julia-lsp\extension\scripts\environments\languageserver\v1.11`""[ Info: Starting the Julia Language Server""[ Info: Symbol server store is at 'C:\Users\jll\AppData\Local\nvim-data\mason\packages\julia-lsp\bin\..\store\symbolstorev5'.""[ Info: Starting LS at 1724610841""┌ Error: Some Julia code in the VS Code extension crashed└ @ Main C:\Users\jll\AppData\Local\nvim-data\mason\packages\julia-lsp\extension\scripts\error_handler.jl:15""ERROR: ""This should not happen""Stacktrace:"""" "" [1]"" ""error(s::String)"""" @"" ""Base"" "".\""error.jl:35"" "" [2]"" ""initialized_notification(params::LanguageServer.InitializedParams, server::LanguageServerInstance, conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint})"" @"" ""LanguageServer"" C:\Users\jll\AppData\Local\nvim-data\mason\packages\julia-lsp\extension\scripts\packages\LanguageServer\src\requests\""init.jl:257"""" "" [3]"" "'(::LanguageServer.var"#108#109"{typeof(LanguageServer.initialized_notification), LanguageServerInstance})(conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::LanguageServer.InitializedParams)'""" @"" ""LanguageServer"" ""C:\Users\jll\AppData\Local\nvim-data\mason\packages\julia-lsp\extension\scripts\packages\LanguageServer\src\""languageserverinstance.jl:283""""
"" [4]"" ""dispatch_msg(x::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::JSONRPC.MsgDispatcher, msg::Dict{String, Any})"""" @"" ""JSONRPC"" ""C:\Users\jll\AppData\Local\nvim-data\mason\packages\julia-lsp\extension\scripts\packages\JSONRPC\src\""typed.jl:67"""" "" [5]"" ""run(server::LanguageServerInstance; timings::Vector{Any})"""" @"" ""LanguageServer"" C:\Users\jll\AppData\Local\nvim-data\mason\packages\julia-lsp\extension\scripts\packages\LanguageServer\src\""languageserverinstance.jl:416"""" [6] ""run(server::LanguageServerInstance)"""" @"" ""LanguageServer"" ""C:\Users\jll\AppData\Local\nvim-data\mason\packages\julia-lsp\extension\scripts\packages\LanguageServer\src\""languageserverinstance.jl:293"""" "" [7]"" ""top-level scope"""" @"" ""C:\Users\jll\AppData\Local\nvim-data\mason\packages\julia-lsp\extension\scripts\languageserver\""main.jl:189"" [8]"" ""include(mod::Module, _path::String)"" @"" ""Base"" "".\""Base.jl:558"""" "" [9]"" ""exec_options(opts::Base.JLOptions)"" @"" ""Base "".\""client.jl:318""""RROR: The pipe is being closed. ""Base"" "".\""client.jl:526""""
idk
waisting too much time on this
Hah btw this reminds me my good ol transparent gruvbox days, pretty cool theme you have there
did you enter a julia environment or are you on the global one ? maybe there is an issue with that
Thnx
Yup i m on global one i have languageserver and pluto insalled only
In global 1.11.0 env
Maybe try in a project env, who knows
https://github.com/mason-org/julia-lsp I also found this, maybe the question can go here
Apparently you can set julia's location with the JULIA_LSP_JULIA_BIN variable
I gave it a trash value and I got an issue with the LSP. Maybe it'll solve your problem if you set it to your julia runtime.
tried setting path but didn't help
it crashes after attaching
i think it can't find where libraries are or something like that
Might be Windows related too. I dont really know how is it organized there... your best bet is an issue on mason's julia lsp repo I guess.
Thnx for suggestions