Skip to content

Commit 5c81d48

Browse files
SuganyaAKMikolaj
authored andcommitted
Accepting the new error output
1 parent 3fd5927 commit 5c81d48

File tree

11 files changed

+32
-15
lines changed

11 files changed

+32
-15
lines changed

cabal-testsuite/PackageTests/ConditionalAndImport/cabal.out

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ Building executable 'some-exe' for some-exe-0.0.1.0...
1111
Installing executable some-exe in <PATH>
1212
Warning: The directory <ROOT>/cabal.dist/home/.cabal/store/ghc-<GHCVER>/incoming/new-<RAND><ROOT>/cabal.dist/home/.cabal/store/ghc-<GHCVER>/<PACKAGE>-<HASH>/bin is not in the system search path.
1313
# cabal v2-build
14-
Error: cabal: Error parsing project file <ROOT>/cabal-cyclical.project:3:
14+
Error: [Cabal-7090]
15+
Error parsing project file <ROOT>/cabal-cyclical.project:3:
1516
cyclical import of cabal-cyclical.project
1617
# cabal v2-build
17-
Error: cabal: Error parsing project file <ROOT>/cabal-bad-conditional.project:
18+
Error: [Cabal-7090]
19+
Error parsing project file <ROOT>/cabal-bad-conditional.project:
1820
Cannot set compiler in a conditional clause of a cabal project file
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# cabal info
22
Config file path source is commandline option.
3-
Error: cabal: Config file not found: does.not.exist
3+
Error: [Cabal-7084]
4+
Config file not found: does.not.exist
45
(Config files can be created via the cabal-command 'user-config init'.)
56
# cabal info
67
Config file path source is environment variable CABAL_CONFIG.
7-
Error: cabal: Config file not found: absent.file
8+
Error: [Cabal-7084]
9+
Config file not found: absent.file
810
(Config files can be created via the cabal-command 'user-config init'.)
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# cabal get
22
Warning: <ROOT>/cabal.config: Unrecognized stanza on line 3
33
Warning: The package list for 'repo.invalid' does not exist. Run 'cabal update' to download it.
4-
Error: cabal: There is no package named 'a-b-s-e-n-t'.
4+
Error: [Cabal-7100]
5+
There is no package named 'a-b-s-e-n-t'.
56
You may need to run 'cabal update' to get the latest list of available packages.

cabal-testsuite/PackageTests/MultiRepl/NotEnabledFail/cabal.multirepl-a.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# cabal v2-repl
22
Resolving dependencies...
3-
Error: cabal: Cannot open a repl for multiple components at once. The targets 'pkg-a' and 'pkg-b' refer to different components..
3+
Error: [Cabal-7076]
4+
Cannot open a repl for multiple components at once. The targets 'pkg-a' and 'pkg-b' refer to different components..
45

56
Your compiler supports a multiple component repl but support is not enabled.
67
The experimental multi repl can be enabled by

cabal-testsuite/PackageTests/NewBuild/CmdRun/ExeAndLib/cabal.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ Configuring executable 'foo' for ExeAndLib-1.0...
77
Preprocessing executable 'foo' for ExeAndLib-1.0...
88
Building executable 'foo' for ExeAndLib-1.0...
99
# cabal v2-run
10-
Error: cabal: The run command is for running executables, but the target 'ExeAndLib' refers to the library ExeAndLib from the package ExeAndLib-1.0.
10+
Error: [Cabal-7070]
11+
The run command is for running executables, but the target 'ExeAndLib' refers to the library ExeAndLib from the package ExeAndLib-1.0.

cabal-testsuite/PackageTests/NewBuild/CmdRun/MultipleExes/cabal.out

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@ Configuring executable 'bar' for MultipleExes-1.0...
1414
Preprocessing executable 'bar' for MultipleExes-1.0...
1515
Building executable 'bar' for MultipleExes-1.0...
1616
# cabal v2-run
17-
1817
# cabal v2-run
19-
Error: cabal: The run command is for running a single executable at once. The target '' refers to the package MultipleExes-1.0 which includes
18+
Error: [Cabal-7070]
19+
The run command is for running a single executable at once. The target '' refers to the package MultipleExes-1.0 which includes
2020
- executables: bar and foo
21+
2122
# cabal v2-run
22-
Error: cabal: The run command is for running a single executable at once. The target 'MultipleExes' refers to the package MultipleExes-1.0 which includes
23+
Error: [Cabal-7070]
24+
The run command is for running a single executable at once. The target 'MultipleExes' refers to the package MultipleExes-1.0 which includes
2325
- executables: bar and foo
26+

cabal-testsuite/PackageTests/NewBuild/CmdRun/MultiplePackages/cabal.out

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ Building executable 'foo-exe' for bar-1.0...
2424
# cabal v2-run
2525
Error: cabal: No targets given and there is no package in the current directory. Specify packages or components by name or location. See 'cabal build --help' for more details on target options.
2626
# cabal v2-run
27-
Error: cabal: The run command is for running a single executable at once. The target 'bar' refers to the package bar-1.0 which includes
27+
Error: [Cabal-7070]
28+
The run command is for running a single executable at once. The target 'bar' refers to the package bar-1.0 which includes
2829
- executables: bar-exe and foo-exe
30+
2931
# cabal v2-run
3032
Error: cabal: Ambiguous target 'foo-exe'. It could be:
3133
bar:foo-exe (component)
@@ -34,3 +36,4 @@ Error: cabal: Ambiguous target 'foo-exe'. It could be:
3436
# cabal v2-run
3537
Error: cabal: Unknown target 'foo:bar-exe'.
3638
The package foo has no component 'bar-exe'.
39+
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# cabal v2-run
22
Resolving dependencies...
3-
Error: cabal: The run command can only run an executable as a whole, not files or modules within them, but the target 'Main.hs' refers to the file Main.hs in the executable foo.
3+
Error: [Cabal-7070]
4+
The run command can only run an executable as a whole, not files or modules within them, but the target 'Main.hs' refers to the file Main.hs in the executable foo.

cabal-testsuite/PackageTests/NewBuild/CmdRun/Single/cabal.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ Building executable 'foo' for Single-1.0...
1111
# cabal v2-run
1212
# cabal v2-run
1313
# cabal v2-run
14-
Error: cabal: Cannot run the package bar, it is not in this project (either directly or indirectly). If you want to add it to the project then edit the cabal.project file.
14+
Error: [Cabal-7070]
15+
Cannot run the package bar, it is not in this project (either directly or indirectly). If you want to add it to the project then edit the cabal.project file.

cabal-testsuite/PackageTests/Outdated/outdated-project-file.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ base ==3.0.3.2 (latest: 4.0.0.0)
77
Outdated dependencies:
88
base ==3.0.3.2 (latest: 4.0.0.0)
99
# cabal outdated
10-
Error: cabal: --project-dir and --project-file must only be used with --v2-freeze-file.
10+
Error: [Cabal-7103]
11+
--project-dir and --project-file must only be used with --v2-freeze-file.

cabal-testsuite/PackageTests/Outdated/outdated_freeze.out

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Outdated dependencies:
2323
template-haskell ==2.3.0.0 (latest: 2.3.0.1)
2424
binary ==0.8.5.0 (latest: 0.8.6.0)
2525
# cabal outdated
26-
Error: cabal: Couldn't find a freeze file expected at: <ROOT>/cabal.project.missing.freeze.freeze
26+
Error: [Cabal-7104]
27+
Couldn't find a freeze file expected at: <ROOT>/cabal.project.missing.freeze.freeze
2728

2829
We are looking for this file because you supplied '--project-file' or '--v2-freeze-file'. When one of these flags is given, we try to read the dependencies from a freeze file. If it is undesired behaviour, you should not use these flags, otherwise please generate a freeze file via 'cabal freeze'.

0 commit comments

Comments
 (0)