You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening a .tex file in neovim, I get an error message saying that module 'vim.treesitter.highlighter', field package.preload['vim.treesitter.highlighter'], and a bunch of files are missing.
Sorry if this is not a vimtex problem!
Steps to reproduce
Putting this code in my init.vim reproduces the error message:
When opening a .tex file, I get the following error message:
Error detected while processing function vimtex#nvim#check_treesitter:
line 9:
E5105: Error while calling lua chunk: [string "<VimL compiled string>"]:1: module 'vim.treesitter.highlighter' not found:
no field package.preload['vim.treesitter.highlighter']
no file '/home/simonj/.config/nvim/lua/vim/treesitter/highlighter.lua'
no file '/home/simonj/.config/nvim/lua/vim/treesitter/highlighter/init.lua'
no file '/home/simonj/.vim/plugged/vimtex/lua/vim/treesitter/highlighter.lua'
no file '/home/simonj/.vim/plugged/vimtex/lua/vim/treesitter/highlighter/init.lua'
no file '/etc/xdg/xdg-i3/nvim/lua/vim/treesitter/highlighter.lua'
no file '/etc/xdg/xdg-i3/nvim/lua/vim/treesitter/highlighter/init.lua'
no file '/etc/xdg/nvim/lua/vim/treesitter/highlighter.lua'
no file '/etc/xdg/nvim/lua/vim/treesitter/highlighter/init.lua'
no file '/usr/share/kubuntu-default-settings/kf5-settings/nvim/lua/vim/treesitter/highlighter.lua'
no file '/usr/share/kubuntu-default-settings/kf5-settings/nvim/lua/vim/treesitter/highlighter/init.lua'
no file '/home/simonj/.local/share/nvim/site/lua/vim/treesitter/highlighter.lua'
no file '/home/simonj/.local/share/nvim/site/lua/vim/treesitter/highlighter/init.lua'
no file '/usr/share/i3/nvim/site/lua/vim/treesitter/highlighter.lua'
no file '/usr/share/i3/nvim/site/lua/vim/treesitter/highlighter/init.lua'
no file '/usr/local/share/nvim/site/lua/vim/treesitter/highlighter.lua'
no file '/usr/local/share/nvim/site/lua/vim/treesitter/highlighter/init.lua'
no file '/usr/share/nvim/site/lua/vim/treesitter/highlighter.lua'
no file '/usr/share/nvim/site/lua/vim/treesitter/highlighter/init.lua'
no file '/usr/share/nvim/runtime/lua/vim/treesitter/highlighter.lua'
no file '/usr/share/nvim/runtime/lua/vim/treesitter/highlighter/init.lua'
no file '/usr/share/nvim/runtime/pack/dist/opt/matchit/lua/vim/treesitter/highlighter.lua'
no file '/usr/share/nvim/runtime/pack/dist/opt/matchit/lua/vim/treesitter/highlighter/init.lua'
no file '/usr/share/nvim/site/after/lua/vim/treesitter/highlighter.lua'
no file '/usr/share/nvim/site/after/lua/vim/treesitter/highlighter/init.lua'
no file '/usr/local/share/nvim/site/after/lua/vim/treesitter/highlighter.lua'
no file '/usr/local/share/nvim/site/after/lua/vim/treesitter/highlighter/init.lua'
no file '/usr/share/i3/nvim/site/after/lua/vim/treesitter/highlighter.lua'
no file '/usr/share/i3/nvim/site/after/lua/vim/treesitter/highlighter/init.lua'
no file '/home/simonj/.local/share/nvim/site/after/lua/vim/treesitter/highlighter.lua'
no file '/home/simonj/.local/share/nvim/site/after/lua/vim/treesitter/highlighter/init.lua'
no file '/usr/share/kubuntu-default-settings/kf5-settings/nvim/after/lua/vim/treesitter/highlighter.lua'
no file '/usr/share/kubuntu-default-settings/kf5-settings/nvim/after/lua/vim/treesitter/highlighter/init.lua'
no file '/etc/xdg/nvim/after/lua/vim/treesitter/highlighter.lua'
no file '/etc/xdg/nvim/after/lua/vim/treesitter/highlighter/init.lua'
no file '/etc/xdg/xdg-i3/nvim/after/lua/vim/treesitter/highlighter.lua'
no file '/etc/xdg/xdg-i3/nvim/after/lua/vim/treesitter/highlighter/init.lua'
no file '/home/simonj/.vim/plugged/vimtex/after/lua/vim/treesitter/highlighter.lua'
no file '/home/simonj/.vim/plugged/vimtex/after/lua/vim/treesitter/highlighter/init.lua'
no file '/home/simonj/.config/nvim/after/lua/vim/treesitter/highlighter.lua'
no file '/home/simonj/.config/nvim/after/lua/vim/treesitter/highlighter/init.lua'
no file './vim/treesitter/highlighter.lua'
no file '/usr/share/luajit-2.1.0-beta3/vim/treesitter/highlighter.lua'
no file '/usr/local/share/lua/5.1/vim/treesitter/highlighter.lua'
no file '/usr/local/share/lua/5.1/vim/treesitter/highlighter/init.lua'
no file '/usr/share/lua/5.1/vim/treesitter/highlighter.lua'
no file '/usr/share/lua/5.1/vim/treesitter/highlighter/init.lua'
no file '/home/simonj/.config/nvim/lua/vim/treesitter/highlighter.so'
no file '/home/simonj/.vim/plugged/vimtex/lua/vim/treesitter/highlighter.so'
no file '/etc/xdg/xdg-i3/nvim/lua/vim/treesitter/highlighter.so'
no file '/etc/xdg/nvim/lua/vim/treesitter/highlighter.so'
no file '/usr/share/kubuntu-default-settings/kf5-settings/nvim/lua/vim/treesitter/highlighter.so'
no file '/home/simonj/.local/share/nvim/site/lua/vim/treesitter/highlighter.so'
no file '/usr/share/i3/nvim/site/lua/vim/treesitter/highlighter.so'
no file '/usr/local/share/nvim/site/lua/vim/treesitter/highlighter.so'
no file '/usr/share/nvim/site/lua/vim/treesitter/highlighter.so'
no file '/usr/share/nvim/runtime/lua/vim/treesitter/highlighter.so'
no file '/usr/share/nvim/runtime/pack/dist/opt/matchit/lua/vim/treesitter/highlighter.so'
no file '/usr/share/nvim/site/after/lua/vim/treesitter/highlighter.so'
no file '/usr/local/share/nvim/site/after/lua/vim/treesitter/highlighter.so'
no file '/usr/share/i3/nvim/site/after/lua/vim/treesitter/highlighter.so'
no file '/home/simonj/.local/share/nvim/site/after/lua/vim/treesitter/highlighter.so'
no file '/usr/share/kubuntu-default-settings/kf5-settings/nvim/after/lua/vim/treesitter/highlighter.so'
no file '/etc/xdg/nvim/after/lua/vim/treesitter/highlighter.so'
no file '/etc/xdg/xdg-i3/nvim/after/lua/vim/treesitter/highlighter.so'
no file '/home/simonj/.vim/plugged/vimtex/after/lua/vim/treesitter/highlighter.so'
no file '/home/simonj/.config/nvim/after/lua/vim/treesitter/highlighter.so'
no file './vim/treesitter/highlighter.so'
no file '/usr/local/lib/lua/5.1/vim/treesitter/highlighter.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/vim/treesitter/highlighter.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/home/simonj/.config/nvim/lua/vim.so'
no file '/home/simonj/.vim/plugged/vimtex/lua/vim.so'
no file '/etc/xdg/xdg-i3/nvim/lua/vim.so'
no file '/etc/xdg/nvim/lua/vim.so'
no file '/usr/share/kubuntu-default-settings/kf5-settings/nvim/lua/vim.so'
no file '/home/simonj/.local/share/nvim/site/lua/vim.so'
no file '/usr/share/i3/nvim/site/lua/vim.so'
no file '/usr/local/share/nvim/site/lua/vim.so'
no file '/usr/share/nvim/site/lua/vim.so'
no file '/usr/share/nvim/runtime/lua/vim.so'
no file '/usr/share/nvim/runtime/pack/dist/opt/matchit/lua/vim.so'
no file '/usr/share/nvim/site/after/lua/vim.so'
no file '/usr/local/share/nvim/site/after/lua/vim.so'
no file '/usr/share/i3/nvim/site/after/lua/vim.so'
no file '/home/simonj/.local/share/nvim/site/after/lua/vim.so'
no file '/usr/share/kubuntu-default-settings/kf5-settings/nvim/after/lua/vim.so'
no file '/etc/xdg/nvim/after/lua/vim.so'
no file '/etc/xdg/xdg-i3/nvim/after/lua/vim.so'
no file '/home/simonj/.vim/plugged/vimtex/after/lua/vim.so'
no file '/home/simonj/.config/nvim/after/lua/vim.so'
no file './vim.so'
no file '/usr/local/lib/lua/5.1/vim.so'
no file '/usr/lib/x86_64-linux-gnu/lua/5.1/vim.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
I would say it makes sense to update. However, I also currently write in the docs that neovim 0.4.3 is supported, so I don't think it is good that it should error out like this. I'll look into if I can fix it.
Description
When opening a .tex file in neovim, I get an error message saying that
module 'vim.treesitter.highlighter'
,field package.preload['vim.treesitter.highlighter']
, and a bunch of files are missing.Sorry if this is not a vimtex problem!
Steps to reproduce
Putting this code in my
init.vim
reproduces the error message:Expected behavior
No response
Actual behavior
When opening a
.tex
file, I get the following error message:Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: