Skip to content
This repository has been archived by the owner on Apr 25, 2020. It is now read-only.

openDirStream: does not exist #925

Closed
mkchoi212 opened this issue Jan 19, 2018 · 6 comments
Closed

openDirStream: does not exist #925

mkchoi212 opened this issue Jan 19, 2018 · 6 comments

Comments

@mkchoi212
Copy link

I cloned the ghc802 branch to install ghc-mod on my system with the below configurations.

stack --version
Version 1.6.1, Git revision f25811329bbc40b0c21053a8160c56f923e1201b (5435 commits) x86_64 hpack-0.20.0
cabal --version
cabal-install version 2.0.0.1
compiled using version 2.0.1.1 of the Cabal library
ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.2.2

I then created a stack.yaml as mentioned in #922 (comment) and then ran stack build.

The error output I am getting is the following

/Users/me/cabal-helper/: getDirectoryContents:openDirStream: does not exist (No such file or directory)
@DanielG
Copy link
Owner

DanielG commented Jan 19, 2018

Is that literally the only output you get from stack build? That seems rather strange I suggest running it with turned up verbosity as it stands there isn't really much to go on.

Also it looks to me like you're on OSX, correct?

@mkchoi212
Copy link
Author

mkchoi212 commented Jan 19, 2018

Yes and I am on High Sierra 10.13.2 (17C205).

The verbose output seems to not reveal anything.

Version 1.6.1, Git revision f25811329bbc40b0c21053a8160c56f923e1201b (5435 commits) x86_64 hpack-0.20.0
2018-01-19 09:09:53.376291: [debug] Checking for project config at: /Users/mikechoi/ghc-mod/stack.yaml
@(Stack/Config.hs:842:9)
2018-01-19 09:09:53.376836: [debug] Loading project config file stack.yaml
@(Stack/Config.hs:868:13)
2018-01-19 09:09:53.379709: [debug] Decoding build plan from: /Users/mikechoi/.stack/build-plan/lts-10.1.yaml
@(Stack/Snapshot.hs:150:5)
2018-01-19 09:09:53.379855: [debug] Trying to decode /Users/mikechoi/.stack/build-plan-cache/lts-10.1.cache
@(Data/Store/VersionTagged.hs:66:5)
2018-01-19 09:09:53.394523: [debug] Success decoding /Users/mikechoi/.stack/build-plan-cache/lts-10.1.cache
@(Data/Store/VersionTagged.hs:70:13)
2018-01-19 09:09:53.394888: [debug] Using standard GHC build
@(Stack/Setup.hs:619:9)
2018-01-19 09:09:53.401180: [debug] Asking GHC for its version
@(Stack/Setup/Installed.hs:98:13)
2018-01-19 09:09:53.401881: [debug] Getting Cabal package version
@(Stack/GhcPkg.hs:185:5)
2018-01-19 09:09:53.402092: [debug] Run process: /Users/mikechoi/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc --numeric-version
@(System/Process/Log.hs:37:3)
2018-01-19 09:09:53.402219: [debug] Getting global package database location
@(Stack/GhcPkg.hs:46:5)
2018-01-19 09:09:53.403246: [debug] Run process: /Users/mikechoi/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Log.hs:37:3)
2018-01-19 09:09:53.404154: [debug] Run process: /Users/mikechoi/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Log.hs:37:3)
2018-01-19 09:09:53.488771: [debug] Process finished in 85ms: /Users/mikechoi/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc-pkg --no-user-package-db field --simple-output Cabal version
@(System/Process/Log.hs:44:3)
2018-01-19 09:09:53.491606: [debug] Process finished in 87ms: /Users/mikechoi/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc-pkg --no-user-package-db list --global
@(System/Process/Log.hs:44:3)
2018-01-19 09:09:53.565037: [debug] Process finished in 162ms: /Users/mikechoi/.stack/programs/x86_64-osx/ghc-8.2.2/bin/ghc --numeric-version
@(System/Process/Log.hs:44:3)
2018-01-19 09:09:53.565193: [debug] GHC version is: ghc-8.2.2
@(Stack/Setup/Installed.hs:102:13)
2018-01-19 09:09:53.565412: [debug] Resolving package entries
@(Stack/Setup.hs:252:5)
2018-01-19 09:09:53.565563: [debug] Trying to decode /Users/mikechoi/.stack/loaded-snapshot-cache/x86_64-osx/ghc-8.2.2/lts-10.1.cache
@(Data/Store/VersionTagged.hs:66:5)
2018-01-19 09:09:53.617736: [debug] Success decoding /Users/mikechoi/.stack/loaded-snapshot-cache/x86_64-osx/ghc-8.2.2/lts-10.1.cache
@(Data/Store/VersionTagged.hs:70:13)
2018-01-19 09:09:53.618759: [debug] Starting to execute command inside EnvConfig
@(Stack/Runners.hs:170:18)
2018-01-19 09:09:53.618860: [debug] Parsing the targets
@(Stack/Build/Target.hs:460:3)
/Users/mikechoi/cabal-helper/: getDirectoryContents:openDirStream: does not exist (No such file or directory)

@DanielG
Copy link
Owner

DanielG commented Jan 19, 2018

Looks to me like you just got the path to cabal-helper wrong in the stack.yaml file.

@mkchoi212
Copy link
Author

mkchoi212 commented Jan 19, 2018

Sorry I am a newbie to Haskell but where usually is the cabal-helper??

I installed Haskell-platform to start off with Homebrew.

@DanielG
Copy link
Owner

DanielG commented Jan 19, 2018

It doesn't have a standard location, if you followed the instructions you linked to faithfully it ought to be in the directory you ran the corresponding git clone command.

@mkchoi212
Copy link
Author

It seems like I skipped an entire step.... My bad!!

It was late at night ha

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants