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

Package having extra package db not working with stack ghci #1435

Closed
ersran9 opened this issue Nov 26, 2015 · 2 comments
Closed

Package having extra package db not working with stack ghci #1435

ersran9 opened this issue Nov 26, 2015 · 2 comments

Comments

@ersran9
Copy link

ersran9 commented Nov 26, 2015

While trying out the test repo related to #990, stack build worked fine. But running stack ghci failed with error

Using main module: Package `app' component exe:app with main-is file: /tmp/stack-sandbox-chain-test/app/src/main/haskell/Main.hs
Configuring GHCi with the following packages: app
GHCi, version 7.10.2: http://www.haskell.org/ghc/  :? for help
<command line>: cannot satisfy -package-id lib1-0.1.0.0-bb7fbef4bc4e8d33cae9ac9155ab5a1a
    (use -v for more information)
@mgsloan
Copy link
Contributor

mgsloan commented Nov 28, 2015

Which stack version are you using?

I had to change the DB paths to the linux platform rather than osx. But, with a recent development version it works fine for me:

mgsloan@computer:~/oss/vigoo/stack-sandbox-chain-test/lib2$ stack ghci
ansi-wl-pprint-0.6.7.3: configure
ansi-wl-pprint-0.6.7.3: build
ansi-wl-pprint-0.6.7.3: copy/register
lib2-0.3: configure
Configuring lib2-0.3...
lib2-0.3: build
Preprocessing library lib2-0.3...
[1 of 1] Compiling Lib2             ( src/main/haskell/Lib2.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/Lib2.o )
In-place registering lib2-0.3...
lib2-0.3: copy/register
Installing library in
/home/mgsloan/oss/vigoo/stack-sandbox-chain-test/lib2/.stack-work/install/x86_64-linux/ghc-7.10.2/7.10.2/lib/x86_64-linux-ghc-7.10.2/lib2-0.3-CiAdjFZI5KEKIQliNN6moy
Registering lib2-0.3...
Completed all 2 actions.
Configuring GHCi with the following packages: lib2
GHCi, version 7.10.2: http://www.haskell.org/ghc/  :? for help
unknown option: 'c'
[1 of 1] Compiling Lib2             ( /home/mgsloan/oss/vigoo/stack-sandbox-chain-test/lib2/src/main/haskell/Lib2.hs, interpreted )
Ok, modules loaded: Lib2.
*Lib2 Lib2> :q
Leaving GHCi.
mgsloan@computer:~/oss/vigoo/stack-sandbox-chain-test/app$ stack build
Warning: Directory listed in app.cabal file does not exist: src/test/haskell
app-1.0.0.0: configure
Configuring app-1.0.0.0...
Warning: 'hs-source-dirs: src/test/haskell' directory does not exist.
app-1.0.0.0: build
Preprocessing executable 'app' for app-1.0.0.0...
[1 of 1] Compiling Main             ( src/main/haskell/Main.hs, .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/app/app-tmp/Main.o )
Linking .stack-work/dist/x86_64-linux/Cabal-1.22.4.0/build/app/app ...
Warning: Directory listed in app.cabal file does not exist: src/test/haskell
app-1.0.0.0: copy/register
Installing executable(s) in
/home/mgsloan/oss/vigoo/stack-sandbox-chain-test/app/.stack-work/install/x86_64-linux/ghc-7.10.2/7.10.2/bin

@ersran9
Copy link
Author

ersran9 commented Nov 30, 2015

The stack version is 0.1.8.0 and I had also made the db path changes. I tried to reproduce this issue on another machine, but it worked fine there. Unfortunately I don't recall the exact set of steps that were done which produced the issue. I'll close this issue now and if I'm able to reproduce it I'll reopen it. Sorry for the noise :(

@ersran9 ersran9 closed this as completed Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants