When running LSP in emacs, it always tells me it's starting and after a while, it exists.
I've checked the files, the LanguageServer package has been downloaded to .emacs.d/.local/straight/build/lsp-julia/languageserver foleder, however there is another version in .julia folder. Although I've precompiled LanguageSever in julia REPL, it's calling LanguageServer in .julia folder.
Here is the log
lsp-log
Command "julia --project=/Users/jchen/.emacs.d/.local/straight/build/lsp-julia/languageserver --startup-file=no --history-file=no -e using LanguageServer, Sockets, SymbolServer; server = LanguageServer.LanguageServerInstance( stdin, stdout, false, "/Users/jchen/.julia/environments/v1.4", ""); server.runlinter = true; run(server);" is present on the path.
Found the following clients for /Users/....../green.jl: (server-id julia-ls, priority 0)
The following clients were selected based on priority: (server-id julia-ls, priority 0)
julia-ls::stderr output
ERROR: LoadError: could not open file /Users/jchen/.emacs.d/.local/straight/build/lsp-julia/languageserver/CSTParser/src/precompile.jl
Stacktrace:
[1] include(::Module, ::String) at ./Base.jl:377
[2] include(::String) at /Users/jchen/.emacs.d/.local/straight/build/lsp-julia/languageserver/CSTParser/src/CSTParser.jl:1
[3] top-level scope at /Users/jchen/.emacs.d/.local/straight/build/lsp-julia/languageserver/CSTParser/src/CSTParser.jl:292
[4] include(::Module, ::String) at ./Base.jl:377
[5] top-level scope at none:2
[6] eval at ./boot.jl:331 [inlined]
[7] eval(::Expr) at ./client.jl:449
[8] top-level scope at ./none:3
in expression starting at /Users/jchen/.emacs.d/.local/straight/build/lsp-julia/languageserver/CSTParser/src/CSTParser.jl:292
ERROR: LoadError: Failed to precompile CSTParser [00ebfdb7-1f24-5e51-bd34-a7502290713f] to /Users/jchen/.julia/compiled/v1.4/CSTParser/R4aS6_dWBQj.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
[3] _require(::Base.PkgId) at ./loading.jl:1029
[4] require(::Base.PkgId) at ./loading.jl:927
[5] require(::Module, ::Symbol) at ./loading.jl:922
[6] include(::Module, ::String) at ./Base.jl:377
[7] top-level scope at none:2
[8] eval at ./boot.jl:331 [inlined]
[9] eval(::Expr) at ./client.jl:449
[10] top-level scope at ./none:3
in expression starting at /Users/jchen/.emacs.d/.local/straight/build/lsp-julia/languageserver/DocumentFormat/src/DocumentFormat.jl:2
ERROR: LoadError: Failed to precompile DocumentFormat [ffa9a821-9c82-50df-894e-fbcef3ed31cd] to /Users/jchen/.julia/compiled/v1.4/DocumentFormat/JgtLh_dWBQj.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
[3] _require(::Base.PkgId) at ./loading.jl:1029
[4] require(::Base.PkgId) at ./loading.jl:927
[5] require(::Module, ::Symbol) at ./loading.jl:922
[6] include(::Module, ::String) at ./Base.jl:377
[7] top-level scope at none:2
[8] eval at ./boot.jl:331 [inlined]
[9] eval(::Expr) at ./client.jl:449
[10] top-level scope at ./none:3
in expression starting at /Users/jchen/.emacs.d/.local/straight/build/lsp-julia/languageserver/LanguageServer/src/LanguageServer.jl:5
ERROR: Failed to precompile LanguageServer [2b0e0bc5-e4fd-59b4-8912-456d1b03d8d7] to /Users/jchen/.julia/compiled/v1.4/LanguageServer/ite7n_dWBQj.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
[3] _require(::Base.PkgId) at ./loading.jl:1029
[4] require(::Base.PkgId) at ./loading.jl:927
[5] require(::Module, ::Symbol) at ./loading.jl:922
Process julia-ls stderr finished
When running LSP in emacs, it always tells me it's starting and after a while, it exists.
I've checked the files, the LanguageServer package has been downloaded to
.emacs.d/.local/straight/build/lsp-julia/languageserver
foleder, however there is another version in.julia
folder. Although I've precompiled LanguageSever in julia REPL, it's callingLanguageServer
in.julia
folder.Here is the log
lsp-log
julia-ls::stderr
outputand Package