You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I'm getting an "internal error" mentioning fake-package-0 for a, possibly common, omission of a project target when bringing up the REPL.
To Reproduce
With this, the haskell/cabal repository, at its root folder, do the following;
$ cabal repl
Error: [Cabal-7076]
Internal error when trying to open a repl for the package fake-package-0.
The package is not in the set of available targets for the project plan, which
would suggest an inconsistency between readTargetSelectors and resolveTargets.
We could say something like "Please provide a target from the packages or components of this project".
The text was updated successfully, but these errors were encountered:
I just ran into this today. Yes, please consider adding an error message, like: "Please provide a target from the packages or components of this project" or "cabal repl at project scope detected. Please try cabal repl <target>".
$ git rev-parse HEAD
4b2e5f03f1bbaa8b1afe32a5c390686507a175a1
$ cabal run cabal-install:exe:cabal -- repl
Warning: this is a debug build of cabal-install with assertions enabled.
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Warning: this is a debug build of cabal-install with assertions enabled.
Configuration is affected by the following files:
- cabal.project
Error: [Cabal-7076]
Internal error when trying to open a repl for the package fake-package-0.
The package is not in the set of available targets for the project plan, which
would suggest an inconsistency between readTargetSelectors and resolveTargets.
Describe the bug
I'm getting an "internal error" mentioning
fake-package-0
for a, possibly common, omission of a project target when bringing up the REPL.To Reproduce
With this, the haskell/cabal repository, at its root folder, do the following;
We could say something like "Please provide a target from the packages or components of this project".
The text was updated successfully, but these errors were encountered: