-
Notifications
You must be signed in to change notification settings - Fork 391
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
kpsewhich cache causes "List or Blob required" error on completion #2206
Comments
Thanks, I'll see if I can improve the error handling here. But the simple solution would be to clear the cache with |
The problem is that why the cache get into the state in the first place (surely I don't manually modify the file) |
The cache got in that state because I made a change to the underlying code that changed how the cache was used. I thought I also added necessary error catching with messages to help people clear the cache if necessary, but I'm sorry to say I've missed something. But you should not get invalid cache after clearing it. |
(it's okay. I just didn't understand what was going on) A possible idea to avoid such cases in the future is to write a version number in the cache file, then delete the cache when there's an incompatible change, but it isn't really possible to retroactively apply that now (besides, the format doesn't change that frequently) |
Yes, that's a good idea. I thought of it before, but never found a good way to get the current vimtex git commit hash reliably. But that's not necessary, I can just use a cache specific version that I manually bump if I make a change to the cache. I'll update and push. Thanks for the suggestion! |
This allows us to invalidate caches when necessary and thus prevent problems with invalid cache due to code changes. refer: #2206
Description
Reproduce:
Put this into the kpsewhich.json cache file
is
Open a TeX file with this content
Put the cursor after the last
a
then press ctrl+N.Error:
The problem does not happen without the cache, but because VimTeX (presumably) generate that cache, it's still the plugin's bug?
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Do you use a latexmkrc file?
Yes
VimtexInfo
The text was updated successfully, but these errors were encountered: