-
-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a .projectile file causes "projectile-invalidate-cache: Wrong type argument: hash-table-p, nil" #1854
Comments
I'm also hitting this issue. Do you have any workaround so far @jwr ? |
Unfortunately, no. I learned to live with it and the pain of |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed soon if no further activity occurs. Thank you for your contribution and understanding! |
This issue still exists for me. Emacs 29.1, Projectile 2.8.0, macOS 15.1.1. I sadly cannot use a |
Here is a backtrace:
|
The problem seems to be triggered by:
I'm puzzled how this happens in your case, though, as without a cache file this should never enter the |
I think I have a pretty good guess as to what's going on here. Would I be right if I assumed you're not using |
First, my apologies for an egg-on-face moment: what I initially reported was not about However. When I use the actual If I In other words: my initial report was garbage, but the problem still exists, even though I am not using the cache. |
That… is a trickier question than I imagined. I never explicitly call but this is how I initialize projectile:
|
I did some changes to the caching logic in 5061bd8 that I believe should solve your problem (amongst other problems). |
At any rate - I think my last round of changes should have solved the problem for you. |
I can confirm that projectile 2.9.1 fixes the problem! Thank you! 🙏 |
Expected behavior
Adding a .projectile file to the root of a project should not stop
projectile-find-file
from working.Actual behavior
Adding a .projectile file (either empty or containing excluded directories) to the root of a project causes
projectile-find-file
to fail with "Wrong type argument: hash-table-p, nil"Steps to reproduce the problem
Add a .projectile file
run
projectile-find-file
Environment & Version information
Projectile version information
Projectile 2.7.0
Emacs version
Emacs 29.1.50, earlier also on Emacs 28
Operating system
Mac OS 12.6.7
The text was updated successfully, but these errors were encountered: