TravonteD / tree-sitter-fennel

Treesitter grammar for the Fennel programming language
MIT License
42 stars 9 forks source link

fucntion values in tables #10

Closed p00f closed 4 years ago

p00f commented 4 years ago

File : https://github.com/p00f/dotfiles/blob/main/nvim/.config/nvim/fnl/dotfiles/module/glsetup.fnl

When the value is an inline function, there is an error: Screenshot from 2020-10-31 12-59-35

When the value is a predfined function, this happens Screenshot from 2020-10-31 13-33-45

TravonteD commented 4 years ago

Hi @p00f, try it out with the pr linked to this ticket and let me know if the error persists. Thanks for reporting!

p00f commented 4 years ago

Hey I get this when I try to open a fennel file now

Error detected while processing FileType Autocommands for "*":                                                                                                                      
E5108: Error executing lua /usr/share/nvim/runtime/lua/vim/treesitter/language.lua:24: ABI version mismatch : expected 9, found 12

I'm on master of both neovim and nvim-treesitter and the parser is built from the PR branch

p00f commented 4 years ago

tree-sitter version - 0.17.2 https://www.archlinux.org/packages/community/x86_64/tree-sitter/

TravonteD commented 4 years ago

If you check the package-lock.json you're using an incompatible version of the cli tool. This parser is built using 0.16.9. Please npm install and generate using npx tree-sitter generate

p00f commented 4 years ago

This seems fixed now, thanks!!