tree-sitter: 'tree-sitter parse the-file' throws error following tutorial "The system cannot find the file specified (os error 2)"
I’m having trouble getting through the creating parsers tutorial.
tree-sitter generate
works and creates the /src
folder and binding.gyp
but trying to run
tree-sitter parse the-file
gives me
The system cannot find the file specified (os error 2)
This is on windows with visual studio 2017 installed if that matters. I am able to get through this part of the tutorial on a macbook as expected.
I expect this is an error on my end, or some weird setup I have - but I can’t figure out any more info around the error to know where to start.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 15 (9 by maintainers)
Oh, that’s great to hear. Thanks!
I think that means that you have
0.15.1
somewhere else on your PATH. Maybe at some point you installed it withnpm install -g
? In any case, are the error messages any better? 🙏