Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./script/compile is not producing binaries although no failures occur #186

Open
jleonard-r7 opened this issue Jun 14, 2023 · 6 comments
Open

Comments

@jleonard-r7
Copy link

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[tree-sitter-langs] Running (tar -zcvf /Users/jleonard/Documents/SourceCode/rapid7.nosync/elisp-tree-sitter/langs/tree-sitter-grammars-macos-0.12.18.tar.gz BUNDLE-VERSION) in /Users/jleonard/Documents/SourceCode/rapid7.nosync/elisp-tree-sitter/langs/bin/
a BUNDLE-VERSION
jleonard@LAX-MBP-13133 langs % 
jleonard@LAX-MBP-13133 langs % 
jleonard@LAX-MBP-13133 langs % 
jleonard@LAX-MBP-13133 langs % 
jleonard@LAX-MBP-13133 langs % 
jleonard@LAX-MBP-13133 langs % 
jleonard@LAX-MBP-13133 langs % 
jleonard@LAX-MBP-13133 langs % ls
total 192
drwxr-xr-x  21 jleonard  staff    672 Jun 14 13:17 .
drwxr-xr-x  19 jleonard  staff    608 Jun 14 11:32 ..
drwxr-xr-x   3 jleonard  staff     96 Jun 14 13:13 .cask
-rw-r--r--   1 jleonard  staff     30 Jun 14 11:34 .git
-rw-r--r--   1 jleonard  staff     32 Jun 14 11:34 .gitattributes
drwxr-xr-x   4 jleonard  staff    128 Jun 14 11:34 .github
-rw-r--r--   1 jleonard  staff      5 Jun 14 11:34 .gitignore
-rw-r--r--   1 jleonard  staff   6945 Jun 14 12:05 .gitmodules
-rw-r--r--   1 jleonard  staff   4990 Jun 14 12:05 CHANGELOG.md
-rw-r--r--   1 jleonard  staff    276 Jun 14 11:34 Cask
-rw-r--r--   1 jleonard  staff   1076 Jun 14 11:34 LICENSE
-rw-r--r--   1 jleonard  staff   4791 Jun 14 12:05 README.org
drwxr-xr-x   4 jleonard  staff    128 Jun 14 13:17 bin
drwxr-xr-x  26 jleonard  staff    832 Jun 14 12:05 queries
drwxr-xr-x  41 jleonard  staff   1312 Jun 14 12:32 repos
drwxr-xr-x  11 jleonard  staff    352 Jun 14 12:05 script
-rw-r--r--   1 jleonard  staff    133 Jun 14 12:01 tree-sitter-grammars-macos-0.11.3.tar.gz
-rw-r--r--   1 jleonard  staff    134 Jun 14 13:17 tree-sitter-grammars-macos-0.12.18.tar.gz
-rw-r--r--   1 jleonard  staff  26255 Jun 14 12:05 tree-sitter-langs-build.el
-rw-r--r--   1 jleonard  staff   1521 Jun 14 11:34 tree-sitter-langs-tests.el
-rw-r--r--   1 jleonard  staff   8381 Jun 14 12:05 tree-sitter-langs.el
jleonard@LAX-MBP-13133 langs % cd bin 
jleonard@LAX-MBP-13133 bin % ls
total 8
drwxr-xr-x   4 jleonard  staff  128 Jun 14 13:17 .
drwxr-xr-x  21 jleonard  staff  672 Jun 14 13:17 ..
-rw-r--r--   1 jleonard  staff    0 Jun 14 11:34 .keep
-rw-r--r--   1 jleonard  staff    7 Jun 14 13:17 BUNDLE-VERSION
jleonard@LAX-MBP-13133 bin % 

What am I doing wrong?

@meain
Copy link
Member

meain commented Jun 15, 2023

The script unfortunately depends on a specific behaviour of a much older version of tree-sitter-cli

run: npm install -g tree-sitter-cli@0.19.3

@jleonard-r7
Copy link
Author

npm only has x64 binaries and cargo doesn't have that version. What's a guy to do?

see: https://crates.io/crates/tree-sitter-cli/versions

@jleonard-r7
Copy link
Author

Any suggestions on this? Obviously a blocking issue for me ...

@jcs090218
Copy link
Member

I'm not able to reproduce this on
my machine (well, I'm using Windows). What did you do to produce binaries? Just script/compile?

@jleonard-r7
Copy link
Author

I'm on an M1 Mac. Thus the x64 binaries will not work.

Yes, script/compile all

@meain
Copy link
Member

meain commented Jun 26, 2023

Unfortunately you can't build with the newer version of tree-sitter as they are not ABI compatible.
Would you be able to bulid from source of the older version? (https://github.com/tree-sitter/tree-sitter/tree/v0.19.3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants