Skip to content

Build the search ignores from Projectile's patterns - #222

Merged
bbatsov merged 1 commit into
masterfrom
compat/projectile-33-ignore-patterns
Jul 24, 2026
Merged

Build the search ignores from Projectile's patterns#222
bbatsov merged 1 commit into
masterfrom
compat/projectile-33-ignore-patterns

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Projectile 3.3 turned its ignore configuration into a single list of gitignore-style patterns and dropped the path lists helm-projectile was reading, so every search command errored out. This reads projectile-filtering-patterns instead, splitting it on the trailing slash that marks a directory-only rule (helm-grep wants ignored files and directories as two separate lists) and stripping the anchoring markers, since the search tools take plain globs.

Bumps the Projectile requirement to 3.3.0 accordingly - the new API is where the ignore rules live now.

One of the new specs runs unstubbed against Projectile. The suite had been spying on the very functions that got deleted, which is why it stayed green through this.

Fixes #221

Projectile 3.3 collapsed its ignore machinery into a single list of
gitignore-style patterns and dropped the path lists we were reading -
projectile-ignored-files-rel, projectile-ignored-directories-rel and
projectile-patterns-to-ignore - so every search command errored out.

Read projectile-filtering-patterns instead and split it on the trailing
slash that marks a directory-only rule, since helm-grep wants ignored
files and directories as two lists.  The anchoring markers come off: the
search tools take plain globs and have no notion of a rule anchored to
the project root.

The ack path no longer appends projectile-patterns-to-ignore separately -
the pattern list already covers it.

One of the new specs goes through Projectile unstubbed.  The suite was
spying on the very functions that had been deleted, so it stayed green
through this breakage.
@codecov-commenter

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.65%. Comparing base (150ab7b) to head (372386f).
⚠️ Report is 1 commits behind head on master.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #222      +/-   ##
==========================================
+ Coverage   55.17%   55.65%   +0.47%     
==========================================
  Files           1        1              
  Lines         560      566       +6     
==========================================
+ Hits          309      315       +6     
  Misses        251      251              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bbatsov
bbatsov merged commit 4dae1d0 into master Jul 24, 2026
10 checks passed
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.

Helm-projectile still uses the now-deleted projectile-ignored-files-rel

2 participants