-
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
Startup Error "List or Blob required" #2188
Comments
I cannot reproduce this (same Neovim version on macOS). Make sure you don't have stale packages lying around ( Also, how did you install Neovim? |
|
Can you try building directly from the repo? |
sure, I can try that. It started breaking on an earlier version of neovim after I did |
yeah, there were some vim patches related to blobs that got ported recently, but I wouldn't expect such breakage. |
I built neovim from source, and now I get the same error with the following set nocompatible
set packpath=
let &runtimepath = '~/.local/share/nvim/site/pack/packer/start/vimtex,' . &runtimepath
let &runtimepath .= ',~/.local/share/nvim/site/pack/packer/start/vimtex/after'
filetype plugin indent on
syntax enable |
Hmm, that's the same I do. Maybe I'm not following the steps exactly. Could you make them more explicit ("step 1, step 2, step 3... crash?") (Step 1 should be |
Step 1: \documentclass{article}
\input{preamble.tex}
\begin{document}
arst
\end{document} Step 4: ETA: I tried (in my normal neovim setup) removing and reinstalling vimtex with Packer, but the problem persists. |
Nope, sorry, can't reproduce. Do I actually need to type it (because I just copy&paste, because I'm lazy...) |
Surely you shouldn't need to type it. |
Doing |
Provide more helpful error message on invalid cache state. refer: #2188
So, first: Sorry for this. I recently made some changes to the kpsewhich caching which makes old cache files invalid. I documented it in the commit log and was planning to announce this in the next release. However, I now see that it is better to give a proper and helpful error message. Please update, and if required, run |
The plugin now does load and functions fine, but I get asked to run |
No, this is very unexpected. I'm sorry for the invonvenience! So, how to debug this... It could be helpful to see the content of your cache file. It should live at Perhaps there's a minor bug I'm unaware of. So another alternative is that you make a fully minimal example. If you can make a reproducible sample, then I should be able to fix it. |
I actually don't have a file at |
oh you know what, this is because I use TinyTeX rather than TeXLive. I did |
Sorry, I spoke too soon; the errors are still cropping up. It is odd that there is no file at |
Yes, very odd indeed! Can you try your original minimal example again, but this time add Could you run set nocompatible
" NB: Use the proper path here - I may have been mistaken!
set runtimepath^=~/.local/share/nvim/site/pack/packer/start/vimtex
filetype plugin on
setfiletype tex
let s:cache = vimtex#cache#open('kpsewhich')
unsilent echo s:cache
quitall |
here's that output (with newlines added)
|
When I add {"preamble.tex": [["", "/Users/rylee"]]} This is after the following steps:
\documentclass{article}
\input{preamble.tex}
\begin{document}
[...]
\end{document}
|
In case it's useful, |
I got a little ambitious and just put |
Interesting. Does the file exist now? |
I have to admit this issue annoys me, because as far as I can see, everything should work; you should not need to set the |
Yeah, now it has content like the following {"./figures/#1.pdf_tex": [["", "/Users/rylee"], ["", "/Users/rylee/Research/Papers/TrainTracksonGraphsofGroups"], ["", "/Users/rylee/Dropbox/Research/Papers/TrainTracksonGraphsofGroups"], ["", "/Users/rylee/Research/Papers/SimplyConnectedatInfinity"]]} |
Great, that looks quite right. What happens if you comment out |
It seems to still work! |
Great. I'll close the issue, then, even thought I still don't understand everything... :p |
Description
When opening a LaTeX file in a project I get the following error:
After this it appears that VimTeX fails to load; expected commands like
gf
,\ll
and others do not work, and:VimtexInfo
returns "Not an editor command".Steps to reproduce
Minimal test file:
Minimal test tex file: (opening
test.tex
as a new file works fine. After writing this and invoking:e preamble.tex
I get the error above.)Expected behavior
Vimtex to load
Actual behavior
The error mentioned above:
Do you use a latexmkrc file?
No
VimtexInfo
If I instead run
:VimtexInfo
on a completely blank TeX document I getThe text was updated successfully, but these errors were encountered: