Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query: invalid node type at position 3318 #220

Closed
captainko opened this issue Aug 29, 2022 · 3 comments
Closed

Query: invalid node type at position 3318 #220

captainko opened this issue Aug 29, 2022 · 3 comments
Labels

Comments

@captainko
Copy link

Typescript often throws the following error:

Error executing vim.schedule lua callback:

Error detected while processing FileType Autocommands for "*":
Error executing lua callback: /usr/local/share/nvim/runtime/lua/vim/treesitter/query.lua:174: query: invalid node type at position 3318
stack traceback:
	[C]: in function '_ts_parse_query'
	/usr/local/share/nvim/runtime/lua/vim/treesitter/query.lua:174: in function 'get_query'
	...l/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:36: in function 'new'
	/usr/local/share/nvim/runtime/lua/vim/treesitter.lua:46: in function '_create_parser'
	/usr/local/share/nvim/runtime/lua/vim/treesitter.lua:98: in function 'get_parser'
	.../start/nvim-treesitter/lua/nvim-treesitter/highlight.lua:155: in function 'start'
	.../start/nvim-treesitter/lua/nvim-treesitter/highlight.lua:161: in function 'attach'
 	...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:477: in function 'attach_module'
	...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:500: in function 'reattach_module'
 	...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:108: in function <...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:107>

Neovim version:

NVIM v0.8.0-dev-973-g253f0ffd8
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by cko@mark

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

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

Run :checkhealth for more info
@captainko captainko added the bug label Aug 29, 2022
@captainko captainko reopened this Aug 29, 2022
@jtye-dsldhomes
Copy link

jtye-dsldhomes commented Aug 29, 2022

I've been receiving this error for 2 days. I tried with a known working version of nvim nightly:

NVIM v0.8.0-dev-805-g512e0441f

@hendrikvanantwerpen
Copy link
Contributor

This looks like a problem in either neovim or nvim-treesitter. The error says tree-sitter is given a query that doesn't match the grammar (because of an invalid node name). It looks like the grammar was updated but not the corresponding queries. I suggest filing a bug report in one of those projects.

@hendrikvanantwerpen hendrikvanantwerpen closed this as not planned Won't fix, can't repro, duplicate, stale Sep 1, 2022
@catgoose
Copy link

catgoose commented Sep 1, 2022

This seems to be a problem with tree-sitter-angular:

nvim-treesitter/nvim-treesitter-angular#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants