kickstart.nvim icon indicating copy to clipboard operation
kickstart.nvim copied to clipboard

nvim-treesitter

Open rpolasek-sde opened this issue 3 years ago • 2 comments

i have freshly installed lua.vim w/o changes on ubuntu 22.04 lts. when i open a cpp file i can see the error below:

                    Error detected while processing FileType Autocommands for "*":
Error executing lua callback: .../start/nvim-treesitter/lua/nvim-treesitter/highlight.lua:26: attempt to call field 'start' (a nil value)
stack traceback:
        .../start/nvim-treesitter/lua/nvim-treesitter/highlight.lua:26: in function 'attach'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:505: in function 'attach_module'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:528: in function 'reattach_module'
        ...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:131: in function <...er/start/nvim-treesitter/lua/nvim-treesitter/configs.lua:130>

rpolasek-sde avatar Jan 02 '23 06:01 rpolasek-sde

Had the same issue on ubuntu looks like the ubuntu ppa has version 0.7 so I installed the latest version from source instead and the error is gone, hope it helps

abdullah2993 avatar Jan 02 '23 09:01 abdullah2993

Had the same issue on ubuntu looks like the ubuntu ppa has version 0.7 so I installed the latest version from source instead and the error is gone, hope it helps

Thanks for your hint - did you install nvim from source or treesitter then? Which installation instructions did you follow?

krassdanke avatar Jan 09 '23 08:01 krassdanke

FWIW, I run into this, when using nvim 0.7.2 as provided by debian. The solution is indeed to update to a later version; see the releases page, pick a package/app image/source from there and proceed to install a newer version of nvim on your system.

s-marios avatar Jan 30 '23 05:01 s-marios

Yeah -- this is outdated neovim problem. Shouldn't happen on the supported versions of neovim.

tjdevries avatar Feb 17 '23 21:02 tjdevries