You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
I was trying to troubleshoot HIE for somebody who reported issues getting it to work (for vscode) at haskell/vscode-haskell#126
Downloading the compiled release (yay for having that option now btw) will not work, seemingly some places have @bubba s path compiled in (/Users/luke/Source/haskell-ide-engine/.stack-work/install/x86_64-osx/...). See attached 4-Haskell HIE (pboy).log
I ran into some other smaller issues as well, I think polishing those up could make the installation experience accessible to a lot more people. I volunteer to work on documentation if we can agree on what to improve.
it wasn't obvious to me how I can peek into the logs between hie and vscode. What's the recommended way? Found the logs nicely accessible in a dropdown under the output pane of vscode. Maybe we could put this in the Readme under the troubleshooting section at the bottom?
it seems the hie executable is used instead of hie-wrapper, despite my impression that the latter would be used preferentially. On that note: Why have the hie executable there in the first place?
I saw a complaint in the logs about hlint.yaml not being found, it's unclear if that was a warning or an error.
I tried to install v0.4.0.1 over v0.2.2.0 using the instructions under "Installation with stack" and something broke on this recommended instruction (after using brew to upgrade stack):
stack install cabal-install
Got "ExitFailure 2" trying to install GHC 8.6.2 but no indication of where to look for a log to explain it, so I gave up. Also, I broke HIE on my machine. I may try to start from scratch but will follow along here to see if anything develops.
Update - I am trying a clean install and made it past installing cabal-install but the same failure occurred after running make build-all in the HIE source directory:
Details$ make build-all
Downloading nightly-2018-12-01 build plan ...
Downloaded nightly-2018-12-01 build plan.
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Preparing to download ghc-8.6.2 ...
ghc-8.6.2: download has begun
ghc-8.6.2: 12.97 MiB / 221.33 MiB ( 5.86%) downloaded...
-etc.-
ghc-8.6.2: 221.33 MiB / 221.33 MiB (100.00%) downloaded...
Downloaded ghc-8.6.2.
Unpacking GHC into /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ ...
Configuring GHC ...
Installing GHC ...
Received ExitFailure 2 when running
Raw command: /usr/bin/make install
Run from: /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ghc-8.6.2/
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Preparing to download ghc-8.6.2 ...
Already downloaded.
Unpacking GHC into /Users/pat/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ ...
Configuring GHC ...
Installing GHC ...
Received ExitFailure 2 when running
Raw command: /usr/bin/make install
Run from: /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ghc-8.6.2/
git submodule sync
Synchronizing submodule url for 'submodules/HaRe'
Synchronizing submodule url for 'submodules/brittany'
Synchronizing submodule url for 'submodules/cabal-helper'
Synchronizing submodule url for 'submodules/ghc-mod'
git submodule update --init
stack install cabal-install
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Already downloaded.
Installing GHC ...
Received ExitFailure 2 when running
Raw command: /usr/bin/make install
Run from: /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ghc-8.6.2/
make: *** [cabal] Error 1
Again I don't know where to find a log file that might explain what went wrong.
Hi @Rhywun! Let's split this into a separate issue since the cause will be different from the one affecting the precompiled binary release. I'll then try to redo my installation step by step and see if I can help your case!
Update so far: Since the hie binary relies on the libexec and data-dir paths generated by cabal, we'll probably need an install script or something for the binaries to replace these paths. cabal-helper relies on libexec for cabal-helper-wrapper and hlint has some share files, but cabal-helper-wrapper has gone away in recent versions of cabal-helper so we might not need it.
You may not believe me, but I'm doing "git pull" and "git submodule update --init" every time I start doing anything on this repo. Good hygiene, y'know...
I'd much rather that you explain how stack-8.x.x.yaml relates to stack.yaml, and whether both are used in the stack build.
hie --version hints to an old version of hie, since the current version is 0.8.0.0. Or there is an old hie version on the PATH.
The target build-docs does not exist on HEAD anymore.
Thus, your repository is either not up-to-date or you are not following the master branch.
To the relation, they are not related. stack.yaml is just using the nightly stackage snapshot. It is used for development and CI. The install script does afaik not use it at all.
Thank you - I just noticed that on one machine indeed it built (or used) an old version (0.7 instead of 0.8). I'll take care of that.
So, if I'm using "stack install.hs ..." and want to ensure the build uses a specific resolver and GHC-8.6.4, I need to edit shake.yaml and stack-8.6.4.yaml?
Afaik you may to edit the shake.yaml such that install.hs is run with the ghc version you wish. If you use stack install.hs hie-8.6.4 the correct stack*.yaml will be automatically used for the hie executable.
Activity
alanz commentedon Dec 15, 2018
cc @bubba
Rhywun commentedon Dec 16, 2018
I tried to install v0.4.0.1 over v0.2.2.0 using the instructions under "Installation with stack" and something broke on this recommended instruction (after using brew to upgrade stack):
stack install cabal-installGot "ExitFailure 2" trying to install GHC 8.6.2 but no indication of where to look for a log to explain it, so I gave up. Also, I broke HIE on my machine. I may try to start from scratch but will follow along here to see if anything develops.
Update - I am trying a clean install and made it past installing cabal-install but the same failure occurred after running
make build-allin the HIE source directory:Details
$ make build-all Downloading nightly-2018-12-01 build plan ... Downloaded nightly-2018-12-01 build plan. Preparing to install GHC to an isolated location. This will not interfere with any system-level installation. Preparing to download ghc-8.6.2 ... ghc-8.6.2: download has begun ghc-8.6.2: 12.97 MiB / 221.33 MiB ( 5.86%) downloaded... -etc.- ghc-8.6.2: 221.33 MiB / 221.33 MiB (100.00%) downloaded... Downloaded ghc-8.6.2. Unpacking GHC into /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ ... Configuring GHC ... Installing GHC ... Received ExitFailure 2 when running Raw command: /usr/bin/make install Run from: /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ghc-8.6.2/Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Preparing to download ghc-8.6.2 ...
Already downloaded.
Unpacking GHC into /Users/pat/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ ...
Configuring GHC ...
Installing GHC ...
Received ExitFailure 2 when running
Raw command: /usr/bin/make install
Run from: /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ghc-8.6.2/
git submodule sync
Synchronizing submodule url for 'submodules/HaRe'
Synchronizing submodule url for 'submodules/brittany'
Synchronizing submodule url for 'submodules/cabal-helper'
Synchronizing submodule url for 'submodules/ghc-mod'
git submodule update --init
stack install cabal-install
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Already downloaded.
Installing GHC ...
Received ExitFailure 2 when running
Raw command: /usr/bin/make install
Run from: /Users/me/.stack/programs/x86_64-osx/ghc-8.6.2.temp/ghc-8.6.2/
make: *** [cabal] Error 1
Again I don't know where to find a log file that might explain what went wrong.
2mol commentedon Dec 18, 2018
Hi @Rhywun! Let's split this into a separate issue since the cause will be different from the one affecting the precompiled binary release. I'll then try to redo my installation step by step and see if I can help your case!
Rhywun commentedon Dec 18, 2018
@2mol
Done, thanks
lukel97 commentedon Jan 8, 2019
Update so far: Since the
hiebinary relies on thelibexecanddata-dirpaths generated by cabal, we'll probably need an install script or something for the binaries to replace these paths. cabal-helper relies onlibexecforcabal-helper-wrapperand hlint has somesharefiles, butcabal-helper-wrapperhas gone away in recent versions of cabal-helper so we might not need it.jasonmcole commentedon Mar 22, 2019
The specific error message I got from make was:
Installing gmp with
brew install gmp, then re-runningstack ./install.hs build-allproceeded without issue.Anrock commentedon Mar 22, 2019
@jasonmcole that's known issue with ghc on osx. See README and ghc bug. Affects 8.6.1 and 8.6.2, fixed in 8.6.3 iirc.
14 remaining items
mouse07410 commentedon Apr 25, 2019
You may not believe me, but I'm doing "git pull" and "git submodule update --init" every time I start doing anything on this repo. Good hygiene, y'know...
I'd much rather that you explain how stack-8.x.x.yaml relates to stack.yaml, and whether both are used in the stack build.
fendor commentedon Apr 25, 2019
hie --versionhints to an old version of hie, since the current version is0.8.0.0. Or there is an old hie version on the PATH.The target
build-docsdoes not exist on HEAD anymore.Thus, your repository is either not up-to-date or you are not following the master branch.
To the relation, they are not related.
stack.yamlis just using the nightly stackage snapshot. It is used for development and CI. The install script does afaik not use it at all.mouse07410 commentedon Apr 25, 2019
Thank you - I just noticed that on one machine indeed it built (or used) an old version (0.7 instead of 0.8). I'll take care of that.
So, if I'm using "stack install.hs ..." and want to ensure the build uses a specific resolver and GHC-8.6.4, I need to edit shake.yaml and stack-8.6.4.yaml?
fendor commentedon Apr 25, 2019
Afaik you may to edit the
shake.yamlsuch that install.hs is run with the ghc version you wish. If you usestack install.hs hie-8.6.4the correctstack*.yamlwill be automatically used for thehieexecutable.mouse07410 commentedon Apr 25, 2019
Great! But do I need to make sure stack-8.6.4.yaml doesn't pull a different resolver? Or tries to rewrite a different GHC?
fendor commentedon Apr 25, 2019
No, the only additional resolver is pulled in by
shake.yaml. Everything else should work as expected.mouse07410 commentedon Apr 26, 2019
Indeed. That machine was on a different branch. Thanks for pointing that out. Just fixed.
jneira commentedon Jan 14, 2020
This seems to be fixed, closing