Subject: Re: bug#63944: Language grammer not working for Typescript (Emacs 30 , fedora)

From: Eli Zaretskii <[email-masked]>
Date: Wed, 07 Jun 2023 15:47:17 +0300

> Date: Wed, 07 Jun 2023 11:18:59 +0000
> From:  Rajan Paudel via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> Hello , i've a bug not working tree-sitter grammer for typescript . 

Thank you for your report.

However, please don't cross-post bug reports to multiple addresses, in
particular not to the two Emacs mailing lists, help-gnu-emacs and
emacs-devel.

> When i open any typescript file i get this bug saying 
> 
> ```
> ⛔ Warning (comp): tramp-loaddefs.el.gz:754:2478: Warning: reference to free variable
> ‘tramp-remote-path’
> ⛔ Warning (treesit): Cannot activate tree-sitter, because language grammar for typescript is
> unavailable (symbol-error): /home/kali/.emacs.d/tree-sitter/libtree-sitter-typescript.so: undefined
> symbol: tree_sitter_typescript
> ⛔ 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
> ⛔ Warning (treesit): Cannot activate tree-sitter, because language grammar for typescript is
> unavailable (symbol-error): /home/kali/.emacs.d/tree-sitter/libtree-sitter-typescript.so: undefined
> symbol: tree_sitter_typescript
> 
> ```
> 
> I've already installed all required packages for tree-sitter in fedora. 

The error messages say Emacs cannot find the libraries in the specific
directories shown as part of the error message.  Are you saying the
libraries are in fact in /home/kali/.emacs.d/tree-sitter/, and Emacs
still doesn't find them?