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

FileType Autocommands: attempt to call field 'start' (a nil value)

Open MarcinOrlowski opened this issue 2 years ago • 6 comments

I freshly installed neovim and followed this tutorial. Once I created local init.lua with the content from this repo, restarted the nvim and completed the installation. Now, I am facing this error while opening init.lua file again:

Error detected while processing FileType Autocommands for "*":
Error executing lua callback: .../start/nvim-treesitter/lua/nvim-treesitter/highlight.lua:19: attempt to call field 'start' (a nil value)
stack traceback:
.../start/nvim-treesitter/lua/nvim-treesitter/highlight.lua:19: 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-treesitte
r/configs.lua:130>

Environment

  • Using Kubuntu 22.10
  • NVIM v0.7.2
  • Build type: Release
  • LuaJIT 2.1.0-beta3

MarcinOrlowski avatar Jan 11 '23 19:01 MarcinOrlowski

Update: when I uninstalled official neovim package and installed from release *.deb, the issues seem to be gone, yet that's v0.8.2 while older version is causing a problem. Maybe it needs check for nvim version?

MarcinOrlowski avatar Jan 11 '23 19:01 MarcinOrlowski

Encountered the same problem with v0.7.2 (Which is the latest stable version you get by using the PPA for Ubuntu linked on their installation page). As this config states it will only support latest stable & nightly I guess it's totally fine, but very easy to miss when you assume you're on the latest version. Not until I saw this post I realized v7 is not.

jherven avatar Jan 18 '23 08:01 jherven

@jherven from README.md:

Kickstart.nvim targets only the latest 'stable' and latest 'nightly' of Neovim. If you are experiencing issues, please make sure you have the latest versions.

For now the easiest way to update NeoVim on ubuntu is to go for unstable version - this will install 0.9.0-dev which right now works perfectly fine for me in production environment:

sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt update

cprn avatar Jan 21 '23 06:01 cprn

@jherven from README.md:

Kickstart.nvim targets only the latest 'stable' and latest 'nightly' of Neovim. If you are experiencing issues, please make sure you have the latest versions.

Sorry if I explained myself badly. Yes that's exaclty what I meant I used 0.7 which as you say is not supported by the config so was my own fault.

For now the easiest way to update NeoVim on ubuntu is to go for unstable version - this will install 0.9.0-dev which right now works perfectly fine for me in production environment:

sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt update

Tried the nightly first but got some other problems with some LSP. Went for the snap package instead installed stable 0.8 and all was fine after that.

jherven avatar Jan 21 '23 10:01 jherven

IDK what to tell you. It's by design. If you've figured it out then what else can be done in this issue? Probably could be closed by the author.

@MarcinOrlowski

Maybe it needs check for nvim version?

I don't think there's much sense. Stable PPA doesn't include v0.8.2 because the tag wasn't signed by Justin. I think official repo didn't update yet because of the same reason (they might mend it somehow in the next few weeks, who knows). For that exact reason Neovim install instructions mention both stable and unstable PPA. The check you're talking about could be made downstream in nvim-treesitter or better yet upstream in nvim itself.

cprn avatar Jan 21 '23 11:01 cprn

IDK what to tell you. It's by design. If you've figured it out then what else can be done in this issue? Probably could be closed by the author.

I neither have any issues nor complains. Finding this issue helped me notice my mistake so I just wanted to add that some info to other people that did the same.

jherven avatar Jan 21 '23 11:01 jherven

This is just the same as mine. It seems that I've created duplicate issue #163 - closing it now to proceed here.

B1Z0N avatar Feb 05 '23 17:02 B1Z0N

Looks like the version was too old -- I'll close this. Thanks everyone

tjdevries avatar Feb 15 '23 21:02 tjdevries