-
Notifications
You must be signed in to change notification settings - Fork 848
Closed
Description
General summary/comments (optional)
On the newest rc ghci can no longer be run for multiple components with autogen files.
Steps to reproduce
I have prepared a small repo to reproduce:
$ git clone [email protected]:aschmois/project.git
$ stack build
$ stack ghci project:lib project:test
Expected
In version 2.3.3 ghci loaded fine.
Actual
In version 2.5.0.1 rc ghci failed to load with:
$ stack ghci project:lib project:test
Using main module: 1. Package `project' component project:test:test with main-is file: /home/andres/project/test/Main.hs
project> configure (lib + test)
Configuring project-1...
project> initial-build-steps (lib + test)
project> Test running disabled by --no-run-tests flag.
Completed 2 action(s).
Configuring GHCi with the following packages: project
* * * * * * * *
Error: Multiple files use the same module name:
* Paths_project found at the following paths
* /home/andres/project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.0.1.0/build/autogen/Paths_project.hs (project:lib)
* /home/andres/project/.stack-work/dist/x86_64-linux-tinfo6/Cabal-3.0.1.0/build/test/autogen/Paths_project.hs (project:test:test)
* * * * * * * *
Not attempting to start ghci due to these duplicate modules.
Use --no-load to try to start it anyway, without loading any modules (but these are still likely to cause errors)
Stack version
$ stack --version
Version 2.5.0.1, Git revision 3cbd37ab548a34cf3fc0a8277079c4cef27c1118 RELEASE-CANDIDATE x86_64 hpack-0.33.0
Method of installation
- Official binary, downloaded from github releases
ProofOfKeags and ulidtko
Metadata
Metadata
Assignees
Labels
No labels