I’d like to play with LanguageServer.jl. How to use a locally modified version of this package inside either VSCode Julia extension or Emacs eglot-jl?
On linux, in your .vscode
folder you have extensions/julialang.language-julia-%version%
. There, in scripts/packages
you have all packages that extensions uses, including LanguageServer.jl.
For eglot-jl
the exact location might depend how you installed it, but you can find it using
M-xfind-library
RETeglot-jl
RET
For example, since I use elpa
, for me it’s located at
~/.emacs.d/elpa/eglot-jl-20240911.1352
.
If you go to that directory, you’ll find a standard Julia environment with its Project.toml
. You can use any standard Pkg
command to use the LanguageServer
version you want. In your case, this would probably be
pkg> dev /path/to/your/locally/modified/LanguageServer.jl
Thanks, this works perfectly! In fact, I ran dev
for one of the dependencies I modified, StaticLint.jl, and I didn’t have to explicitly do anything to LanguageServer.jl itself.