Skip to content
This repository has been archived by the owner on Oct 6, 2021. It is now read-only.

Empty folder generated on MacOS Catalina #21

Open
wilkinson4 opened this issue May 24, 2021 · 5 comments
Open

Empty folder generated on MacOS Catalina #21

wilkinson4 opened this issue May 24, 2021 · 5 comments

Comments

@wilkinson4
Copy link

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

@ananthakumaran
Copy link
Owner

ananthakumaran commented May 25, 2021

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

@akash-akya
Copy link
Collaborator

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

@wilkinson4
Copy link
Author

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

@akash-akya
Copy link
Collaborator

akash-akya commented May 25, 2021

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.

@ananthakumaran
Copy link
Owner

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.

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

No branches or pull requests

3 participants