haskell / haskell/haskell-language-server

Getting duplicated type info on windows

Open
#4,035 1 comment 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Haskell
Stars
3k
Forks
455
Avg merge
2d 19h
Merged PRs (30d)
11

Description

I made a [post](https://www.reddit.com/r/haskell/comments/18zdfoa/is_there_too_much_redundant_info_at_hls_type_info/) on /r/haskell and [this comment](https://www.reddit.com/r/haskell/comments/18zdfoa/comment/kgruwzo/?context=3) 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](https://github.com/haskell/haskell-language-server/assets/6580116/83de1075-7f21-4c0f-85fa-37f7a71944fa)
![vscode](https://github.com/haskell/haskell-language-server/assets/6580116/e3d2067a-d476-4d02-adb9-65c459da34f0)

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](https://github.com/haskell/haskell-language-server/files/14139595/haskell-ls.log)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.