Skip to content

Difference in --project-file-parser=compare #11152

@philderbeast

Description

@philderbeast

Describe the bug
I encountered a difference in parsing a test project file and am reporting this as requested:

Error: [Cabal-7165]
The legacy and parsec parsers produced different results for the project file. This is unexpected, please report this as a bug.

To Reproduce
In this repository, with the tests of #10933 added (or on that pull request's branch):

$  cd cabal-testsuite/PackageTests/ProjectImport/UniquePathDuplicates
$ rm -rf ./dist-newstyle/
$ cabal build --project-file=yops-0.project --project-file-parser=compare
...
Error: [Cabal-7165]
The legacy and parsec parsers produced different results for the project file.
This is unexpected, please report this as a bug.
...

Expected behavior
No difference in the parser results

System information

  • Ubuntu 25.04
  • cabal installed and built from 3d032f3, ghc-9.10.2

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions