Skip to content
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

cabal-env create .ghc directory before executing in it. #16

Open
phadej opened this issue Dec 25, 2019 · 2 comments
Open

cabal-env create .ghc directory before executing in it. #16

phadej opened this issue Dec 25, 2019 · 2 comments

Comments

@phadej
Copy link
Owner

phadej commented Dec 25, 2019

No description provided.

@jneira
Copy link

jneira commented Jun 22, 2021

I just hit this in windows: i have %APPDATA%\ghc but still no %APPDATA%\ghc\x86_64-mingw32-8.10.5 and:

PS D:\dev\ws\haskell\cabal-test> cabal-env --list
[   0.01119] ghc.info: ghc
[   0.14206] process.0.start: cwd=C:\TEMP ghc --info
[  10.82551] process.0.time: 10.675 seconds
[  10.84498] peu.exception: SomeException
C:\Users\atrey\AppData\Roaming\ghc\x86_64-mingw32-8.10.5\environments: getDirectoryContents:findFirstFile: does not exist (El sistema no puede encontrar la ruta especificada.)

@philderbeast
Copy link

I got the same thing on macOS.

# cabal-extras repo
> cabal install cabal-env:exe:cabal-env
> cabal-env --list
[   0.00000] ghc.info: ghc
[   0.00030] process.0.start: cwd=/var/folders/31/zb67fgcs66q4n3cs_wn134zr0000gn/T/ ghc --info
[   0.23369] peu.exception: SomeException
/Users/pdejoux/.ghc/x86_64-darwin-9.2.2/environments:
getDirectoryContents:openDirStream: does not exist (No such file or directory)

But then I tried to reproduce cabal's quickjobs workflow and now get no exception with list.

# cabal repo
> cabal-env --transitive QuickCheck
[   0.00001] ghc.info: ghc
[   0.00313] process.0.start: cwd=/var/folders/31/zb67fgcs66q4n3cs_wn134zr0000gn/T/ ghc --info
[   0.11154] debug: GHC environment path: /Users/pdejoux/.ghc/x86_64-darwin-8.10.7/environments/default
[   0.11291] cabal.plan: ... plan input summary TODO ...
[   0.11412] process.1.start:
cwd=/private/var/folders/31/zb67fgcs66q4n3cs_wn134zr0000gn/T/peura-XXXX-4b5a8722060ba021
cabal v2-build all --builddir=dist-newstyle
Resolving dependencies...
Build profile: -w ghc-8.10.7 -O1
In order, the following will be built (use -v for more details):
 - fake-package-0 (lib) (first run)
Configuring library for fake-package-0..
Building library for fake-package-0..
[   6.07292] debug: writing environment file
[   6.07752] peu.completed: OK
> cabal-env --list
[   0.00000] ghc.info: ghc
[   0.00029] process.0.start: cwd=/var/folders/31/zb67fgcs66q4n3cs_wn134zr0000gn/T/ ghc --info
[   0.09829] info: default
[   0.09850] peu.completed: OK

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

No branches or pull requests

3 participants