Nvim-treesitter: module 'vim.treesitter.query' not found

Created on 18 Aug 2020  路  1Comment  路  Source: nvim-treesitter/nvim-treesitter

Describe the bug
module 'vim.treesitter.query' not found:

To Reproduce
Steps to reproduce the behavior:

  1. open nvim
  2. See error
Error detected while processing /home/user/.local/share/nvim/plugged/nvim-treesitter/plugin/nvim-treesitter.vim:
line   23:
E5108: Error executing lua ...nvim-treesitter/lua/nvim-treesitter/query_predicates.lua:1: module 'vim.treesitter.query' not found:
        no field package.preload['vim.treesitter.query']
        no file '/home/user/.config/nvim/lua/vim/treesitter/query.lua'
        no file '/home/user/.config/nvim/lua/vim/treesitter/query/init.lua'

Expected behavior
There should be no error and Neovim should be opened.

Output of :checkhealth nvim_treesitter


only blank page opened


Output of nvim --version

NVIM v0.5.0-627-g94b7ff730
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-5 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/travis/build/neovim/bot-ci/build/neovim/build/config -I/home/travis/build/neovim/bot-ci/build/neovim/src -I/home/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/home/travis/build/neovim/bot-ci/build/neovim/build/src/nvim/auto -I/home/travis/build/neovim/bot-ci/build/neovim/build/include
Compiled by travis@travis-job-9b5ea932-4f57-417a-8d5e-0a80f7a2a426

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/share/nvim"

Additional context
OS: Manjaro Linux x86_64
Kernel: 5.7.14-1-MANJARO
Lua: lua 5.4 (default), 5.2.4, 5.1.5
Plugin manager: vim-plug

call plug#begin('~/.local/share/nvim/plugged')
    if has("nvim-0.5.0")
        Plug 'nvim-treesitter/nvim-treesitter'
    endif
    " other plugins
call plug#end()

```

bug

Most helpful comment

update to version NVIM v0.5.0-634-g161cdba1e solved the issue.

>All comments

update to version NVIM v0.5.0-634-g161cdba1e solved the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

heapslip picture heapslip  路  5Comments

pierpo picture pierpo  路  4Comments

xaljer picture xaljer  路  4Comments

steelsojka picture steelsojka  路  4Comments

kyazdani42 picture kyazdani42  路  3Comments