Skip to content

hie.yaml/ghci for this repo #87

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

Closed
Avi-D-coder opened this issue Dec 18, 2019 · 4 comments
Closed

hie.yaml/ghci for this repo #87

Avi-D-coder opened this issue Dec 18, 2019 · 4 comments

Comments

@Avi-D-coder
Copy link

I'm trying to get ghcide or stack ghci to load this repo, but the main module to load is ambiguous.

CradleError (ExitFailure 1) [
The main module to load is ambiguous. Candidates are: 
1. Package `haskell-ide-engine' component haskell-ide-engine:exe:hie with main-is file: /home/host/Public/haskell-ide-engine/app/MainHie.hs
2. Package `haskell-ide-engine' component haskell-ide-engine:exe:hie-wrapper with main-is file: /home/host/Public/haskell-ide-engine/app/HieWrapper.hs
You can specify which one to pick by: 
 * Specifying targets to stack ghci e.g. stack ghci haskell-ide-engine:exe:hie
 * Specifying what the main is e.g. stack ghci --main-is haskell-ide-engine:exe:hie
 * Choosing from the candidate above [1..2]
]
* * * * * * * *

Specify main module to use (press enter to load none):

I would of thought something like cradle: {stack: {component: "haskell-ide-engine:exe:hie"}} would fix the issue, but it and stack ghci haskell-ide-engine:exe:hie produce:

<command line>: cannot satisfy -package z-haskell-ide-engine-z-hie-test-utils
    (use -v for more information)
@Avi-D-coder
Copy link
Author

@fendor
Copy link
Collaborator

fendor commented Dec 22, 2019

I don't think this is really solved. I can reproduce the problem but I think this is a stack problem.

@Avi-D-coder Avi-D-coder reopened this Dec 22, 2019
@fendor
Copy link
Collaborator

fendor commented Dec 30, 2019

commercialhaskell/stack#4564 seems relevant
Stack does not support to load a project with stack repl if there are internal libraries.

@fendor
Copy link
Collaborator

fendor commented Jan 1, 2020

Closing in favour of haskell#1535

@fendor fendor closed this as completed Jan 1, 2020
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

2 participants