Package Details: tree-sitter-typescript-git 0.20.2.r10.g3429d8c-3

Git Clone URL: https://aur.archlinux.org/tree-sitter-typescript-git.git (read-only, click to copy)
Package Base: tree-sitter-typescript-git
Description: TypeScript and TSX grammar for tree-sitter
Upstream URL: https://github.com/tree-sitter/tree-sitter-typescript
Licenses: MIT
Groups: tree-sitter-grammars
Conflicts: tree-sitter-typescript
Provides: tree-sitter-typescript
Submitter: lmartinez-mirror
Maintainer: Rogach
Last Packager: Rogach
Votes: 2
Popularity: 0.018499
First Submitted: 2021-06-11 18:58 (UTC)
Last Updated: 2024-04-06 07:38 (UTC)

Dependencies (3)

Required by (1)

Sources (1)

Latest Comments

hugo.hornquist commented on 2024-04-06 16:03 (UTC)

Installing the files to /usr/share/nvim/runtime/parser doesn't work since a recent nvim version, which symlinks that directory to /usr/lib/tree_sitter. Installing the files to the new directory seems to solve it.

@@ -43,9 +43,9 @@ build() {
 package() {
   install -Dm 644 parser-ts.so "$pkgdir/usr/lib/libtree-sitter-typescript.so"
   install -Dm 644 parser-tsx.so "$pkgdir/usr/lib/libtree-sitter-tsx.so"
-  install -d "$pkgdir/usr/share/nvim/runtime/parser/"
-  ln -s "/usr/lib/libtree-sitter-typescript.so" "$pkgdir/usr/share/nvim/runtime/parser/typescript.so"
-  ln -s "/usr/lib/libtree-sitter-tsx.so" "$pkgdir/usr/share/nvim/runtime/parser/tsx.so"
+  install -d "$pkgdir/usr/lib/tree_sitter"
+  ln -s "/usr/lib/libtree-sitter-typescript.so" "$pkgdir/usr/lib/tree_sitter/typescript.so"
+  ln -s "/usr/lib/libtree-sitter-tsx.so" "$pkgdir/usr/lib/tree_sitter/tsx.so"

dedguy21 commented on 2021-10-06 21:57 (UTC)

This is having the same error as JavaScript and Go.

The package is trying to build with a hyphenated name which is not allowed