-
Notifications
You must be signed in to change notification settings - Fork 90
cabal-helper-wrapper "print-build-platform" (exit 1): failed. #128
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
Comments
Does After installing hie, you have to leave the directory intact that it was installed from. |
Yep, That file exists. $ ls -l /Users/foo/dev/study/haskell-ide-engine/.stack-work/install/x86_64-osx/lts-13.0/8.6.3/bin/cabal-helper-wrapper
.rwxr-xr-x 1 6.8Mi foo staff 2018-12-29 18:53 /Users/foo/dev/study/haskell-ide-engine/.stack-work/install/x86_64-osx/lts-13.0/8.6.3/bin/cabal-helper-wrapper |
And what happens if you run
|
The result: $ /Users/foo/dev/study/haskell-ide-engine/.stack-work/install/x86_64-osx/lts-13.0/8.6.3/bin/cabal-helper-wrapper print-build-platform
cabal-helper-wrapper: dieVerbatim: user error (cabal-helper-wrapper: The program 'ghc' version >=7.0.1 is required but it
could not be found.
) Hmm, do i need to expose $ ghc --version
zsh: command not found: ghc
$ stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.6.3 |
It looks like the wrapper is also expecting a system ghc to be installed. What I do is just symlink the stack one in to a location on the path somewhere, but in the meantime this is a bug, I will look into it. |
Oh, you are right. Thanks. I appended a path for export PATH=~/.stack/programs/x86_64-osx/ghc-8.6.3/bin:$PATH Or export PATH=$(stack path | grep ^bin-path):$PATH |
you can also use export PATH=$(stack path --compiler-exe):$PATH |
I assume $ stack path --compiler-exe
/Users/foo/.stack/programs/x86_64-osx/ghc-8.6.3/bin/ghc
$ stack path --compiler-bin
/Users/foo/.stack/programs/x86_64-osx/ghc-8.6.3/bin |
Hey Guys,I have the same problem.
When I run the cabal-helper-wapper, It shows:
what should I do? Should I install ghc above 7.0 by stack? |
@FledgeXu You should add |
@jinbeomhong It works! Thank you for your help. |
Hi there, $ haskell-ide-engine/.stack-work/install/x86_64-osx/lts-12.26/8.4.4/bin/cabal-helper-wrapper print-build-platform
x86_64-osx $ stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.4.4 |
I got this on Windows 10. |
Following is my workaround (as a summarize of @alanz and @jinbeomhong 's above comment): add |
Hi... I got the following error when trying to run
I am using One thing that I noticed here is that cabal-helper put this So I try to run it manually and change it into:
and get the following output:
Is this output already what is intended by Does this issue still relevant to this thread? |
I think as of now HIE doesn't work well with the new-style commands (haskell/haskell-ide-engine#962 is related). For my development I'm therefore still using the old-style commands. |
I am getting this same error message:
But the solutions above do not work for me. When I run:
The output is But when I run the full command from the error message I get:
The |
hie not longer uses cabal-helper-wrapper and it is able to start using stack if there is no ghc on path so i think this should be fixed with latest versions of hie and the extension: @srcdes @FledgeXu @krikchaip @KillyMXI @Rizary @luochen1990 feel free to reopen if it is not the case |
When i open a
.hs
file in vscode, an error occurred following:MacOS : 10.14.2
vscode : 1.30.1(1.30.1)
The text was updated successfully, but these errors were encountered: