Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

[Bug]: Error when opening javascript file #57

Closed
mikehaertl opened this issue Jul 20, 2023 · 3 comments
Closed

[Bug]: Error when opening javascript file #57

mikehaertl opened this issue Jul 20, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mikehaertl
Copy link

Neovim version

0.9.1

Language affected

Javascript

Query

No response

Strategy

No response

Description

When I try to edit a js file (even a new one) like `nvim new.js` I get this error:


Fehler beim Ausführen von "BufReadPost Autokommandos für "*"":
Error executing lua callback: /usr/local/share/nvim/runtime/filetype.lua:21: Error executing lua: /usr/local/share/nvim/runtime/filetype.lua:22: BufReadPost Autokommandos für "*"..FileType Autokommandos für "*":
 Vim(append):Error executing lua callback: /usr/local/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid structure at position 478 for language javascript
stack traceback:
        [C]: in function '_ts_parse_query'
        /usr/local/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get_query'
        ...im/plugged/nvim-treesitter/lua/nvim-treesitter/query.lua:108: in function 'get_query'
        ...local/share/nvim/plugged/nvim-ts-rainbow/lua/rainbow.lua:8: in function 'is_supported'
        .../plugged/nvim-treesitter/lua/nvim-treesitter/configs.lua:387: in function 'is_enabled'
        .../plugged/nvim-treesitter/lua/nvim-treesitter/configs.lua:507: in function 'attach_module'
        .../plugged/nvim-treesitter/lua/nvim-treesitter/configs.lua:532: in function 'reattach_module'
        .../plugged/nvim-treesitter/lua/nvim-treesitter/configs.lua:133: in function <.../plugged/nvim-treesitter/lua/nvim-treesitter/configs.lua:132>
        [C]: in function 'nvim_cmd'
        /usr/local/share/nvim/runtime/filetype.lua:22: in function </usr/local/share/nvim/runtime/filetype.lua:21>
        [C]: in function 'nvim_buf_call'
        /usr/local/share/nvim/runtime/filetype.lua:21: in function </usr/local/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_cmd'
        /usr/local/share/nvim/runtime/filetype.lua:22: in function </usr/local/share/nvim/runtime/filetype.lua:21>
        [C]: in function 'nvim_buf_call'
        /usr/local/share/nvim/runtime/filetype.lua:21: in function </usr/local/share/nvim/runtime/filetype.lua:10>
stack traceback:
        [C]: in function 'nvim_buf_call'
        /usr/local/share/nvim/runtime/filetype.lua:21: in function </usr/local/share/nvim/runtime/filetype.lua:10>
@mikehaertl mikehaertl added the bug Something isn't working label Jul 20, 2023
@ribru17
Copy link

ribru17 commented Jul 21, 2023

Happens to me when opening .tsx files

@HiPhish
Copy link
Owner

HiPhish commented Jul 21, 2023

This plugin is deprecated, I won't maintain it further. Please switch to rainbow-delimiters.nvim and if the issue persists there file an issue over there.

@mikehaertl
Copy link
Author

@HiPhish Thanks, I migrated to your new plugin and it works like a charm.

Shame on me, as I wasn't even reporting at the correct plugin, as I was using https://github.com/mrjones2014/nvim-ts-rainbow. Not sure how I ended up here, probably a sloppy google search.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants