Package Details: tree-sitter-typescript 0.23.2-3

Git Clone URL: https://aur.archlinux.org/tree-sitter-typescript.git (read-only, click to copy)
Package Base: tree-sitter-typescript
Description: TypeScript grammar for tree-sitter
Upstream URL: https://github.com/tree-sitter/tree-sitter-typescript
Licenses: MIT
Groups: tree-sitter-grammars
Provides: libtree-sitter-typescript.so
Submitter: Chocobo1
Maintainer: Chocobo1
Last Packager: Chocobo1
Votes: 0
Popularity: 0.000000
First Submitted: 2025-03-06 17:10 (UTC)
Last Updated: 2025-03-19 19:37 (UTC)

Latest Comments

trevorm commented on 2025-03-20 01:12 (UTC)

Thanks for the quick response!

Chocobo1 commented on 2025-03-19 19:39 (UTC)

Hello. This package is failing to build on my system because of the tree-sitter generate line in build().

My fault. I pushed an update and it should be fixed now.

trevorm commented on 2025-03-19 19:26 (UTC)

Hello. This package is failing to build on my system because of the tree-sitter generate line in build(). I get the following error:

==> Starting build()...
Error when generating parser

Caused by:
    Failed to load grammar.js -- No such file or directory (os error 2)

I'm not experienced enough with tree-sitter to debug what's going wrong here. Naively, it looks to me like the grammar files are located at typescript/grammar.js and tsx/grammar.js but tree-sitter is not given those files as arguments.

However when I try calling tree-sitter generate typescript/grammar.js node dies with "Error: Cannot find module 'tree-sitter-javascript/grammar'". I have the tree-sitter-javascript package installed already from the "extra" repository, though I don't see it providing any grammar files.

Any pointers would be much appreciated. Thanks!