py-tree-sitter
                                
                                 py-tree-sitter copied to clipboard
                                
                                    py-tree-sitter copied to clipboard
                            
                            
                            
                        Missing parser.c error for typescript
While trying to invoke build_library with typescript is resulting in missing src/parser.c error. Is there any documentation on which languages are supported with the python binding?
I had the same problem 👋
The TypeScript package is weird because it contains two grammars: typescript and tsx. Pointing to just the root of tree-sitter-typescript (or tree-sitter-typescript-master if you just cloned it from GitHub) will return a "can't find file: src/parser.c" because that file is located in the nested folder typescript or tsx.
To fix the problem: give the path to build_library as .../tree-sitter-typescript-master/tsx (if you want to work with TypeScript JSX) or .../tree-sitter-typescript-master/typescript (if you just want TypeScript) where ... is all the path stuff preceding the tree-sitter-typescript-master folder (i.e. vendor if you're following the README.md example so the resulting path is vender/tree-sitter-typescript-master/{tsx or typescript}).