Tree-sitter: No such file or directory (os error 2) when running 'tree-sitter generate'

Created on 14 Feb 2019  Â·  3Comments  Â·  Source: tree-sitter/tree-sitter

I'm following the tutorial at http://tree-sitter.github.io/tree-sitter/creating-parsers but on the generation step the executable fails with this.

➜  tree-sitter generate
No such file or directory (os error 2)
➜  ./node_modules/tree-sitter-cli/tree-sitter generate
No such file or directory (os error 2)

So what file or directory is missing?

MacOS 10.14.3 / zsh

Most helpful comment

Ah, sorry about that; you shouldn't have to create the src folder manually. I'll push a fix shortly.

All 3 comments

Looks like this is caused by a missing src folder

Ah, sorry about that; you shouldn't have to create the src folder manually. I'll push a fix shortly.

I published 0.14.5, which fixes this.

Was this page helpful?
0 / 5 - 0 ratings