WhatsApp / erlang-language-platform

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

No auto complete suggestions for auto-imported BIFs and imported functions #28

Open dszoboszlay opened 1 month ago

dszoboszlay commented 1 month ago

Describe the bug

When typing a new expression, ELP provides auto complete suggestions for e.g. local functions, variables or modules. But it doesn't suggest auto-imported BIFs or explicitly imported functions.

To Reproduce

Start typing a new expression in a function's body, e.g. spa. The auto complete suggestions should include the auto-imported BIFs spawn/1, spawn/2, spawn/3 and spawn/4, but they are in fact absent.

Similarly, if the module contains an -import(crypto, [strong_rand_bytes/1]). attribute, typing strong_r or similar should suggest strong_rand_bytes/1 as an auto completion.

Expected behavior

Auto-imported BIFs and explicitly imported functions should be among the auto complete suggestions.

Actual behavior

Auto-imported BIFs and explicitly imported functions are missing from the auto complete suggestions.

Context

robertoaloi commented 1 month ago

Same here. Keep reporting!