Skip to content

Internal error message for cabal repl within project scope #10527

Open
@philderbeast

Description

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".

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions