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

CONTRIBUTING.md? #217

Open
NullVoxPopuli opened this issue Aug 21, 2022 · 1 comment
Open

CONTRIBUTING.md? #217

NullVoxPopuli opened this issue Aug 21, 2022 · 1 comment
Labels

Comments

@NullVoxPopuli
Copy link
Contributor

Hello, I'm trying to test some things with tree-sitter-typescript, since tree-sitter/tree-sitter-javascript#208 got merged recently.

However, I don't know how to do anything in this repo 😅
looking at package.json, I see scripts -- but running them causes errors:

cd tree-sitter-typescript
npm install
# install succeeds 
npm run build

> tree-sitter-typescript@0.20.1 build
> npm run build-typescript && npm run build-tsx


> tree-sitter-typescript@0.20.1 build-typescript
> cd typescript && npx tree-sitter generate --no-bindings

node:events:505
      throw er; // Unhandled 'error' event
      ^

Error: spawn <repo>/node_modules/tree-sitter-cli/tree-sitter ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn <repo>/node_modules/tree-sitter-cli/tree-sitter',
  path: '<repo>/node_modules/tree-sitter-cli/tree-sitter',
  spawnargs: [ 'generate', '--no-bindings' ]
}}

@NullVoxPopuli
Copy link
Contributor Author

Here is how I got passed the error -- feels very manual 🤔

Download release here: https://github.com/tree-sitter/tree-sitter/releases/tag/v0.20.6

cd node_modules/tree-sitter-cli
cp /Downloads/tree-sitter-linux-x64.gz ./
gunzip tree-sitter-linux-x64.gz
ln -s tree-sitter-linux-x64 tree-sitter

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

No branches or pull requests

1 participant