vscode-haskell
vscode-haskell copied to clipboard
Code actions are duplicated 4x
Maybe nub before displaying?
How am I supposed to choose out of a list of 4 identical things? (Or, if they are not identical, why display them as identical?)
This looks like the manifestation of https://github.com/haskell/haskell-language-server/issues/4461
Do you have instructions to reproduce this issue?
This looks like the manifestation of haskell/haskell-language-server#4461
Yes looks similar enough.
Do you have instructions to reproduce these issue?
Mmh, no.
Also because I clicked on "Ignore hint".
Btw, what happens if I "Ignore hint"? I would have expected some .hlint.yaml file is created in the project root where I can then find my ignored hints. But there is no such file. Where do such settings go?
Are there log files that I could attach to this issue?
Btw, what happens if I "Ignore hint"? I would have expected some .hlint.yaml file is created in the project root where I can then find my ignored hints. But there is no such file. Where do such settings go?
I think by default, hlint adds some pragma to the top of the file.
Are there log files that I could attach to this issue?
Not by default, no, you'd need to run your Language server with the log-file cli option.
I think by default, hlint adds some pragma to the top of the file.
Ah, indeed, thanks.
Same here. I don't have a reproducer, it does not seem to be deterministic. Sometimes all code actions are x2, sometimes x4. I understand that it would be great to fix the root cause, but frankly this is so annoying that I'd greatly appreciate someone just slapping nub (or nubOrd).
@Bodigrim The issue is that it might be two language server instances running instead of one, often this happens when a file is opened that is not yet part of the project, for example via ctrl+n, then the editor sometimes infers Haskell, launches the HLS instance and suddenly there are two running.
Perhaps you can confirm this to be the reason for you?
Ah, yes, this sounds likely. I’ll take a closer look when it happens to reproduce again.