-
Notifications
You must be signed in to change notification settings - Fork 206
auto install of cabal on windows is not working #1462
Comments
Hi @flip111, thanks for the bug report (run the command directly in a cmd was a good idea). I've just test succesfully opening a stack based project (with A possible problem could be precisely the ghc and cabal versions in path, please include the output of run To get a more verbose output i set the trace level to verbose in the As possible quick and fuzzy workaround: try to remove the directories |
|
Hi, with that configuration (with no ghc and cabal in path and a stack project using ghc-8.6.5) |
Hello.
Not sure what "globally" means here. I just set it as my windows sytem variable.
Ok i done this, also i set a location for the log file. I don't get to see any log files though.
Which project ? |
yeah, i wanted to mean this
In the output (menu view > output) view of vscode there should be a log (named In
The project you are opening with vscode (with menu file > open folder i suppose) |
I unset the previous log file and then restarted vscode but i don't see anything in this pane
on my system
https://gist.github.com/flip111/844034f39155e15a2f7cf1a56a203b3c |
Ok, i've reproduced the error tweaking some internal config files inside In short: you need to put cabal (the executable) in the global PATH to make it work so i would recommend run It seems that cabal-helper-wrapper needs (some version of) cabal (the executable) to compile Cabal (the library used by that executable). The call to |
Hi, i installed cabal with
than vscode still gave an error so i ran the failing command again, did an update, and again https://gist.github.com/flip111/f38582455a1fdd270840af55c6439763 It's a bit strange that the compiling ended with a haskell data type print message After that i restarted vscode and all seemed to work. thanks a lot ! |
Some suggestions: change this line in the documentation:
and modify the install.hs script so that it installs cabal and after updates it too |
well, it used to do it! but it's true that in some (most?) cases cabal is not needed (in fact i was not able to trigger the error "normally"). At some point an user proposed remove the automatic install of cabal (for legitimate reasons imo): #1368 Moreover the incoming refactoring of hie (#1126) definitely will make cabal (or stack) optional for all cases. So i would modify the docs adding something like: "In some cases cabal is still needed,,," |
i followed the documentation to install the data and latest ghc with install.sh and stack. After that vscode tries to run a command which fails. I just pasted this same command in a terminal and it looks like this:
The text was updated successfully, but these errors were encountered: