Skip to content

Switching GHC with 2.11.0.0 on Windows causes failure #4634

Open
@dfordivam

Description

@dfordivam

This seems to be related to the CI failure here haskell/ghcup-hs#1275 (comment)

I tested the same steps with 2.10.0.0 and did not hit this issue.

Your environment

Which OS do you use?
windows

Which version of GHC do you use and how did you install it?

cabal --version
cabal-install version 3.14.2.0

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

Which LSP client (editor/plugin) do you use?

Which version of HLS do you use and how did you install it?

Have you configured HLS in any way (especially: a hie.yaml file)?

Steps to reproduce

ghcup set 9.10.2
haskell-language-server-wrapper-2.11.0.0.exe typecheck .\src\Data\Text.hs

ghcup set 9.6.7
haskell-language-server-wrapper-2.11.0.0.exe typecheck .\src\Data\Text.hs

Expected behaviour

Actual behaviour

Error:

Hidden:   no
Range:    1:1-2:1
Source:   compiler
Severity: DiagnosticSeverity_Error
Code:     <none>
Message:
  (GhcSession,NormalizedFilePath "C:\\Users\\dford\\text-2.1.2\\src\\Data\\Text.hs")cannot satisfy       
  -package-id array-0.5.8.0-2b9d
  (use -v for more information)
Files that failed:
 * C:\Users\dford\text-2.1.2\src\Data\Text.hs

Debug information

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triagetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions