Strange non reproducible error when going back to Vim session left alone for a long time
Well, the point is that I don't know how to reproduce the problem. The plugin generally seems to work fine, but every now and then, when going back to a Vim session I've not been touching for hours, If I run :PlugUpdate I get back this error:
Error detected while processing function <SNR>4_update[1]..<SNR>4_update_impl[14]..<SNR>4_git_version_requirement[2]..<SNR>4_system[30]..function <SNR>4_update[1]..<SNR>4_update_impl[14]..<SNR>4_git_version_requirement[2]..<SNR>4_system:
line 24:
E484: Cannot open file /tmp/vG2nbqY/16
Error detected while processing function <SNR>4_update[1]..<SNR>4_update_impl[14]..<SNR>4_git_version_requirement:
line 2:
E171: Missing :endif
Error detected while processing function <SNR>4_update[1]..<SNR>4_update_impl:
line 14:
E171: Missing :endif
Press ENTER or type command to continue
If I run :PlugUpgrade I get:
Error detected while processing function <SNR>4_upgrade[24]..function <SNR>4_upgrade[7]..<SNR>4_system:
line 24:
E484: Cannot open file /tmp/vG2nbqY/20
and so on with the other :Plug* commands.
But I have no idea how to trigger this behavior. It just happens. I haven't been able to notice a correlation between this error and, say, the time I've left the Vim session open without interacting with it.
So mine is mostly a question: do you have any idea what might be happening that screws up your plugin, according to the error message above? Or maybe you have suggestion on what I could set up to track down what is causing this?
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Feb 09 2021 23:51:55)
Included patches: 1-2489
Compiled by Arch Linux
Huge version with GTK3 GUI. Features included (+) or not (-):
+acl +channel +cscope +ex_extra -hangul_input +linebreak +mouse_dec -mzscheme +profile +sound +termguicolors +vartabs +writebackup
+arabic +cindent +cursorbind +extra_search +iconv +lispindent +mouse_gpm +netbeans_intg +python/dyn +spell +terminal +vertsplit +X11
+autocmd +clientserver +cursorshape -farsi +insert_expand +listcmds -mouse_jsbterm +num64 +python3/dyn +startuptime +terminfo +virtualedit -xfontset
+autochdir +clipboard +dialog_con_gui +file_in_path +ipv6 +localmap +mouse_netterm +packages +quickfix +statusline +termresponse +visual +xim
-autoservername +cmdline_compl +diff +find_in_path +job +lua/dyn +mouse_sgr +path_extra +reltime -sun_workshop +textobjects +visualextra -xpm
+balloon_eval +cmdline_hist +digraphs +float +jumplist +menu -mouse_sysmouse +perl/dyn +rightleft +syntax +textprop +viminfo +xsmp_interact
+balloon_eval_term +cmdline_info +dnd +folding +keymap +mksession +mouse_urxvt +persistent_undo +ruby/dyn +tag_binary +timers +vreplace +xterm_clipboard
+browse +comments -ebcdic -footer +lambda +modify_fname +mouse_xterm +popupwin +scrollbind -tag_old_static +title +wildignore -xterm_save
++builtin_terms +conceal +emacs_tags +fork() +langmap +mouse +multi_byte +postscript +signs -tag_any_white +toolbar +wildmenu
+byte_offset +cryptv +eval +gettext +libcall +mouseshape +multi_lang +printer +smartindent +tcl/dyn +user_commands +windows
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "/etc/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
defaults file: "$VIMRUNTIME/defaults.vim"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/libm
ount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.32/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/local/lib -Wl,--as-need
ed -o vim -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lelf -lcanberra -lacl -lattr -lgpm -ldl -Wl,-
E -Wl,-rpath,/usr/lib/perl5/5.32/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -L/usr/local/lib -L/usr/lib/perl5/5.32/core_perl/CORE -lperl -lpthread -ldl -lm -lcrypt -lutil -lc -L/usr/lib -ltclstub8.6 -ldl -lz
-lpthread -lm
- Type:
- [ ] Bug
- [ ] Enhancement
- [ ] Feature Request
- [x] Question
- OS:
- [ ] All/Other
- [x] Linux
- [ ] OS X
- [ ] Windows
- Vim:
- [x] Terminal Vim
- [ ] GVim
- [ ] Neovim
Oh, I have kind of the feeling that this strange error started to occur together with this vimplug-unrelated error I've decribed here.
I am having this issue too when running :PlugUpdate
I suspect there's a process in your system that is periodically cleaning up your temp directory. I'm going to close this because there's nothing vim-plug can do to fix the situation.