Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No tooltip help on arguments of auto-imported BIFs #29

Closed
dszoboszlay opened this issue May 21, 2024 · 3 comments
Closed

No tooltip help on arguments of auto-imported BIFs #29

dszoboszlay opened this issue May 21, 2024 · 3 comments
Labels
bug Something isn't working prio-mid

Comments

@dszoboszlay
Copy link

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 dszoboszlay added the bug Something isn't working label May 21, 2024
@robertoaloi
Copy link
Contributor

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

@alanz
Copy link
Member

alanz commented May 24, 2024

This is what I now get

Screenshot 2024-05-23 at 16 13 25

@alanz
Copy link
Member

alanz commented May 24, 2024

And

Screenshot 2024-05-24 at 15 23 54

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working prio-mid
Projects
None yet
Development

No branches or pull requests

3 participants