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

Issues compiling locally on MacOS #78

Closed
ethan-leba opened this issue Feb 15, 2022 · 4 comments
Closed

Issues compiling locally on MacOS #78

ethan-leba opened this issue Feb 15, 2022 · 4 comments

Comments

@ethan-leba
Copy link

I’ve been looking into the TS langs codebase to see how we can allow for
local compilation of abritrary repos (as opposed to limiting ourselves
to the submodules). However, I appear to be unable to compile languages
locally via script/compile, it seems to run generate/test and then
exit without emitting any dylibs:

~/D/OSS/tree-sitter-langs [master] λ script/compile python
  [tree-sitter-langs] Processing python
  [tree-sitter-langs] Running (tree-sitter generate) in *Users/ethanleba/Documents/OSS/tree-sitter-langs/repos/python*
  [tree-sitter-langs] Running (tree-sitter test) in *Users/ethanleba/Documents/OSS/tree-sitter-langs/repos/python*
  …

  ~/D/OSS/tree-sitter-langs [master] λ

Is MacOS simply unsupported right now, or is something going wrong here?

@ethan-leba ethan-leba changed the title Compiling locally on MacOS Issues compiling locally on MacOS Feb 15, 2022
@ubolonton
Copy link
Collaborator

Maybe you have a new version of the tree-sitter CLI? The output location of dylibs was changed and could no longer be customized. I opened an issue for that: tree-sitter/tree-sitter#1336.

@ethan-leba
Copy link
Author

Ah, looks like that did the trick. I was a bit thrown off by there being no evident compilation step -- if I understand correctly, we're piggybacking off of tree-sitter test generating the dylib before testing?

@shackra shackra added the bug Something isn't working label Feb 22, 2022
@ubolonton ubolonton removed the bug Something isn't working label Feb 27, 2022
@ubolonton
Copy link
Collaborator

if I understand correctly, we're piggybacking off of tree-sitter test generating the dylib before testing?

Yeah, most of the time.

@ethan-leba
Copy link
Author

Makes sense, thanks!

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