WhatsApp / erlang-language-platform

Erlang Language Platform. LSP server and CLI.
https://whatsapp.github.io/erlang-language-platform/
Apache License 2.0
242 stars 19 forks source link

Please add erlang_ls.config support and/or erlang.mk, bazel #5

Closed deadtrickster closed 4 months ago

deadtrickster commented 1 year ago

Hi, congratulations with the first public release!

I tried it with RabbitMQ where we use erlang.mk and bazel and erlang_ls successfully. Well it complains about missing rebar.config.

Please consider relaxing requirements and having erlang_ls.config support (here we list all the paths).

Thank you for improving Erlang world.

alanz commented 1 year ago

We will be devoting some time to doing this soon.

deadtrickster commented 10 months ago

😭

robertoaloi commented 10 months ago

@deadtrickster Let me check the internal status of this and come back to you.

alanz commented 10 months ago

So, we have a way of specifying what a project looks like by putting a build_info.json file in the root directory, using the format as per eqwalizer. But this is very verbose, although it may be amenable to being auto-generated.

alanz commented 7 months ago

@deadtrickster We can now load a build_info.json file describing the project setup. Instructions are at https://whatsapp.github.io/erlang-language-platform/docs/get-started/configuration/. This should hopefully enable some sort of progress for you.

We will be enabling buck2 support in the standard release soon too, just sorting out getting the tests to pass on the repo. Note: you can build a version from source, leaving out --no-default-features when you build it, and it will work against buck2 projects. We just can't pass CI yet.

robertoaloi commented 4 months ago

@deadtrickster We can now load a build_info.json file describing the project setup. Instructions are at https://whatsapp.github.io/erlang-language-platform/docs/get-started/configuration/. This should hopefully enable some sort of progress for you.

Instructions have been moved to https://whatsapp.github.io/erlang-language-platform/docs/get-started/configure-project/custom-project/

ikavgo commented 4 months ago

Thank you!

robertoaloi commented 4 months ago

@ikavgo I added a mechanism that will simplify this even further. Pushing the change as we speak. I already tested it with the rabbitmq-server repo.

robertoaloi commented 4 months ago

This is now available via 2957db5c16eaef9e4c41f1cb84acead9230eb0ef (release coming). I pull requested a working config for rabbitmq-server here. Closing this as done. Feel free to open new issues should you encounter something not working out-of-the-box with ELP. Happy to help supporting the use case.