-
-
Notifications
You must be signed in to change notification settings - Fork 583
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
(wrong-type-argument hash-table-p nil) when running projectile-current-project-files #496
Comments
Spacemacs had the same error and created this bug: #486 It turned out to be a problem with the way projectile was being used, fixed by this commit: Not sure if that can help your problem, but I think something similar might be going on for you. |
This appears to be caused by my failure to call |
Yes, this variable is initialized when |
FWIW, I use projectile with helm, and I have never thought of either as a "mode" per se, since I use both everywhere for everything. I went back and read the documentation and found that I wasn't initializing it properly. Your code and documentation is great -- I think this was simply my mistake. |
I don't know much about the projectile internals, but I've been bit by this "problem": I was using helm-projectile and everything was working great, except that newly visited projects never got added to the list/cache (and no |
Debugged a bit.
Line 1193 of projectile.el:
(gethash (projectile-project-root) projectile-projects-cache))))
where, in my project,
projectile-projects-cache
isnil
(and I have caching enabled).gethash
doesn't appear to acceptnil
for the hashtable, as is the default (line 353).Emacs 24.4, Arch Linux, latest packages from Melpa (as of this morning).
Update:
(setq projectile-projects-cache (make-hash-table))
seems to solve the issue until restart, when it defaults back to
nil
.The text was updated successfully, but these errors were encountered: