Skip to content

[Fix #1861] Add projectile-discard-command-cache#2021

Merged
bbatsov merged 1 commit into
masterfrom
feature/1861-discard-command-cache
Jun 19, 2026
Merged

[Fix #1861] Add projectile-discard-command-cache#2021
bbatsov merged 1 commit into
masterfrom
feature/1861-discard-command-cache

Conversation

@bbatsov

@bbatsov bbatsov commented Jun 19, 2026

Copy link
Copy Markdown
Owner

The cached lifecycle commands take precedence over .dir-locals.el and the project-type defaults, so editing those didn't take effect until the cache was cleared. This adds an interactive projectile-discard-command-cache that drops the cached configure/compile/test/install/package/run commands for the current project, so they're re-read next run. Call it manually or wire it into an after-save-hook for .dir-locals.el buffers (as discussed in the issue).

Fixes #1861.

The cached lifecycle commands take precedence over the values from
.dir-locals.el and the project type defaults, so editing those had no
effect until the cache was cleared. Add an interactive command that drops
the cached configure/compile/test/install/package/run commands for the
current project, so they're re-read on the next run. It can be called
manually or wired into an after-save-hook for .dir-locals.el buffers.
@bbatsov bbatsov force-pushed the feature/1861-discard-command-cache branch from 959b285 to ae64ce4 Compare June 19, 2026 17:04
@bbatsov bbatsov merged commit b1b2a13 into master Jun 19, 2026
10 checks passed
@bbatsov bbatsov deleted the feature/1861-discard-command-cache branch June 19, 2026 17:05
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.

Update command cache when editing the .dir-locals.el file

1 participant