Closed
Description
When starting the LanguageServer with lsp
, the LanguageServer starts but eventually crashes with the following error appearing in julia-ls:stderr
;
[ Info: Received new data from Julia Symbol Server.
ERROR: MethodError: no method matching Union{Int64, String}(::String)
Stacktrace:
[1] LanguageServer.InitializeParams(::Dict{String,Any}) at /home/gijs/.julia/packages/LanguageServer/y1ebo/src/protocol/initialize.jl:111
[2] dispatch_msg(::JSONRPC.JSONRPCEndpoint, ::JSONRPC.MsgDispatcher, ::Dict{String,Any}) at /home/gijs/.julia/packages/JSONRPC/1Kq3H/src/typed.jl:64
[3] run(::LanguageServerInstance) at /home/gijs/.julia/packages/LanguageServer/y1ebo/src/languageserverinstance.jl:308
[4] top-level scope at none:1
This is an issue that was filed at julia-vscode/LanguageServer.jl
as well, more details there julia-vscode/LanguageServer.jl#651.
If I understand correctly, a fix has been merged here julia-vscode/LanguageServer.jl#821, but this isn't present in the latest release.
If I install the master branch directly, with
(@v1.5) pkg> add https://github.com/julia-vscode/LanguageServer.jl
the server starts without this error and appears to work well. This will eventually be resolved by a new release of LanguageServer.jl
, but I thought to file this anyway for anyone using lsp-julia
.
Metadata
Metadata
Assignees
Labels
No labels