non-Jedi / eglot-jl

Wrapper for using Julia LanguageServer.jl with emacs eglot
Creative Commons Zero v1.0 Universal
62 stars 11 forks source link

Vendor important dependencies in project #4

Closed non-Jedi closed 4 years ago

non-Jedi commented 4 years ago

Since environments get stacked, the current approach of trying to call using LanguageServer and then instantiating project upon failure doesn't reliably show whether the correct version is installed. Could just be the version installed in default environment instead.

non-Jedi commented 4 years ago

The appropriate code from the vs-code extension is here:

https://github.com/julia-vscode/julia-vscode/blob/97ce2d61f8c836c058913a839d1a251f30eb4f7d/src/extension.ts#L152

Basically you run the main julia instance with the JULIA_DEPOT_PATH environment variable set and then pass as an argument what you want the depot path to look like in the view of the symbol server.

Still unclear where the depot is filled...

non-Jedi commented 4 years ago

Ah. There's some sort of magic where julia looks to the projects root dir to use packages found there.

Julia allows vendoring in a package within a project.