gdkrmr / lsp-julia

MIT License
70 stars 19 forks source link

lsp: loadError, fail to precompile CSTParser, DocumentFormat,LanguageServer #29

Closed yzcj105 closed 3 years ago

yzcj105 commented 4 years ago

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

and Package

(@v1.4) pkg> st
Status `~/.julia/environments/v1.4/Project.toml`
  [7d9fca2a] Arpack v0.4.0
  [336ed68f] CSV v0.6.2
  [a93c6f00] DataFrames v0.21.2
  [31a5f54b] Debugger v0.6.4
  [7806a523] DecisionTree v0.10.3
  [31c24e10] Distributions v0.23.4
  [f67ccb44] HDF5 v0.13.2
  [7073ff75] IJulia v1.21.2
  [d0351b0e] InspectDR v0.3.7
  [033835bb] JLD2 v0.1.13
  [2b0e0bc5] LanguageServer v1.0.0
  [ee78f7c6] Makie v0.9.5
  [5fb14364] OhMyREPL v0.5.5
  [9b87118b] PackageCompiler v1.1.1
  [eadc2687] Pandas v1.4.0
  [91a5bcdd] Plots v0.27.1
  [438e738f] PyCall v1.91.4
  [ce6b1742] RDatasets v0.6.9
  [ee283ea6] Rebugger v0.3.3
  [295af30f] Revise v2.7.2
  [f3b207a7] StatsPlots v0.12.0
  [cf896787] SymbolServer v1.0.1 #julia-14-fixes (https://github.com/ashiklom/SymbolServer.jl)
  [6aa20fa7] TensorOperations v3.0.0
  [b8865327] UnicodePlots v1.2.0
  [7774df62] VT100 v0.3.2
  [37e2e46d] LinearAlgebra
  [10745b16] Statistics

versioninfo()
Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin18.7.0)
  CPU: Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4
prassee commented 4 years ago

Any updtae on this

yzcj105 commented 4 years ago

@prassee I'm waiting for feedbacks.

gdkrmr commented 4 years ago

Is this fixed now with https://github.com/non-Jedi/lsp-julia/issues/20#issuecomment-682031361?

gdkrmr commented 3 years ago

I assume that this is fixed