How to use a locally modified version of LanguageServer.jl?

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?

1 Like

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.

3 Likes

For eglot-jl the exact location might depend how you installed it, but you can find it using

M-xfind-libraryRETeglot-jlRET

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
2 Likes

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.

1 Like