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
- Improve test descriptions
- Mention [package:][ctype:]component
- Don't repeat [package:][ctype:]component
- Lift validatedTargets, rename r as replFlags
- Don't use -XRecordWildCards for configFlags
- Add a one.project one pkg test
- Remove target string manipulation
- Make reportProjectNoTarget a function
- Redo ReplProjectTarget tests
- Redo ReplProjectNoneTarget tests
- Satisfy fix-whitespace
- Error whether or not project has packages
- Guard against triggering an assertion if targets are null
Please pick a single [package:][ctype:]component as target for the REPL command. The packages in 'alt.project' from which to select a component target are:
Please pick a single [package:][ctype:]component as target for the REPL command. The packages in 'alt.project' from which to select a component target are:
# checking repl command with a project using an implicit default 'cabal.project'
1
+
# checking repl command with a 'cabal.project' and no project options
2
2
# cabal repl
3
-
Configuration is affected by the following files:
4
-
- cabal.project
5
3
Error: [Cabal-7076]
6
-
With a project, the REPL command requires a single target. The packages in this project are:
4
+
Please pick a single [package:][ctype:]component as target for the REPL command. The packages from which to select a component in 'cabal.project', the implicit default as if `--project-file=cabal.project` was added as a command option, are:
7
5
- pkg-one
8
6
- pkg-two
9
-
# checking repl command with a project using an explicit 'cabal.project'
7
+
# checking repl command using an explicit 'some.project'
10
8
# cabal repl
11
-
Configuration is affected by the following files:
12
-
- some.project
13
9
Error: [Cabal-7076]
14
-
With a project, the REPL command requires a single target. The packages in this project, 'some.project', are:
10
+
Please pick a single [package:][ctype:]component as target for the REPL command. The packages in 'some.project' from which to select a component target are:
15
11
- pkg-one
16
12
- pkg-two
17
-
# checking repl command with a project listing packages in reverse order
13
+
# checking repl command using an explicit 'reverse.project', listing packages in reverse order
18
14
# cabal repl
19
-
Configuration is affected by the following files:
20
-
- reverse.project
21
15
Error: [Cabal-7076]
22
-
With a project, the REPL command requires a single target. The packages in this project, 'reverse.project', are:
16
+
Please pick a single [package:][ctype:]component as target for the REPL command. The packages in 'reverse.project' from which to select a component target are:
23
17
- pkg-one
24
18
- pkg-two
25
-
# checking repl command with a project with no packages
19
+
# checking repl command with an 'empty.project' with no packages
26
20
# cabal repl
27
-
Configuration is affected by the following files:
28
-
- empty.project
29
21
Warning: There are no packages or optional-packages in the project
30
22
Error: [Cabal-7076]
31
-
With a project, the REPL command requires a single target but there are no packages in this project, 'empty.project', to choose a package (library) or other component from as the target for this command.
32
-
# checking repl command with a missing project
23
+
There are no packages in 'empty.project'. Please add a package to the project and pick a single [package:][ctype:]component as target for the REPL command.
24
+
# checking repl command with a missing 'missing.project'
25
+
# cabal repl
26
+
# checking repl command with a missing 'missing.project'
0 commit comments