You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open lib/bug.ex with the config above by doing nvim -u path/to/config/above elixir-ls-go-to-definition-bug/lib/bug.ex
Wait a couple of seconds for the elixirls to load and index the workspace
Move your scursor to ModA.say_hi() and type :=vim.lsp.buf.definition() (or right-click on ModA.say_hi() and click "Go to definition" if you're a mouse-enjoyer). Here's what the file looks like:
The ModA alias is not working with the current inference engine. This PR replaces the engine and as you can see this case is going to be handled
For go to stdlib to work you need to build elixir from sources. Otherwise the metadata points to paths from the build server like /build/elixir/src/elixir-1.17.3. I created Allow configuring stdlib directories #1119 for tracking
Hi! I noticed that I couldn't go to the definition of other modules. Checking the log I found two interesting errors:
and
Here's the full log:
Click to expand
I created an issue in the Neovim wrapper plugin that I'm using (elixir-tools/elixir-tools.nvim#225), but it seems to be an issue with elixirls.
To reproduce
To reproduce, here is the minimal Neovim configuration that I'm using:
Click to expand
Steps to reproduce:
Clone https://github.com/robsonpeixoto/elixir-ls-go-to-definition-bug.
Open
lib/bug.ex
with the config above by doingnvim -u path/to/config/above elixir-ls-go-to-definition-bug/lib/bug.ex
Wait a couple of seconds for the elixirls to load and index the workspace
Move your scursor to
ModA.say_hi()
and type:=vim.lsp.buf.definition()
(or right-click onModA.say_hi()
and click "Go to definition" if you're a mouse-enjoyer). Here's what the file looks like:Nothing happens
Elixir & Erlang versions (elixir --version):
Environment
elixir-tools.nvim, v0.16.0 (but I get the same behaviour if I just raw-dog nvim-lspconfig)
Current behavior
Go to definition doesn't work when trying to go to symbols in other modules
Expected behavior
Go to definition does work when trying to go to symbols in other modules
The text was updated successfully, but these errors were encountered: