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

[DUX-1292] Multi-project Stack support #14

Open
9999years opened this issue Aug 10, 2023 · 0 comments
Open

[DUX-1292] Multi-project Stack support #14

9999years opened this issue Aug 10, 2023 · 0 comments

Comments

@9999years
Copy link
Member

With a multi-project Stack workspace, Stack will ask the following question instead of starting up ghci immediately. This breaks the prompt-matching automation.

* * * * * * * *
The main module to load is ambiguous. Candidates are:
1. Package `app' component exe:app-example with main-is file: /Users/rvion/dev/cogito/app/Main.hs
2. Package `pghs' component exe:pg2hs with main-is file: /Users/rvion/dev/cogito/pghs/Main.hs
You can specify which one to pick by:
 * Specifying targets to stack ghci e.g. stack ghci app:exe:app-example
Specify main module to use (press enter to load none): Not loading any main modules, as no valid     module selected
 * Specifying what the main is e.g. stack ghci --main-is app:exe:app-example

 * Choosing from the candidate above [1..2]
* * * * * * * *

ndmitchell/ghcid#57

Implementation outline:

  1. The IncrementalReader will need to be modified to return which pattern it found to delimit a chunk of lines.
  2. GhciStdout::initialize will need to be modified to look for the above prompt as well as the ghci version announcements.

From SyncLinear.com | DUX-1292

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

1 participant