vscode-elixir-ls icon indicating copy to clipboard operation
vscode-elixir-ls copied to clipboard

Configure where to store the downloaded and compiled LS

Open NobbZ opened this issue 7 years ago • 4 comments

Let the user choose where the LS sources and binaries should be stored and whether or not they should be managed by this plugin or something else (which would deactivate auto update as described in #2).

NobbZ avatar Jan 19 '19 10:01 NobbZ

What would be the benefit?

lukaszsamson avatar Sep 30 '20 16:09 lukaszsamson

When I wrote this, I had to use different versions of the LS for different projects, or at least same version compiled with different erlangs/elixir combinations.

If I had been able to configure each version for each project it would had helped me a lot.

Also it would make testing self-made changes to the LSP itself easier if one could just change the PATH, instead of having to actually start VScode in development mode with an ElixirLS plugin that has been edited to use the local version of the LSP.

Though as I said in #1 and #2, I'm not using VScode anymore and therefore those issues are not relevant for me. I'm just trying to point out why I have created them initially.

NobbZ avatar Oct 01 '20 09:10 NobbZ

@NobbZ what do you use in place of VSCode?

DragosMocrii avatar Nov 19 '20 19:11 DragosMocrii

Emacs with lsp-mode, it just searches for the binary in PATH, so I make sure via an .envrc that the correct version of elixir LS is in PATH first.

NobbZ avatar Nov 20 '20 10:11 NobbZ

Obsoleted by https://github.com/elixir-lsp/vscode-elixir-ls/pull/317. You can now use MIX_INSTALL_DIR to tell mix to store packages in a different directory. Refer to Mix.install docks

lukaszsamson avatar Apr 14 '23 05:04 lukaszsamson