erlang_ls icon indicating copy to clipboard operation
erlang_ls copied to clipboard

can not find any otp modules in fedora 36

Open KunaPrime opened this issue 2 years ago • 3 comments

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

KunaPrime avatar Jul 04 '22 23:07 KunaPrime

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 avatar Jul 31 '22 17:07 vihu

@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.

KunaPrime avatar Aug 05 '22 17:08 KunaPrime

Hi @KunaPrime , could you run tree in both installation directories and show which otp_path are you setting in the config in both cases?

robertoaloi avatar Aug 18 '22 19:08 robertoaloi

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.

DavidAlphaFox avatar Dec 31 '22 14:12 DavidAlphaFox