Skip to content
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

Internal error, getIdeGlobalExtras, no entry for DisplayTHWarning #2858

Closed
andys8 opened this issue Apr 27, 2022 · 4 comments
Closed

Internal error, getIdeGlobalExtras, no entry for DisplayTHWarning #2858

andys8 opened this issue Apr 27, 2022 · 4 comments
Assignees
Labels
status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..

Comments

@andys8
Copy link
Collaborator

andys8 commented Apr 27, 2022

Your environment

Which OS do you use: Manjaro 21.2.6 Qonos (Arch based)
Which LSP client (editor/plugin) do you use: Vim/CoC
Describe your project (alternative: link to the project): stack

Steps to reproduce

Run haskell-language-server-wrapper .

Expected behaviour

No errors

Actual behaviour

Many of these logs showing an internal error missing an entry for DisplayTHWarning

2022-04-27T00:14:29.070716Z | Info | updateFileDiagnostics published different from new diagnostics - file diagnostics: File:     /home/<path>.hs
Hidden:   no
Range:    1:1-2:1
Source:   compiler
Severity: DsError
Message:
  Internal error, getIdeGlobalExtras, no entry for DisplayTHWarning
  CallStack (from HasCallStack):
  errorIO, called at src/Development/IDE/Core/Shake.hs:351:20 in
  ghcide-1.7.0.0-5d0280f91cc32129977b489cf9b14cb95b9062238f5e7b9a5bc31c595dd97f64:Development.IDE.Core.Shake

Include debug information

haskell-language-server version: 1.7.0.0 (GHC: 9.2.2) (PATH: /home/andreas/.ghcup/hls/1.7.0.0/lib/haskell-language-server-1.7.0.0/bin/haskell-language-server-wrapper)
Tool versions found on the $PATH
cabal:          3.6.2.0
stack:          2.7.5
ghc:            8.10.7
@andys8 andys8 added status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc.. labels Apr 27, 2022
@andys8
Copy link
Collaborator Author

andys8 commented Apr 27, 2022

Should have mentioned I installed with ghcup tui and clicked install.
Update: Compiling HLS is the same result.

@pepeiborra
Copy link
Collaborator

Does HLS work when used as an LSP server?

@andys8
Copy link
Collaborator Author

andys8 commented Apr 27, 2022

Yes, it does. Not sure if this will lead to issues, but didn't notice them. (HLS often stopped working before this release/issue and doesn't work well with stack projects anyway)

@michaelpj
Copy link
Collaborator

I think this should have been fixed by #2895.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs triage type: bug Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Projects
None yet
Development

No branches or pull requests

3 participants