-
-
Notifications
You must be signed in to change notification settings - Fork 370
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
Applying hlint hint on Windows fails with "could not detect mingw toolchain" #615
Comments
@OwenGraves many thanks for the bug report. You are right, it is suspiciously similar to #591. The command (with powershell) used to install ghc with choco in the ci job is:
In cmd it would be (not tested):
|
I'm not sure I follow what you're suggesting, but I have ghc installed using choco in the default path |
I was suggesting just install ghc in that location like you already have but it is clear it should be different in the ci environment, will investigate where is |
@OwenGraves |
Thanks for looking into issue. I ran |
🤦♂️ omg, i am afraid that hls is being compiled in two environments:
So as you are using ghc-8.10.2 hlint plugin needs ghc in It is worse for windows cause:
@OwenGraves i would ask you (last time, i promise) to try move/copy/symlink ghc-8.10.2 to that location ( |
Well a better workaround would be build hls from source, of course. |
Would we still have the problem on earlier GHC where we pass a string rather than an AST? |
@ndmitchell If this issue is the same as #591 it is (there it was reported for ghc-8.8.4) |
I tried copying |
@OwenGraves jumm, so maybe it is not the same issue. Sorry for so many unsuccesful tries. Will continue investigating |
@jneira No worries, best of luck figuring it out! Let me know if you want me to try out any other ideas. |
I've reproduced it downloading ghc-8.10.1 from the release assets and using it locally (a version built locally works).
|
To make diagnose the issue easier for future ghc versions i've opened a pr upstream in ghc: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/4517 |
On Windows using vscode, I get a failure when applying a hint similar to haskell/vscode-haskell#323 or #591 except the error message is instead
The suggestion on hover seems to be correct however
The text was updated successfully, but these errors were encountered: