Skip to content

cabal repl (more or less) silently fails since 3.16.0.0 #11107

@geekosaur

Description

@geekosaur

Describe the bug
If I run cabal repl either inside or outside a project, I get

hilfy «cabal+validate-actions$» Z$ cabal-3.16.0.0 repl
Resolving dependencies...
hilfy «cabal+validate-actions$» Z$ _

If I run it outside a project with a -b option (in a temporary directory with no cabal.project in a parent):

hilfy Z$ cabal-3.16.0.0 repl -b vector
Resolving dependencies...
panic: targets should be non-empty
CallStack (from HasCallStack):
  error, called at src/Distribution/Client/CmdRepl.hs:366:38 in cabal-install-3.16.0.0-inplace:Distribution.Client.CmdRepl

To Reproduce
Reproducers shown above (the first one, if it wasn't obvious, is within the cabal project itself).

Expected behavior
A ghci should open, with appropriate things in scope.

System information

  • Linux Ubuntu 24.10
  • cabal 3.16.0.0, ghc 9.10.2

Sub-issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions