Skip to content

cabal repl other-package doesn't open repl #7963

@robx

Description

@robx

Describe the bug
When I call cabal repl package-name for some dependency in the current project, cabal accepts the argument, builds it, and then just exits.

To Reproduce
Steps to reproduce the behavior:

$ cd Cabal
$ cabal v2-repl filepath
Resolving dependencies...
Up to date
$ echo $?
0

Expected behavior
I'd expect either an error telling me what I'm trying to do doesn't make sense, or a repl prompt.

System information

  • Operating system: macos
  • cabal 3.6.2.0 & recent HEAD, ghc 8.10.7

Additional context
What I was actually trying to do is bring an indirect dependency into scope. A repl within http-conduit which depends on http-client which pulls in network-uri, and I can't interact with the URIs I get out of some of the things I have in scope. Not sure cabal repl network-uri should have helped with that, or what would be the best way to achieve that.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions