We’re using erlang.mk. I’ve just moved from using Erlang LS to ELP, in Visual Studio Code.
My editor is now a sea of yellow squiggles, because it can’t find my dependencies. For example, it doesn’t recognise cowboy_req:set_resp_headers/2 and so on.
Does anyone have a working example of ELP’s .elp.toml file for use with erlang.mk projects? I found one in the RabbitMQ repo, and hacked on it, thus:
[build_info]
deps = "deps/*"
But after doing this, ELP still warns about (e.g.) cowboy, plus it’s forgotten about built-in OTP functions, such as string:uppercase/1.
The full documentation for the build_info field is available here:
An extensive example is the one from OTP itself:
If you could share a (maybe minimized) version of the repo and/or the erlang.mk config, I can help you get started. What did the erlang_ls.config file looked for the repo?
I use kerl to manage Erlang and OTP24, in particular, for this project.
ELP finds OTP functions and deps with no issue in VSCode. There are other things I’m missing, mostly because I’m on OTP24 (like eqwalizer support, I believe)… but the rest works… mostly fine (with a lot of warnings, but no blocking problems).