Skip to content

Error while opening cpp file with neotree in nyoom #156

Open
@real-mr-x

Description

@real-mr-x

when I get into a cpp file using neotree in nyoom it gives me the following error:

 Error 03:12:41 AM notify.error [Neo-tree ERROR] Error opening file: vim/_editor.lua:0: nvim_exec2()..BufReadPost Autocommands for "": Vim(append):Error executing lua callback: /usr/share/nvim/runtime/filetype.lua:24: Error executing lua: /usr/share/nvim/runtime/filetype.lua:25: nvim_exec2()..BufReadPost Autocommands for ""..FileType Autocommands for "*": Vim(append):Error executing lua callback: /usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: query: invalid structure at position 338 for language cpp
stack traceback:
[C]: in function '_ts_parse_query'
/usr/share/nvim/runtime/lua/vim/treesitter/query.lua:259: in function 'get_query'
.../pack/packer/opt/nvim-ts-rainbow2/lua/ts-rainbow/lib.lua:70: in function 'get_query'
...ck/packer/opt/nvim-ts-rainbow2/lua/ts-rainbow/module.lua:30: in function 'is_supported'
...cker/opt/nvim-treesitter/lua/nvim-treesitter/configs.lua:387: in function 'is_enabled'
...cker/opt/nvim-treesitter/lua/nvim-treesitter/configs.lua:507: in function 'attach_module'
...cker/opt/nvim-treesitter/lua/nvim-treesitter/configs.lua:532: in function 'reattach_module'
...cker/opt/nvim-treesitter/lua/nvim-treesitter/configs.lua:133: in function <...cker/opt/nvim-treesitter/lua/nvim-treesitter/configs.lua:132>
[C]: in function 'nvim_cmd'
/usr/share/nvim/runtime/filetype.lua:25: in function </usr/share/nvim/runtime/filetype.lua:24>
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:24: in function </usr/share/nvim/runtime/filetype.lua:10>
[C]: in function 'nvim_exec2'
vim/_editor.lua: in function <vim/_editor.lua:0>
[C]: in function 'pcall'
...ack/packer/opt/neo-tree.nvim/lua/neo-tree/utils/init.lua:697: in function 'open_file'
...t/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:700: in function 'open'
...t/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:731: in function 'open_with_cmd'
...t/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:740: in function 'open'
...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:184: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:183>
stack traceback:
[C]: in function 'nvim_cmd'
/usr/share/nvim/runtime/filetype.lua:25: in function </usr/share/nvim/runtime/filetype.lua:24>
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:24: in function </usr/share/nvim/runtime/filetype.lua:10>
[C]: in function 'nvim_exec2'
vim/_editor.lua: in function <vim/_editor.lua:0>
[C]: in function 'pcall'
...ack/packer/opt/neo-tree.nvim/lua/neo-tree/utils/init.lua:697: in function 'open_file'
...t/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:700: in function 'open'
...t/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:731: in function 'open_with_cmd'
...t/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:740: in function 'open'
...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:184: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:183>
stack traceback:
[C]: in function 'nvim_buf_call'
/usr/share/nvim/runtime/filetype.lua:24: in function </usr/share/nvim/runtime/filetype.lua:10>
[C]: in function 'nvim_exec2'
vim/_editor.lua: in function <vim/_editor.lua:0>
[C]: in function 'pcall'
...ack/packer/opt/neo-tree.nvim/lua/neo-tree/utils/init.lua:697: in function 'open_file'
...t/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:700: in function 'open'
...t/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:731: in function 'open_with_cmd'
...t/neo-tree.nvim/lua/neo-tree/sources/common/commands.lua:740: in function 'open'
...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:184: in function <...o-tree.nvim/lua/neo-tree/sources/filesystem/commands.lua:183>

informations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions