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 with Go #540

Open
MarcusXavierr opened this issue Jan 11, 2025 · 0 comments
Open

Treesitter error with Go #540

MarcusXavierr opened this issue Jan 11, 2025 · 0 comments

Comments

@MarcusXavierr
Copy link

I have found these erros on go.nvim treesitter

The following errors have been detected: ~
- ERROR go(locals): /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 2038 for language go
  go(locals) is concatenated from the following files:
  |    [OK]:"/home/marcus/.local/share/nvim/plugged/nvim-treesitter/queries/go/locals.scm"
  | [ERROR]:"/home/marcus/.local/share/nvim/plugged/go.nvim/queries/go/locals.scm", failed to load: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 110 for language go
- ERROR go(injections): /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 2269 for language go
  go(injections) is concatenated from the following files:
  |    [OK]:"/home/marcus/.local/share/nvim/plugged/nvim-treesitter/queries/go/injections.scm"
  | [ERROR]:"/home/marcus/.local/share/nvim/plugged/go.nvim/queries/go/injections.scm", failed to load: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid node type at position 1093 for language go

Also, I could not install the gotmpl treesitter

- treesitter parser go found
- treesitter parser gowork found
- treesitter parser gomod found
- treesitter parser gosum found
- treesitter parser sql found
- WARNING treesitter parser gotmpl is optional but it is not found, please Run `:TSInstallSync gotmpl` to install or some features may not work
- treesitter parser json found
- treesitter parser comment found
- WARNING Some binaries are not installed, please check if your $HOME/go/bin or $GOBIN $exists and in your $PATH

I'm using the lastest version. But the treesitter had (fewer) errors even in older versions. But the errors would only popup when working with nvim-dap

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