-
Notifications
You must be signed in to change notification settings - Fork 206
stack ./install.hs stack-install-cabal failed #1436
Comments
Anyone how do I solve this? |
Hi! The code is assuming the environment variable |
What operating system are you using? |
In any case i've done a patch to ignore the |
I am using Mac OS catalina. I tried to it gives me this
Also when I open VSCode Haskell Language server's log. I got this
|
While this is a separate issue, do you have nix installed on your system? Or maybe in the config.yaml enabled nix although nix is not installed? |
@muhajirdev hi! the pr is merged and it should fix the error, unfortunately i can test it myself cause it is not reproducible in windows systems |
Maybe we should continue investigate why the |
Okay, I tried to git pull.
Still giving me this. But I tried |
Well, that is really weird. Thanks for test, it is hard to fix a bug that is not reproducible in local. |
I'm running into this same issue (and I have c253cbb). I'm very new to the Haskell ecosystem, so bear with me. I installed In case it helps:
|
Note, hie does neither support GHC 8.0.1 nor 8.8.1 and the installation script should not actually show these as an option. I will open another issue for that. There is a path variable defined though, right? So, |
Yes, it does. When I run |
Well, as there is more than one case with enough info, i think we should start to think to remove the |
Hi, i've pushed a version that catch all IOException's trying to get the @pcaisse @muhajirdev could you try it? In your clone of haskell-ide-engine you can do
Thanks in advance! NOTE: if that doesnt work we can try (the last attempt!) to catch all exceptions, replacing |
This didn't seem to help or make any difference for me 🤷♂️ |
I have this same issue on one of my machines. On my macOS 10.13 (High Sierra) machine the command works fine. But on my macOS 10.14 (Mojave) machine it fails with the same error message as in OP. I tried the fix in ignore-unset-path as well as
but neither of them changes the result or error message. I even went ahead and changed the function to Running "stack ghci", importing System.Environment and running 'getEnv "PATH"' gives a result that contains my $PATH plus some extra folders added by Stack. I cannot figure out what else is different between my two machines related to Stack/ghc beside the macOS version. I believe Apple made some security related changes/improvements in Mojave. My guess is that the error is somehow related to those changes. |
I implemented that fix, and it did indeed fix the problem. 👍 I'm not sure if this warning needs fixing or not, but adding this here just in case. This is the end of the output of 'stack ./install.hs stack-install-cabal'. I replaced my user directory with ~ as it contains my real name. My system's $PATH does not contain that snapshots directory, but Stack will add that to it's own PATH. That is 'getEnv "PATH"' contains $PATH plus that snapshots directory.
|
thanks all for your patience and test reports and sorry for the inconveniences (the error was caused by a bug introduced by myself) |
@jneira that fixes it for me 👍 |
The text was updated successfully, but these errors were encountered: