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

Navigation leads user to the elixir stdlib but user can't navigate the stdlib

Open giuscri opened this issue 3 years ago • 0 comments

Environment

  • Elixir & Erlang versions (elixir --version): 1.13.4
  • Elixir Language Server version: v0.11.0
  • Operating system: macOS 12.4
  • Editor or IDE name (e.g. Emacs/VSCode): VSCode
  • Editor Plugin/LSP Client name and version: ElixirLS v0.11.0

Current behavior

  • Open file containing IO.puts("")
  • ctrl-click on puts, navigate to the io.ex file from the stdlib
...
  def puts(device \\ :stdio, item) when is_device(device) do
    :io.put_chars(map_dev(device), [to_chardata(item), ?\n])
  end
...
  • Try to ctrl-click on :io.put_chars or map_dev but it does nothing

Expected behavior

  • Open file containing IO.puts("")
  • ctrl-click on puts, navigate to the io.ex file from the stdlib
...
  def puts(device \\ :stdio, item) when is_device(device) do
    :io.put_chars(map_dev(device), [to_chardata(item), ?\n])
  end
...
  • ctrl-click on :io.put_chars should lead to the erlang implementation; ctrl-click on map_dev should lead you to the implementation on io.ex

giuscri avatar Aug 24 '22 19:08 giuscri