-
-
Notifications
You must be signed in to change notification settings - Fork 367
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
issues with CompletionItemResolve #4451
Comments
Thank you for the bug report!
I am able to reproduce the issue using a nixpkgs installed HLS binary as well as on arch linux with HLS 2.9.0.1 ghc 9.6.6. |
I have the same issue in doomemacs, emacs+lsp-mode , vanilla arch, ghc 9.10.1 |
Same here, vanilla emacs+lsp-haskell, macOS Ventura 13.7.1, ghc 9.4.8, hls 2.9.0.1 |
I’m seeing the same issue in vanilla Emacs with lsp-haskell, Arch Linux (well, EndeavourOS), GHC 9.4.8, HLS 2.1.0.1 |
Reading into the code, I don't think there is anything wrong, sometimes additional information can be requested, and sometimes the server doesn't have any additional information. E.g., documentation or type signatures for non-local identifiers. Is the current behaviour annoying, e.g., does Emacs or vim spam you with errors? |
yeah in emacs, its extremely annoying. a buffer with that error keeps popping up as you type |
But this must be a new change in emacs, right? I think we had this behaviour for a while and just now we started to get these reports? Seemingly, HLS is behaving correctly. I think this issue is resolvable by extending |
Correct. I get a message every time the autocomplete event fires, i.e. every time I press a key (or nearly so). |
|
If you tell me what to do - i'll try :-) |
If you use GHCup, the following works:
Or whatever GHC version you use in your project. You can also use clone the project, and run |
I did this for ghc 9.10.1 |
Thanks, another test to add to the testsuite! |
@dmitrykvasnikov Where was the local function defined you tried to complete? In the same module, different module, etc...? I am unable to reproduce the issue. |
@fendor |
Can't reproduce, I am getting the correct message
Maybe the compiled binary wasn't used? I am double checking my instructions. |
I am a little bit confused 😅 After running |
I'm compiling this myself to see if I can reproduce (taking a while) |
ok, so if I'm doing this correctly. the error still pops up, but less frequently. not so helpful footage of when it triggers attached using ghc 9.6.6 checked the binary is freshly created
logs:
|
I've just checked - yes to both questions. haskell-language-server-wrapper updated as well (if it's relevant) . |
Very puzzling... the Completions shown by @bwkam look completely wrong, too. We should never suggest LANGUAGE pragmas in this context as a possible completion?! |
yeah, I was not sure why it was suggesting that |
Your environment
Which OS do you use?
NixOS
Which version of GHC do you use and how did you install it?
9.6.6, with nix
How is your project built (alternative: link to the project)?
Which LSP client (editor/plugin) do you use?
emacs+lsp-mode
Which version of HLS do you use and how did you install it?
2.9.0.0, using nix
Have you configured HLS in any way (especially: a
hie.yaml
file)?No
What's wrong?
some error about SMethod_CompletionItemResolve keeps popping up as I type anything in the buffer
the error is not an emacs problem too, same behavior occurs on vscode (I just tested)
(see below)
Debug information
The text was updated successfully, but these errors were encountered: