Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiled elixir modules have the wrong path for source #122

Open
albertored opened this issue Jan 25, 2023 · 0 comments
Open

Compiled elixir modules have the wrong path for source #122

albertored opened this issue Jan 25, 2023 · 0 comments

Comments

@albertored
Copy link

When installing a precompiled version of elixir with asdf you get also the source code but compiled modules have the wrong path for it in their compile metadata.

iex> Enum.__info__(:compile)[:source]
'/home/build/elixir/lib/elixir/lib/enum.ex'

The correct path is ~/.asdf/installs/elixir/1.14.1/lib/elixir/lib/enum.ex.
I have not tried building from source but I think it that case it's working.

The wrong source path causes, for instance, ElixirLS not being able to navigate to Elixir source code

[Info  - 9:17:22 AM] Started ElixirLS v0.13.0
[Info  - 9:17:22 AM] ElixirLS built with elixir "1.12.3" on OTP "22"
[Info  - 9:17:22 AM] Running on elixir "1.13.4 (compiled with Erlang/OTP 24)" on OTP "24"
[Info  - 9:17:22 AM] Elixir sources not found (checking in /home/build/elixir). Code navigation to Elixir modules disabled.
@albertored albertored changed the title Compiled elixir modules has the wrong path for source Compiled elixir modules have the wrong path for source Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant