Closed Nora-n closed 1 year ago
Found to be related to Noice
and maybe custom statuscolumn. For reference, see this comment on LazyVim.
I spent some time on this without giving a reply (sorry), but I'm glad to hear you figured it out (or partly so). I did not really have any good idea what could be causing the issue and I was planning on a recommendation to check if it could be related to lazy.nvim.
Description
I've been editing and compiling LaTeX files using LazyVim and Vimtex for over a year. Since a few days, I have errors randomly popping up whenever I want to save "too quickly", when I have a split window showing at least 2 buffers, with an error message
return require'lazyvim.util.ui'.statuscolumn(...)_check_callback[4]..vimtex#compiler#callback[54]..vimtex#qf#open[4]..vimtex#qf#setqflist[31]..vimtex#qf#bibtex#addqflist[4]..234, line 2
, orreturn nvim_bufferline(...).ui'.statuscolumn(...)_check_callback[4]..vimtex#compiler#callback[54]..vimtex#qf#open[4]..vimtex#qf#setqflist[31]..vimtex#qf#bibtex#addqflist[4]..238, line 2
, or even sometimesreturn require'lazyvim.util.ui'.statuscolumn(...)13]..vimtex#parser#toc#parse, line 78
.By "too quickly", I mean that if I wait long enough (5 to 10 seconds), I can save alright.
This error is actually hiding a prompt, asking me a
y/n
question that I can't read unless I type on another key. Typingn
doesn't save. Typingy
tries to save, but gives the error messageE509: Cannot create backup file (add ! to override)
. This also creates a copy of said file in my root git directory. Writing with!
does write, but the compilation doesn't work on that file anymore?I checked the
backupdir
with:se backup? backupdir?
, which was setup tobackupdir=~/.local/state/nvim/backup//
, and added the following lines in myinit.lua
:All of my previous backups, undo and swap were indeed already in these folders, and this change did nothing.
If I have no other buffer opened, this doesn't seem to arise.
This isn't a clear issue because I can't get where it lies: is it vimtex, is it lazyvim… sorry for the mess.
minimal.tex
Steps to reproduce
nvim file.tex
Expected behavior
I expect file saving to work without error, and my neovim not to create a file at my root git directory.
Actual behavior
I need to wait between saves for it to work, and a previous copy (backup) of the file I'm editing is created on my root directory
Do you use a latexmkrc file?
No
VimtexInfo