Closed mrcjkb closed 3 months ago
C++ scanners are not supported any longer, because they cannot be compiled to WASM. (Which is why nvim-treesitter has dropped the norg parser in 1.0.)
(Support was not explicitly removed, but changes are no longer guaranteed to work with C++ scanners. You can try bisecting, but I strongly suspect that your issues come from https://github.com/tree-sitter/tree-sitter/commit/a2d2da314d7ca9151abb340cf988eccdd694b64a so are actually a config issue.)
Thanks, that's all the info I need :smile:
Problem
Hey :wave:
I'm trying to run
tree-sitter build
(with the Rust CLI) on tree-sitter-norg, which has a C++ scanner.With tree-sitter version 0.22.5, it works fine. With version 0.22.6, I get lots of errors like:
and
In both cases, I see a warning,
Has support for C++ scanners been removed already?
Steps to reproduce
git clone --depth=1 git@github.com:nvim-neorg/tree-sitter-norg.git cd tree-sitter-norg tree-sitter build
Expected behavior
The parser builds
Tree-sitter version (tree-sitter --version)
tree-sitter 0.22.6
Operating system/version
NixOS 24.11.20240725.5ad6a14 (nixos-unstable)