2025-01-10T02:20:37.282702Z | Info | Cradle path: Setup.hs
2025-01-10T02:20:37.282702Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "D:\\Code\\Haskell\\hello-world\\src\\Lib.hs"
2025-01-10T02:20:37.282702Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "D:\\Code\\Haskell\\hello-world\\test\\Spec.hs"
2025-01-10T02:20:37.282702Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "D:\\Code\\Haskell\\hello-world\\Setup.hs"
2025-01-10T02:20:37.282702Z | Debug | hlint: Getting hlint ideas for NormalizedFilePath "D:\\Code\\Haskell\\hello-world\\app\\Main.hs"
2025-01-10T02:20:37.282702Z | Warning | No [cradle](https://github.com/mpickering/hie-bios#hie-bios) found for Setup.hs.
Proceeding with [implicit cradle](https://hackage.haskell.org/package/implicit-hie).
You should ignore this message, unless you see a 'Multi Cradle: No prefixes matched' error.
2025-01-10T02:20:37.282702Z | Debug | Cradle: Cradle{ cradleRootDir = "D:\\Code\\Haskell\\hello-world", cradleOptsProg = CradleAction: Stack}
2025-01-10T02:20:37.282702Z | Info | invoking build tool to determine build flags (this may take some time depending on the cache)
2025-01-10T02:20:37.282702Z | Debug | Session loading result: Left [CradleError {cradleErrorDependencies = [], cradleErrorExitCode = ExitSuccess, cradleErrorStderr = ["Multi Cradle: No prefixes matched","pwd: D:\\Code\\Haskell\\hello-world","filepath: D:\\Code\\Haskell\\hello-world\\Setup.hs","prefixes:","(\"D:\\\\Code\\\\Haskell\\\\hello-world\\\\test\",Stack)","(\"D:\\\\Code\\\\Haskell\\\\hello-world\\\\src\",Stack)","(\"D:\\\\Code\\\\Haskell\\\\hello-world\\\\app\\\\Main.hs\",Stack)"]}]
2025-01-10T02:20:37.297955Z | Info | updateFileDiagnostics published different from new diagnostics - file diagnostics: File: D:\Code\Haskell\hello-world\Setup.hs
Hidden: no
Range: 1:1-2:1
Source: cradle
Severity: DiagnosticSeverity_Error
Message:
Multi Cradle: No prefixes matched
pwd: D:\Code\Haskell\hello-world
filepath: D:\Code\Haskell\hello-world\Setup.hs
prefixes:
("D:\\Code\\Haskell\\hello-world\\test",Stack)
("D:\\Code\\Haskell\\hello-world\\src",Stack)
("D:\\Code\\Haskell\\hello-world\\app\\Main.hs",Stack)
2025-01-10T02:20:37.297955Z | Debug | hlint: Using extensions for NormalizedFilePath "D:\\Code\\Haskell\\hello-world\\src\\Lib.hs": [ MonomorphismRestriction
, DeepSubsumption
, RelaxedPolyRec
, ForeignFunctionInterface
, ImplicitPrelude
, DoAndIfThenElse
, EmptyDataDecls
, PatternGuards
, DatatypeContexts
, TraditionalRecordSyntax
, StarIsType
, CUSKs
, FieldSelectors ]
2025-01-10T02:20:37.297955Z | Debug | hlint: Using extensions for NormalizedFilePath "D:\\Code\\Haskell\\hello-world\\app\\Main.hs": [ MonomorphismRestriction
, DeepSubsumption
, RelaxedPolyRec
, ForeignFunctionInterface
, ImplicitPrelude
, DoAndIfThenElse
, EmptyDataDecls
, PatternGuards
, DatatypeContexts
, TraditionalRecordSyntax
, StarIsType
, CUSKs
, FieldSelectors ]
2025-01-10T02:20:37.297955Z | Debug | hlint: Using extensions for NormalizedFilePath "D:\\Code\\Haskell\\hello-world\\test\\Spec.hs": [ MonomorphismRestriction
, DeepSubsumption
, RelaxedPolyRec
, ForeignFunctionInterface
, ImplicitPrelude
, DoAndIfThenElse
, EmptyDataDecls
, PatternGuards
, DatatypeContexts
, TraditionalRecordSyntax
, StarIsType
, CUSKs
, FieldSelectors ]
2025-01-10T02:20:37.659307Z | Debug | Finished: User TypeCheck Took: 0.38s
2025-01-10T02:20:37.684930Z | Debug | Finished: GetHie Took: 0.02s
2025-01-10T02:20:37.684930Z | Debug | Finished: GenerateCore Took: 0.00s
File2025-01-10T02:20:37.684930Z | Debug | LOOKUP PERSISTENT FOR: GetModSummaryWithoutTimestamps
s2025-01-10T02:20:37.684930Z | Debug | LOOKUP PERSISTENT FOR: GhcSessionDeps
that failed:
* D:\Code\Haskell\hello-world\Setup.hs
Completed (3 files worked, 1 file failed)
haskell-language-server-wrapper-2.9.0.1.exe: callProcess: C:\ghcup\bin\haskell-language-server-9.4.8.exe "--debug" (exit 1): failed
When starting the VS Code session from the directory of a newly created project by stack with the following command, the extension is stuck in "Processing: 1/2" status, and all subsequent actions will be blocked, e.g., files cannot be saved because the save hook cannot be executed.
It seems adding a
hie.yamlfile to the root of the project with the following contents will fix the error. It was mentioned in the Stack and Visual Studio Code documentation.I'm wondering if we can add this tip to the extension documentation.
Your environment
Which OS do you use:
Windows
Steps to reproduce
system-ghc: true,default-init-snapshot: ghc-9.4.8stack new hello-world new-templatecd hello-world && code ..hsfile to activate the extensionExpected behaviour
The extension should complete the initialization and start working
Actual behaviour
The extension was stuck in "Processing: 1/2" status, and blocked further actions.
Include debug information
Execute in the root of your project the command
haskell-language-server-wrapper --debug .and paste the logs here (you can find the executable location here):Debug output:
Paste the contents of extension specific log, you can check instructions about how to find it here
Extension log: