erlang-language-platform icon indicating copy to clipboard operation
erlang-language-platform copied to clipboard

No tooltip help on arguments of auto-imported BIFs

Open dszoboszlay opened this issue 1 year ago • 1 comments

Describe the bug

After typing the name of a function and an opening parenthesis, ELP provides some help on argument names and types in a tooltip:

image

However, this doesn't work for auto-imported BIFs such as register/2, only when using a fully qualified function call syntax:

image

(Please also note that for whatever reason the tooltip shows as if erlang:register would exist with two different arities, while in fact there's only a single erlang:register/2, and both the 1/2 and 2/2 help messages look identical.)

To Reproduce

In the body of a function type register(.

Expected behavior

Auto-imported BIFs should show the same help message regardless of using the fully qualified function call syntax or not.

Actual behavior

Auto-imported BIFs should only show any help message when using the fully qualified function call syntax.

Context

  • ELP Version (output of elp version): elp 1.1.0+build-2024-04-29
  • Editor used: VS Code

dszoboszlay avatar May 21 '24 10:05 dszoboszlay

Thanks @dszoboszlay , I can reproduce. Adding to our backlog. In LSP terms, the feature is called signature help.

robertoaloi avatar May 21 '24 11:05 robertoaloi

This is what I now get

Screenshot 2024-05-23 at 16 13 25

alanz avatar May 24 '24 14:05 alanz

And

Screenshot 2024-05-24 at 15 23 54

alanz avatar May 24 '24 14:05 alanz