tsx is a different grammar and needs to be generated/compiled
seperately.
ah
it worked, problem was in that `parser.c` library, Somehow ,
treesit didnt detected parser.c for typescript even if i
typed it, i had left default which was reason it didnt found
library and gave
Enter the subdirectory in which the parser.c file resides (default: "src"):
``
⛔
Warning (treesit): Error encountered when installing
language grammar: (file-missing Setting current directory No
such file or directory /tmp/treesit-workdir5YrpTB/repo/src)
```
Now i have
successfully generated typescript.so .
I can run now
`typescript-ts-mode` after enabling it
though it still
throwing error when enabling it
⛔ Warning (treesit): Cannot activate tree-sitter,
because language grammar for tsx is unavailable
(not-found): (libtree-sitter-tsx libtree-sitter-tsx.0
libtree-sitter-tsx.0.0 libtree-sitter-tsx.so
libtree-sitter-tsx.so.0 libtree-sitter-tsx.so.0.0) No such
file or directory
------- Original Message -------
On Friday, June 9th, 2023 at 10:26 AM, Jostein Kjønigsen
<jostein@secure.kjonigsen.net>
wrote:
> In that directory i can find `.so` for other , but not for typescript. Because of same error was coming i tried to use I had tried to use treesit-auto, which manually install treesitter , but it also failed ,while not for other languages i tried.
>
> [image.png]
>
> This error was only coming from `typescript-ts-mode` , I'm doing angular, i cant get ide features now for angular . Thank you for helping
Try manually installing the grammar:
This is what I've done and it works for me.
--