Skip to content

Ignore the generated directories of the common ecosystems#2122

Merged
bbatsov merged 1 commit into
masterfrom
feature/ignore-build-artifacts
Jul 25, 2026
Merged

Ignore the generated directories of the common ecosystems#2122
bbatsov merged 1 commit into
masterfrom
feature/ignore-build-artifacts

Conversation

@bbatsov

@bbatsov bbatsov commented Jul 25, 2026

Copy link
Copy Markdown
Owner

projectile-globally-ignored-directories only covered editor and version
control directories, so under native or hybrid indexing a JavaScript
project offered you the whole of node_modules, a Rust one its target, a
Python one every __pycache__. Under alien the VCS was already hiding those,
which is presumably why it went unnoticed for so long - but that leaves the
other two indexing methods, and projects that aren't under version control at
all, in a bad place out of the box.

So the defaults now include the dependency and build output directories of the
common ecosystems. Names that projects do sometimes commit - vendor (Go),
dist and public (published libraries and site output), build (as often a
source directory as an output one) - are deliberately not in the list.

This is a behavior change for anyone who was relying on seeing those files.
projectile-globally-unignored-directories takes an entry back globally, and a
! line in a project's .projectile takes it back for that project.

The defaults only covered editor and VCS directories, so under native or
hybrid indexing every JavaScript project offered you the whole of
node_modules, every Rust one its target directory, and so on. Under
alien the VCS was already hiding them, which is why this went unnoticed
for so long.

Names that projects do sometimes commit - vendor, dist, public, build -
are left out on purpose; the rest are things a tool generates.
@bbatsov
bbatsov merged commit 682a32a into master Jul 25, 2026
8 of 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.

1 participant