Closed tamasgal closed 1 year ago
Hmm, it looks like eglot-jl directly uses your default environment, when by default it should use a specific environment. What is the value of eglot-jl-language-server-project
? Have you customized it?
Yes, I have set it to use my 1.9 environment but I already uncommented that line. It seems that it still picks that up. How do I force it to use the default one?
Sorry for my ignorance, just figure it out:
(after! eglot-jl
(setq eglot-jl-language-server-project eglot-jl-base))
Still got an error:
[(:uri "file:///Users/tamasgal/Dev/NeRCA.jl" :name "~/Dev/NeRCA.jl/")]))
[stderr] Installed PrecompileTools ─ v1.1.1
[stderr] Installed JuliaFormatter ── v1.0.31
[stderr] No Changes to `~/.emacs.d/.local/straight/repos/eglot-jl/Project.toml`
[stderr] Updating `~/.emacs.d/.local/straight/repos/eglot-jl/Manifest.toml`
[stderr] [44cfe95a] ↑ Pkg v1.9.0 ⇒ v1.9.2
[stderr] [ Info: Environment successfully resolved
[stderr] nil
[stderr] Precompiling project...
[stderr] [32m ✓ [39m[90mCompat[39m
[stderr] [32m ✓ [39m[90mPrecompileTools[39m
[stderr] [32m ✓ [39m[90mDataStructures[39m
[stderr] [32m ✓ [39m[90mParsers[39m
[stderr] [32m ✓ [39m[90mJSON[39m
[stderr] [32m ✓ [39m[90mJSONRPC[39m
[stderr] [32m ✓ [39m[90mCommonMark[39m
[internal] Wed Sep 13 11:46:05 2023:
(:message "Connection state changed" :change "killed: 9\n")
----------b---y---e---b---y---e----------
[stderr]
[stderr]
[stderr] nil
[stderr] nil
[stderr] Process EGLOT (NeRCA.jl/(julia-mode julia-ts-mode)) stderr finished
Thanks! Now could you please try to see whether this environment seems to be working in an interactive process?
E.g. run these commands and please report back whether everything works:
$ julia --project=~/.emacs.d/.local/straight/repos/eglot-jl
julia> import Pkg
julia> Pkg.resolve()
julia> Pkg.instantiate()
julia> empty!(LOAD_PATH); push!(LOAD_PATH, "@")
julia> using LanguageServer
julia> using SymbolServer
OK, I'll note this debug procedure for the next time ;) resolve()
helped, now it's working!
I need some help getting eglot working again. It worked for a while but now it keeps crashing and the buffer output does not really reveal (at least to me) a meaningful hint what's going wrong.
This is what I get when I start
eglot
in my Doom Emacs setup, any ideas?