ikatyang / tree-sitter-yaml

YAML grammar for tree-sitter
https://ikatyang.github.io/tree-sitter-yaml/
MIT License
94 stars 38 forks source link

Incompatibility with the newest tree-sitter #18

Closed char0n closed 3 years ago

char0n commented 3 years ago

Latest 3.0.1 version seems to be incompatible with latest tree-sitter toolchain. When used it errors with Incompatible language version. Compatible range: 13 - 13. Got: 11. More context about what changed in tree-sitter can be found here: https://github.com/tree-sitter/tree-sitter/pull/943. Probably we just need to regenerate the parser.c and release new package.

char0n commented 3 years ago

Workaround is to to run the following command inside ./node_modules/tree-sitter-yaml directory:

$ NODE_OPTIONS='-r core-js/stable @babel/register' tree-sitter generate ./grammar.js && node-gyp build
ikatyang commented 3 years ago

I'll upgrade to the newest tree-sitter this weekend.

char0n commented 3 years ago

Thanks!