Skip to content

"cabal: Internal error in target matching" (was: Internal error/infinite loop in D.Client.TargetSelector) #5081

Open
@sebright

Description

@sebright

I reproduced the issue on master (3781531) by running the following command in the cabal repository:

$ cabal new-build test:unknown-test-suite
cabal: Internal error in target matching. It should always be possible to find
a syntax that's sufficiently qualified to give an unambiguous match. However
when matching 'test:unknown-test-suite' we found test:unknown-test-suite
(unknown-component) which does not have an unambiguous syntax. The possible
syntax and the targets they match are as follows:
cabal: <<loop>>

It also occurs when I run the same command on a simple project with one directory containing a simple .cabal file:

name: example
version: 1.0
build-type: Simple
cabal-version: >= 1.2

library

The error message is from D.Client.TargetSelector:

die' verbosity $ "Internal error in target matching. It should always "

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions