haskell-language-server icon indicating copy to clipboard operation
haskell-language-server copied to clipboard

Getting duplicated type info on windows

Open Valdsonjr opened this issue 1 year ago • 1 comments

I made a post on /r/haskell and this comment suggested me to open this issue.

Your environment

AMD Ryzen 5 5600G with Radeon Graphics 3.90 GHz RAM 16,0 GB 64 bits

Windows 11 Home version 22H2

Editor: VS Code Version: 1.85.2 (user setup) Commit: 8b3775030ed1a69b13e4f4c628c612102e30a681 Date: 2024-01-18T06:40:10.514Z Electron: 25.9.7 ElectronBuildId: 26354273 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.22621

// haskell-related configs in vscode
{
    "[haskell]": {
        "editor.defaultFormatter": "haskell.haskell"
    },
    "haskell.manageHLS": "GHCup",
    "haskell.maxCompletions": 20,
    "haskell.toolchain": {
        "ghc": null,
        "cabal": null,
        "stack": null,
        "hls": null
    },
    "haskell.plugin.rename.config.crossModule": true,
    "haskell.plugin.ghcide-hover-and-symbols.symbolsOn": false,
}

Editor: Helix Version: 23.10 Installed via winget

Which OS do you use? Windows

Which version of GHC do you use and how did you install it? ghc 9.2.8 from ghcup 0.1.20.0

How is your project built (alternative: link to the project)? cabal build (cabal 3.6.2.0)

Which LSP client (editor/plugin) do you use? The default lsp client on helix The Haskell extension on vscode

Which version of HLS do you use and how did you install it? hls 2.5.0.0 from ghcup

Have you configured HLS in any way (especially: a hie.yaml file)? tried having a hie.yaml and not having it, seems to make no difference

What's wrong?

I'm getting the same type info twice:

helix editor vscode

it happens for every function that uses type classes. I thought this was the default behavior, which is why I made the post, but that comment made me think it might be something wrong with my environment.

Debug information

haskell-ls.log

Valdsonjr avatar Feb 02 '24 11:02 Valdsonjr

Thanks for making a ticket. I think this is expected behaviour, but IMO suboptimal. See some related discussion recently here: https://github.com/haskell/haskell-language-server/issues/4017

michaelpj avatar Feb 02 '24 14:02 michaelpj