-
Notifications
You must be signed in to change notification settings - Fork 136
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
Wrong F/A completion in exports #1488
Comments
Hi @MarkoMin! I've had this issue with earlier versions but with 0.50.0/master I can not reproduce it. bug-0-.3.webmI am using nvim v0.9.4 with this set of plugins. Completion provider is nvim-cmp. Maybe this is coc related? cheers! |
This can happen if parsing of the -export expression fails. |
I've merged a fix for this now. Hopefully it will resolve the issue :) |
Works as a charm, great job! |
@plux I just noticed the same thing for EDIT: |
Describe the bug
How can I complete functions to
f/A
instead off(Args...)
when trying to export them? When I want to export few functions in export, the first function is correctly expanded tof/A
(if I autocompleted-export
), but next ones get wrongly completed tof(Args...)
. If I don't autocomplete, not even first one works correctly.To Reproduce
Define a module with 2 functions:
really_long_name/3
andreally_really_long_name/3
. Then type "-exp" and autocomplete it to-export([|]).
(| is cursor mark :D). Now type "really_lo" and hit autocomplete, you'll get "really_long_name/3". Then type ", really_rea" and autocomplete it, you'll get-export([really_long_name/3, really_really_long_name(Arg1, Arg2, Arg3)]).
- which is wrong I believe. Tested on 0.48.0 and 0.50.0 innvim
withcoc
as lsp plugin, OTP26. If I remember correctly this thing worked on VS-code, but I'm not 100%.The text was updated successfully, but these errors were encountered: