Describe the bug
The pasec project parser can't parse debug-info: True.
To Reproduce
I'll add a cabal-testsuite test for this1. Here's a preview when run locally:
$ cabal build all --project-file-parser=legacy --dry-run
Build profile: -w ghc-9.14.1 -O1
In order, the following would be built (use -v for more details):
- debug-info-0 (lib) (first run)
$ cabal build all --project-file-parser=parsec --dry-run
Can't parse debug info level True
HasCallStack backtrace:
error, called at src/Distribution/Simple/Compiler.hs:388:8 in Cabal-3.17.0.0-0ed1aa8ee4a268ed0366a89952dfc3676b1e0576dc8fd75d60be07a27b8427b1:Distribution.Simple.Compiler
$ cabal build all --project-file-parser=fallback --dry-run
Warning: this is a debug build of cabal-install with assertions enabled.
Can't parse debug info level True
HasCallStack backtrace:
error, called at src/Distribution/Simple/Compiler.hs:388:8 in Cabal-3.17.0.0-0ed1aa8ee4a268ed0366a89952dfc3676b1e0576dc8fd75d60be07a27b8427b1:Distribution.Simple.Compiler
$ cabal build all --project-file-parser=compare --dry-run
Warning: this is a debug build of cabal-install with assertions enabled.
Can't parse debug info level True
HasCallStack backtrace:
error, called at src/Distribution/Simple/Compiler.hs:388:8 in Cabal-3.17.0.0-0ed1aa8ee4a268ed0366a89952dfc3676b1e0576dc8fd75d60be07a27b8427b1:Distribution.Simple.Compiler
Expected behavior
That the parsec parser behaves like the legacy parser and is able to parse booleans for this field.
Describe the bug
The pasec project parser can't parse
debug-info: True.To Reproduce
I'll add a
cabal-testsuitetest for this1. Here's a preview when run locally:Expected behavior
That the parsec parser behaves like the legacy parser and is able to parse booleans for this field.
Footnotes
The test is in Add parsing debug-info test #12141. ↩