erlang_ls
erlang_ls copied to clipboard
can not find any otp modules in fedora 36
Hi,
i'm using fedora 36, nvim-lsp
have installed erlang_ls from source
installed erlang with dnf install erlang
erlang_ls cannot find any module from otp relase (under /usr/lib64/eralng)
the same configuration (other than otp_path
) is working under the ubuntu
May not be an ideal solution but can you also try removing packaged erlang and reinstalling via asdf. The only reason I say is because I am on the exact same setup and asdf erlang works just fine (as long as you source the right paths).
@vihu thank you for your suggestion. With asdf
everything works as expected but I feel this is more like a workaround than a solution so I'm leaving this issue open.
Hi @KunaPrime , could you run tree
in both installation directories and show which otp_path
are you setting in the config in both cases?
I think this bug is caused by Fedora's Erlang package. Fedora delete all the sources code of OTP's library when they release the package. Because the erlang_ls can't find the source code of library, the erlang_ls can't promote any module in Emacs or Vim.And after adding the source code by using otp_path, it can work correctly. At the same time,vscode_erlang can work correctly without the source code of OTP. Could we refer this and add some enhancements. I also submit a bug to fedora team.