tree-sitter-java icon indicating copy to clipboard operation
tree-sitter-java copied to clipboard

tree_sitter_java-0.23.5.tar.gz is missing src/tree_sitter/parser.h

Open tiran opened this issue 2 months ago • 2 comments

The sdist tar ball tree_sitter_java-0.23.5.tar.gz is broken and missing src/tree_sitter directory. The missing files prevent us fron rebuilding tree-sitter-java from sources. I noticed that the 0.23 releases of other tree-sitter packages had the same problem. The issue was fixed in 0.24 releases. tree-sitter-java is still on 0.23 with the sdist issue.

$ pip wheel -v --no-binary tree-sitter-java tree-sitter-java |more
Collecting tree-sitter-java
  File was already downloaded /work/tree_sitter_java-0.23.5.tar.gz
  Installing build dependencies: started
..,
  creating build/temp.linux-x86_64-cpython-312/src
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPy_LIMITED_API=0x03090000 -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc -I/opt/app-root/include -I/usr/include/python3.12 -c bindings/python/tree_sitter_java/binding.c -o build/temp.linux-x86_64-cpython-312/bindings/python/tree_sitter_java/binding.o -std=c11 -fvisibility=hidden
  gcc -fno-strict-overflow -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPy_LIMITED_API=0x03090000 -DPY_SSIZE_T_CLEAN -DTREE_SITTER_HIDE_SYMBOLS -Isrc -I/opt/app-root/include -I/usr/include/python3.12 -c src/parser.c -o build/temp.linux-x86_64-cpython-312/src/parser.o -std=c11 -fvisibility=hidden
  src/parser.c:1:10: fatal error: tree_sitter/parser.h: No such file or directory
      1 | #include "tree_sitter/parser.h"
        |          ^~~~~~~~~~~~~~~~~~~~~~
  compilation terminated.

tiran avatar Nov 17 '25 13:11 tiran

This repository is not very actively maintained. Have you tried tree-sitter-java-orchard instead? The wheel compilation seems to work for that package.

wetneb avatar Nov 17 '25 15:11 wetneb

@wetneb Thanks for the pointer! Let me talk to the Docling team and check if they can move to that fork.

tiran avatar Nov 17 '25 15:11 tiran