mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
Add query error: invalid node type at position to the troubleshooting section
We have had many of these recently...
This commit is contained in:
parent
190bcc8d56
commit
b784ca7fca
2 changed files with 13 additions and 1 deletions
3
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
3
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
|
|
@ -14,6 +14,8 @@ body:
|
||||||
required: true
|
required: true
|
||||||
- label: I have run `:TSUpdate`
|
- label: I have run `:TSUpdate`
|
||||||
required: true
|
required: true
|
||||||
|
- label: I have read the [troubleshooting section](https://github.com/nvim-treesitter/nvim-treesitter#troubleshooting)
|
||||||
|
required: true
|
||||||
|
|
||||||
- type: textarea
|
- type: textarea
|
||||||
attributes:
|
attributes:
|
||||||
|
|
@ -57,4 +59,3 @@ body:
|
||||||
attributes:
|
attributes:
|
||||||
label: Additional context
|
label: Additional context
|
||||||
description: Add any context about the problem here.
|
description: Add any context about the problem here.
|
||||||
|
|
||||||
|
|
|
||||||
11
README.md
11
README.md
|
|
@ -470,6 +470,17 @@ Try updating the parser that you suspect has changed (`:TSUpdate {language}`) or
|
||||||
If the error persists after updating all parsers,
|
If the error persists after updating all parsers,
|
||||||
please [open an issue](https://github.com/nvim-treesitter/nvim-treesitter/issues/new/choose).
|
please [open an issue](https://github.com/nvim-treesitter/nvim-treesitter/issues/new/choose).
|
||||||
|
|
||||||
|
#### I get `query error: invalid node type at position`
|
||||||
|
|
||||||
|
This could be due a query file outside this plugin using outdated nodes,
|
||||||
|
or due to an outdated parser.
|
||||||
|
|
||||||
|
- Make sure you have the parsers up to date with `:TSUpdate`
|
||||||
|
- Make sure you don't have more than one `parser` runtime directory.
|
||||||
|
You can execute this command `:echo nvim_get_runtime_file('parser', v:true)` to find all runtime directories.
|
||||||
|
If you get more than one path, remove the ones that are outside this plugin (`nvim-treesitter` directory),
|
||||||
|
so the correct version of the parser is used.
|
||||||
|
|
||||||
#### I experience weird highlighting issues similar to [#78](https://github.com/nvim-treesitter/nvim-treesitter/issues/78)
|
#### I experience weird highlighting issues similar to [#78](https://github.com/nvim-treesitter/nvim-treesitter/issues/78)
|
||||||
|
|
||||||
This is a well known issue, which arises when the tree and the buffer have gotten out of sync.
|
This is a well known issue, which arises when the tree and the buffer have gotten out of sync.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue