Describe the bug
I installed Idea plugin that uses free-sitter and found it doesn't work because of
Caused by: java.lang.RuntimeException: Does not support OS: freebsd
at org.treesitter.utils.NativeUtils.getFullLibName(NativeUtils.java:28)
at org.treesitter.utils.NativeUtils.loadLib(NativeUtils.java:111)
at org.treesitter.TreeSitterKotlin.<clinit>(TreeSitterKotlin.java:9)
We have tree-sitter in the port system and binaries are installed in /usr/local/lib. Can you provide limited support to unsupported systems? No need to package .so file, but support to set custom library.
The code bails out here:
|
throw new RuntimeException(String.format("Does not support OS: %s", osName)); |
Expected behavior
If pre-packaged binary absent or can't be determined at all, check for user provided library name and path.
OS and Java version
- FreeBSD 14.3 x64
- OpenJDK21
Probably, Linux users with exotic archs will benefit as well, because current code fails the same way if arch is not in the list.
Describe the bug
I installed Idea plugin that uses free-sitter and found it doesn't work because of
We have tree-sitter in the port system and binaries are installed in /usr/local/lib. Can you provide limited support to unsupported systems? No need to package .so file, but support to set custom library.
The code bails out here:
tree-sitter-ng/tree-sitter/src/main/java/org/treesitter/utils/NativeUtils.java
Line 28 in 7eb9559
Expected behavior
If pre-packaged binary absent or can't be determined at all, check for user provided library name and path.
OS and Java version
Probably, Linux users with exotic archs will benefit as well, because current code fails the same way if arch is not in the list.