When setting the julia.executablePath
to my julia executable, the julia language plugin crashes, and gives the following output:
┌ Warning: Some Julia code in the VS Code extension crashed with
│ e = InvalidStateException("Channel is closed.", :closed)
└ @ Main ~/.vscode-server/extensions/julialang.language-julia-1.1.38/scripts/error_handler.jl:5
ERROR: InvalidStateException("Channel is closed.", :closed)
Stacktrace:
[1] try_yieldto(undo::typeof(Base.ensure_rescheduled))
@ Base ./task.jl:705
[2] wait
@ ./task.jl:764 [inlined]
[3] wait(c::Base.GenericCondition{ReentrantLock})
@ Base ./condition.jl:106
[4] take_buffered(c::Channel{Any})
@ Base ./channels.jl:389
[5] take!
@ ./channels.jl:383 [inlined]
[6] get_next_message(endpoint::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint})
@ JSONRPC ~/.vscode-server/extensions/julialang.language-julia-1.1.38/scripts/packages/JSONRPC/src/core.jl:197
[7] macro expansion
@ ~/.vscode-server/extensions/julialang.language-julia-1.1.38/scripts/packages/LanguageServer/src/languageserverinstance.jl:263 [inlined]
[8] (::LanguageServer.var"#98#100"{LanguageServerInstance})()
@ LanguageServer ./task.jl:406
When removing the explicit running of the language server, as posted originally, I get a different error, with the server crashing:
[Error - 4:06:12 PM] Starting client failed
Error: Unsupported server configuration {
"run": {
"command": null,
"args": [
"--startup-file=no",
"--history-file=no",
"--depwarn=no",
"--project=/gpfs01/home/user/.vscode-server/extensions/julialang.language-julia-1.1.38/scripts/environments/languageserver",
"main.jl",
"/gpfs01/home/user/dev/julia/HPC",
"--debug=no",
"/tmp/vsc-jl-cr-552dc18e-d1cf-43c9-acbe-97cd49de6433",
"",
"/gpfs01/home/user/.vscode-server/data/User/globalStorage/julialang.language-julia"
],
"options": {
"cwd": "/gpfs01/home/user/.vscode-server/extensions/julialang.language-julia-1.1.38/scripts/languageserver",
"env": {
"JULIA_DEPOT_PATH": "/gpfs01/home/user/.vscode-server/data/User/globalStorage/julialang.language-julia/lsdepot/v1",
"JULIA_LOAD_PATH": ":",
"HOME": "/gpfs01/home/user",
"JULIA_LANGUAGESERVER": "1"
}
}
},
"debug": {
"command": null,
"args": [
"--startup-file=no",
"--history-file=no",
"--depwarn=no",
"--project=/gpfs01/home/user/.vscode-server/extensions/julialang.language-julia-1.1.38/scripts/environments/languageserver",
"main.jl",
"/gpfs01/home/user/dev/julia/HPC",
"--debug=yes",
"/tmp/vsc-jl-cr-552dc18e-d1cf-43c9-acbe-97cd49de6433",
"",
"/gpfs01/home/user/.vscode-server/data/User/globalStorage/julialang.language-julia"
],
"options": {
"cwd": "/gpfs01/home/user/.vscode-server/extensions/julialang.language-julia-1.1.38/scripts/languageserver",
"env": {
"JULIA_DEPOT_PATH": "/gpfs01/home/user/.vscode-server/data/User/globalStorage/julialang.language-julia/lsdepot/v1",
"JULIA_LOAD_PATH": ":",
"HOME": "/gpfs01/home/user",
"JULIA_LANGUAGESERVER": "1"
}
}
}
}
at /gpfs01/home/user/.vscode-server/extensions/julialang.language-julia-1.1.38/dist/extension.js:7:56727