emacs-tree-sitter/tree-sitter-langs

Issues compiling locally on MacOS

ethan-leba opened this issue · 4 comments

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?

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.

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?

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

Yeah, most of the time.

Makes sense, thanks!