tree-sitter-elixir icon indicating copy to clipboard operation
tree-sitter-elixir copied to clipboard

Empty folder generated on MacOS Catalina

Open wilkinson4 opened this issue 4 years ago • 5 comments

I was able to run npm install and make generate, but it generates an empty directory in ~/.tree-sitter/bin/ Screen Shot 2021-05-24 at 4 46 46 PM

wilkinson4 avatar May 24 '21 21:05 wilkinson4

do you get any error on make generate step? can you also share the output of ls node_modules/tree-sitter

ananthakumaran avatar May 25 '21 03:05 ananthakumaran

Are you able to run make test? I faced similar issues previously

akash-akya avatar May 25 '21 03:05 akash-akya

I'm not getting an error from make generate unfortunately. I ran make test and all of the tests passed without error.

wilkinson4 avatar May 25 '21 15:05 wilkinson4

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.

akash-akya avatar May 25 '21 15:05 akash-akya

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.

ananthakumaran avatar May 26 '21 06:05 ananthakumaran