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

Treesitter error when navigating in http file #80

Closed
piotr-serafin-red opened this issue Nov 5, 2021 · 1 comment
Closed

Treesitter error when navigating in http file #80

piotr-serafin-red opened this issue Nov 5, 2021 · 1 comment

Comments

@piotr-serafin-red
Copy link

Describe the bug
Following error is shown when moving in http file

image

To Reproduce
Steps to reproduce the behaviour:

  1. Create test.http file.
  2. Add GET https://reqres.in/api/users?page=5 content to the file.
  3. Move cursor on above line.
  4. See error.

Expected behaviour
No error when navigating and executing requests.

Version information

  • OS: mac
  • Neovim
NVIM v0.5.1
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -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/tmp/neovim-20211103-3501-1gz0ofb/neovim-0.5.1/build/config -I/tmp/neovim-20211103-3501-1gz0ofb/neovim-0.5.1/src -I/usr/local/include -I/tmp/neovim-20211103-3501-1gz0ofb/neovim-0.5.1/deps-build/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20211103-3501-1gz0ofb/neovim-0.5.1/build/src/nvim/auto -I/tmp/neovim-20211103-3501-1gz0ofb/neovim-0.5.1/build/include
Compiled by brew@BigSur

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

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/local/Cellar/neovim/0.5.1_1/share/nvim"
  • Treesitter
health#nvim_treesitter#check
========================================================================
## Installation
  - OK: `tree-sitter` found  0.20.0 (parser generator, only needed for :TSInstallFromGrammar)
  - OK: `node` found v17.0.1 (only needed for :TSInstallFromGrammar)
  - OK: `git` executable found.
  - OK: `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl" }
  - OK: Neovim was compiled with tree-sitter runtime ABI version 13 (required >=13). Parsers must be compatible with runtime ABI.

## Parser/Features H L F I J
  - javascript     ‚úì ‚úì ‚úì ‚úì ‚úì 
  - typescript     ‚úì ‚úì ‚úì ‚úì ‚úì 
  - c              ‚úì ‚úì ‚úì ‚úì ‚úì 
  - http           x . . . . 
  - bash           ‚úì ‚úì ‚úì . ‚úì 
  - dockerfile     ‚úì . . . ‚úì 
  - vim            ‚úì ‚úì . . ‚úì 
  - nix            ‚úì ‚úì ‚úì . ‚úì 
  - rust           ‚úì ‚úì ‚úì ‚úì ‚úì 
  - yaml           ‚úì ‚úì ‚úì ‚úì ‚úì 
  - python         ‚úì ‚úì ‚úì ‚úì ‚úì 
  - cmake          ‚úì . ‚úì . . 
  - css            ‚úì . ‚úì ‚úì ‚úì 
  - html           ‚úì ‚úì ‚úì ‚úì ‚úì 
  - lua            ‚úì ‚úì ‚úì ‚úì ‚úì 
  - cpp            ‚úì ‚úì ‚úì ‚úì ‚úì 
  - json           ‚úì ‚úì ‚úì ‚úì . 

 Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
         +) multiple parsers found, only one will be used
         x) errors found in the query, try to run :TSUpdate {lang}

The following errors have been detected:
  - ERROR: http(highlights): .../0.5.1_1/share/nvim/runtime/lua/vim/treesitter/query.lua:161: query: invalid node type at position 1

Additional context
Both http,json parsers installed

@piotr-serafin-red
Copy link
Author

Tried to reinstall again all the parsers. It is working now so closing this one.

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

No branches or pull requests

1 participant