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
Warning: pkg.cabal:10:1: Test suite "test" is missing required field "type" or
the field is not present in all conditional branches. The available test types
are: exitcode-stdio-1.0, detailed-0.9
Warning: pkg.cabal:10:1: The 'main-is' field is required for the
exitcode-stdio-1.0 test suite type.
Errors encountered when parsing cabal file ./pkg.cabal:
pkg.cabal:10:1: error:
Test suite "test" is missing required field "type" or the field is not present in all conditional branches. The available test types are: exitcode-stdio-1.0, detailed-0.9
8 | license: GPL-3.0-or-later
9 |
10 | test-suite test
| ^
pkg.cabal:10:1: error:
The 'main-is' field is required for the exitcode-stdio-1.0 test suite type.
8 | license: GPL-3.0-or-later
9 |
10 | test-suite test
| ^
Error: cabal: parse error
Expected behavior
Complain about the right stuff (main-is missing) or leave it to cabal check, etc.
System information
debian linux
cabal-install 3.9 HEAD
The text was updated successfully, but these errors were encountered:
Describe the bug
In a file with a missing
main-is
intest-suite
, parser incorrectly complains about wrong or missingtype
To Reproduce
Expected behavior
Complain about the right stuff (
main-is
missing) or leave it tocabal check
, etc.System information
The text was updated successfully, but these errors were encountered: