-
-
Notifications
You must be signed in to change notification settings - Fork 389
Stale error displayed in VScode #1530
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
Comments
I actually ended up thinking that pattern matching against lists inside tuples does not work (it seems to compile though) foo :: (String, String) -> String
foo (l , (h : t)) = l triggers the bug and is fixed by: foo :: (String, String) -> String
foo (l , h : t) = l |
I can reproduce with latest versions of hie and the extension |
haskell/haskell-ide-engine#1629 seems related to this and not specific to vscode. |
We are using haskell-language-server now as backend lsp server, @FrancisToth do you continue expereincing the issue with last hls (1.0.0) version? |
In fact hls does not have the quick fix for duplicate functions so the error cant be even reproduced 😟 |
Opened feature request, i hope the bug will be not present when it will be added 😉 #1532 |
Hi guys, Haskell noob here. I start playing with VSCode (1.40.2) and Haskell IDE Engine (0.14.0.0) with Haskell Language Server (0.0.31) , and got a really weird behaviour. Given the following code:
If I add another function named like
foo
wait for the error to be displayed, and then fix the name of the duplicated function like this:
the code compiles (when loaded from the terminal) but the editor still shows the stale error telling there are multiple declarations of
foo
. I do not get the error if theloop3
function is declared like this:So it looks like the problem comes from pattern matching but I cannot explain why. If this is not the right place to talk about this, I sincerely apologize. In any case, thank you in advance.
The text was updated successfully, but these errors were encountered: