tree-sitter-elixir
tree-sitter-elixir copied to clipboard
Empty folder generated on MacOS Catalina
I was able to run npm install and make generate, but it generates an empty directory in ~/.tree-sitter/bin/

do you get any error on make generate step? can you also share the output of ls node_modules/tree-sitter
Are you able to run make test? I faced similar issues previously
I'm not getting an error from make generate unfortunately. I ran make test and all of the tests passed without error.
I can reproduce this locally, it seems make test generates dynamic libraries. while make generate only creates c files.
from the documentation:
Automatic Compilation You might notice that the first time you run tree-sitter test after regenerating your parser, it takes some extra time. This is because Tree-sitter automatically compiles your C code into a dynamically-loadable library. It recompiles your parser as-needed whenever you update it by re-running tree-sitter generate.
I have added make install and updated the documentation. I can't find a direct command to generate dynamic library without actually running the tests. I will leave the issue open for now, may be someone can come up with better approach.