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

[Feature request] Implement a setting to allow defining a relative or absolute path to the Elixir install dir

Open artman41 opened this issue 10 months ago • 2 comments

Could a setting be added to allow setting a relative or absolute path to the elixir libraries?

There is a change being made to Erlang.mk to allow use of elixir libraries and compiling of elixir code as part of an erlang library. Part of the implementation pulls elixir down and compiles it as a build dependency of the project.

Because of this, the elixir libraries exist per project and are only compiled when deps are built

As it stands, elixir ls does not seem to work unless Elixir is exported on the path - ideally, it'd be nice to be able to do define a relative path to the elixir libraries so that the only thing required is to reload the vscode window

A similar feature is currently used by erlang ls as a config option in the erlang_ls.config file to define the otp path

artman41 avatar Jan 11 '25 00:01 artman41

Can you elaborate more on why per project elixir libs are needed. ElixirLS relies on elixir installation available on PATH in the current env or shim managed by asdf/mise/vfox version managers. It uses whatever is available or configured for the current project. Can you point to some documentation on erlang.mk side?

lukaszsamson avatar Jan 15 '25 09:01 lukaszsamson

@artman41 Is this already covered by https://github.com/elixir-lsp/vscode-elixir-ls/pull/452?

lukaszsamson avatar Feb 27 '25 09:02 lukaszsamson

I assume the issue is resolved

lukaszsamson avatar Jul 25 '25 21:07 lukaszsamson