bonede / tree-sitter-ng

Next generation Tree Sitter Java binding.
MIT License
61 stars 8 forks source link

Seg fault when setting the language to cpp #8

Closed chenzimin closed 5 months ago

chenzimin commented 6 months ago

Pretty much what the title says. The code is just doing:

parser = new TSParser();
parser.setLanguage(new TreeSitterCpp());

java version: java version "21.0.2" 2024-01-16 LTS uname -a: UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

bonede commented 6 months ago

Hi, this issue is caused by a null dereference of this and this . The good news is that this was fixed in the master branch of tree sitter. Please wait for the next release of tree sitter.

bonede commented 5 months ago

fixed in 0.22.5