Skip to content

[Fix #1872] Clarify that marker-files lists are AND-ed#2027

Merged
bbatsov merged 1 commit into
masterfrom
feature/1872-marker-files-doc
Jun 20, 2026
Merged

[Fix #1872] Clarify that marker-files lists are AND-ed#2027
bbatsov merged 1 commit into
masterfrom
feature/1872-marker-files-doc

Conversation

@bbatsov

@bbatsov bbatsov commented Jun 20, 2026

Copy link
Copy Markdown
Owner

A user registered a type with two marker files expecting it to match when either was present, but a marker-files list requires all of them (logical AND). This documents that semantics in the projectile-register-project-type docstring and the manual, and points to predicate markers for any-of matching.

Fixes #1872.

Listing several marker-files requires ALL of them to be present for the
type to match, which surprised a user who expected any-of semantics.
Spell this out in the `projectile-register-project-type' docstring and
the manual, and point to predicate markers for matching when any one of
several files is present.
@bbatsov bbatsov merged commit 86a87c8 into master Jun 20, 2026
10 checks passed
@bbatsov bbatsov deleted the feature/1872-marker-files-doc branch June 20, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Projectile can't recognise custom project type

1 participant