DeriveAnyClass
causes "Internal Error: initTcWithGbl failed"
#3942
Labels
component: hls-class-plugin
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
When
DeriveAnyClass
is enabled, attempting to "hover" (inspect) aderiving A
whereA
is a class with at least one method will cause HLS to have an internal error.Your environment
Which OS do you use?
Linux 6.7.0, NixOS, 24.05 (Uakari), 24.05.20240108.317484b
Which version of GHC do you use, and how did you install it?
Version 9.4.8, installed via nixpkgs
How is your project built (alternative: link to the project)?
N/A
Which LSP client (editor/plugin) do you use?
VS Codium+vscode-haskell
Which version of HLS do you use, and how did you install it?
haskell-language-server version: 2.4.0.0 (GHC: 9.4.8), nixpkgs
Have you configured HLS in any way (especially: a
hie.yaml
file)?No
Steps to reproduce
Expected behaviour
The code above should only result in a
missing-methods
warning onderiving Num
andderiving C
Actual behaviour
Hovering over
Num
gives you the issueAnd over
C
This is expected, however, when hovering over either HLS also gives an error condition pop-up every time they are hovered:
The text was updated successfully, but these errors were encountered: