Error new nvim-treesitter
I get this after upgrading nvim-treesitter now
Error 08:20:44 notify.error lazy.nvim Failed to source `/Users/mikavilpas/.local/share/nvim/lazy/iswap.nvim/plugin/iswap.vim`
vim/_editor.lua:0: nvim_exec2()[1]../Users/mikavilpas/.local/share/nvim/lazy/iswap.nvim/plugin/iswap.vim, line 1: Vim(lua):E5108: Lua: ...kavilpas/.local/share/nvim/lazy/iswap.nvim/lua/iswap.lua:1: module 'nvim-treesitter.query' not found:
no field package.preload['nvim-treesitter.query']
cache_loader: module 'nvim-treesitter.query' not found
cache_loader_lib: module 'nvim-treesitter.query' not found
no file './nvim-treesitter/query.lua'
no file '/Users/runner/work/neovim/neovim/.deps/usr/share/luajit-2.1/nvim-treesitter/query.lua'
no file '/usr/local/share/lua/5.1/nvim-treesitter/query.lua'
no file '/usr/local/share/lua/5.1/nvim-treesitter/query/init.lua'
no file '/Users/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/nvim-treesitter/query.lua'
no file '/Users/runner/work/neovim/neovim/.deps/usr/share/lua/5.1/nvim-treesitter/query/init.lua'
no file '/Users/mikavilpas/.local/share/nvim/lazy-rocks/telescope.nvim/share/lua/5.1/nvim-treesitter/query.lua'
no file '/Users/mikavilpas/.local/share/nvim/lazy-rocks/telescope.nvim/share/lua/5.1/nvim-treesitter/query/init.lua'
no file './nvim-treesitter/query.so'
no file '/usr/local/lib/lua/5.1/nvim-treesitter/query.so'
no file '/Users/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/nvim-treesitter/query.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/Users/mikavilpas/.local/share/nvim/lazy-rocks/telescope.nvim/lib/lua/5.1/nvim-treesitter/query.so'
no file '/Users/mikavilpas/.local/share/nvim/lazy-rocks/telescope.nvim/lib64/lua/5.1/nvim-treesitter/query.so'
no file './nvim-treesitter.so'
no file '/usr/local/lib/lua/5.1/nvim-treesitter.so'
no file '/Users/runner/work/neovim/neovim/.deps/usr/lib/lua/5.1/nvim-treesitter.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
no file '/Users/mikavilpas/.local/share/nvim/lazy-rocks/telescope.nvim/lib/lua/5.1/nvim-treesitter.so'
no file '/Users/mikavilpas/.local/share/nvim/lazy-rocks/telescope.nvim/lib64/lua/5.1/nvim-treesitter.so'
stack traceback:
[C]: in function 'require'
...kavilpas/.local/share/nvim/lazy/iswap.nvim/lua/iswap.lua:1: in main chunk
[C]: in function 'require'
[string ":lua"]:1: in main chunk
[C]: in function 'nvim_exec2'
vim/_editor.lua: in function 'cmd'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:510: in function <...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:509>
[C]: in function 'xpcall'
.../.local/share/nvim/lazy/lazy.nvim/lua/lazy/core/util.lua:135: in function 'try'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:509: in function 'source'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:457: in function 'source_runtime'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:425: in function 'packadd'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:359: in function '_load'
...local/share/nvim/lazy/lazy.nvim/lua/lazy/core/loader.lua:197: in function 'load'
...share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:131: in function <...share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/keys.lua:121>
# stacktrace:
- vim/_editor.lua:0 _in_ **cmd**
My configuration: https://github.com/mikavilpas/dotfiles/blob/303d0834f7998ae60988f9086a144e8f84c010d3/.config/nvim/lua/plugins/iswap.lua?plain=1#L4-L72
Thank you for reporting this, I will look into this asap
what version of nvim are you on? and what version of nvim-treesitter?
Sorry, I should have specified these.
Neovim is on nightly:
NVIM v0.12.0-dev-1262+gb756a6165a
Build type: RelWithDebInfo
LuaJIT 2.1.1753364724
Run "nvim -V1 -v" for more info
nvim-treesitter:
● nvim-treesitter 8.49ms VeryLazy
dir /Users/mikavilpas/.local/share/nvim/lazy/nvim-treesitter
url https://github.com/nvim-treesitter/nvim-treesitter
branch main
commit 20fc6b1
readme README.md
help |nvim-treesitter.txt|
event LazyFile VeryLazy
cmd TSUpdate TSInstall TSLog TSUninstall
Seems like there is restructuring of modules in main for nvim-treesitter which have not yet been released yet. I will look into what similar plugins have done but I am wary that if I adjust it for pre-release nvim-treesitter it will break users who currently use nvim-treesitter v10. (e.g., might need pcall and friends)
I have same error, I will subscribe to see if this gets fixed, and use another sibling-swap until! 👍🏼
Also have same error under treesitter main branch.