`--enable-multi-repl` errors with multi-out-25793/paths does not exist
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
**Describe the bug**
Within this project at 62073c99833111dc7369dd22524f3b2a250a5f1d, I tried bringing up a REPL with `tar` as the TARGET and followed instructions for multiple components but that ultimately lead to a "No such file or directory" error:
**To Reproduce**
```
$ git rev-parse HEAD
62073c99833111dc7369dd22524f3b2a250a5f1d
$ cabal install cabal-install:exe:cabal --overwrite-policy=always
$ cabal repl tar
...
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
Error: [Cabal-7076]
Cannot open a repl for multiple components at once. The target 'tar' refers to the package tar
which includes the libraries tar-internal and tar.
Your compiler supports a multiple component repl but support is not enabled.
The experimental multi repl can be enabled by
* Globally: Setting multi-repl: True in your .cabal/config
* Project Wide: Setting multi-repl: True in your cabal.project file
* Per Invocation: By passing --enable-multi-repl when starting the repl
$ cabal repl tar --enable-multi-repl
Warning: this is a debug build of cabal-install with assertions enabled.
Configuration is affected by the following files:
- cabal.project
Resolving dependencies...
/.../dist-newstyle/multi-out-25793/paths:
getDirectoryContents:openDirStream: does not exist (No such file or directory)
$ ls dist-newstyle
build/ cache/ tmp/
```
**Expected behavior**
Either a warning or error to say that it is not possible to bring up a REPL for `tar` or for the REPL with `--enable-multi-repl` to come up. I also think the suggestion about multiple components could say (as another option) that the user could choose to bring up a REPL for just one of the components.
**System information**
```
$ ghc --numeric-version
9.10.1
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.10
Release: 24.10
Codename: oracular
```
Contributor guide
Assessment
This issue has not been assessed yet.