-
-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Retrie fails on Windows with could not detect mingw toolchain
#471
Comments
could not detect mingw toolchain
Hi, trying to reproduce it i've hit another issue #533 |
@Tarmean have you tried to apply the retrie rule directly using the executable? does it throw the same error? |
Hey, using retrie directly seems to work, at least until it runs into the issue with missing grep and xargs executables you found and does nothing.
|
Another issue throwing the same original error: #615 |
The workaround from #591 worked for me as well. |
@Tarmean thanks for confirming it |
* Fix isWorkspaceFile for relative paths This fixes a performance regression on GetFileExists * Avoid interrupting hie-bios when it's doing its thing I noticed that the GHC hie-bios direct cradle, which uses Hadrian, a Shake build system, was failing to start due to the following problem: 1. ghcide starts evaluating the LoadCradle node 2. The evaluation gets cancelled 3. Immediately after, ghcide starts evaluating LoadCradle again 4. Hadrian fails, since there is still another Hadrian process alive taking its Shake lock * Improve watched files test suite
No sure if we could apply the hack of set the ghc libdir usin a en var here to resolve this. The hack is not thread safe and i am not sure if that could make the solution not applicable to retrie |
I think trying the above hack might worth |
retrie should already have full support for windows, via #2513 |
Subject of the issue
For me, the retrie plugin fails on Windows with
could not detect mingw toolchain
. The action isn't cancelled so the lsp client perpetually waits for the action to complete.I think the error message is caused by
expandToolDir
in SysTools.BaseDir but I couldn't figure out how it is called. Since the retrie plugin works on the typechecked syntax tree andinitGhcMonad
callsexpandToolDir
this might be related. ghc-lib-parser mentions a similar issue in a comment:Finally, This issue comment in haskell-ide-engine has a similar message, no idea if this is related.
Your environment
haskell-language-server --probe-tools
orhaskell-language-server-wrapper --probe-tools
hie.yaml
Steps to reproduce
Use a fold or unfold action
Expected behaviour
The action is executed
Actual behaviour
The error
haskell-language-server-8.6.5.exe: could not detect mingw toolchain
is logged and the action never finishesInclude debug information
Execute in the root of your project the command
haskell-language-server --debug .
and paste the logs here:Debug output:
Paste the logs from the lsp-client, e.g. for VS Code
LSP logs:
The text was updated successfully, but these errors were encountered: