unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#63945: Language grammer not working for Typescript (Emacs 30 , fedora)
@ 2023-06-07 11:18 Rajan Paudel via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-06-07 12:47 ` bug#63944: " Eli Zaretskii
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Rajan Paudel via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-06-07 11:18 UTC (permalink / raw)
  To: help-gnu-emacs, emacs-devel, 63945

[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]

Hello , i've a bug not working tree-sitter grammer for typescript .
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.
Thank you for helping.

[-- Attachment #2: Type: text/html, Size: 2067 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#63944: Language grammer not working for Typescript (Emacs 30 , fedora)
  2023-06-07 11:18 bug#63945: Language grammer not working for Typescript (Emacs 30 , fedora) Rajan Paudel via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-06-07 12:47 ` Eli Zaretskii
  2023-06-07 12:48 ` bug#63945: " Eli Zaretskii
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2023-06-07 12:47 UTC (permalink / raw)
  To: Rajan Paudel; +Cc: 63944

> 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" <bug-gnu-emacs@gnu.org>
> 
> 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?





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#63945: Language grammer not working for Typescript (Emacs 30 , fedora)
  2023-06-07 11:18 bug#63945: Language grammer not working for Typescript (Emacs 30 , fedora) Rajan Paudel via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-06-07 12:47 ` bug#63944: " Eli Zaretskii
@ 2023-06-07 12:48 ` Eli Zaretskii
  2023-06-07 12:50 ` bug#63946: " Eli Zaretskii
       [not found] ` <83zg5b308d.fsf@gnu.org>
  3 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2023-06-07 12:48 UTC (permalink / raw)
  To: Rajan Paudel; +Cc: 63945

merge 63945 63944
thanks

> 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" <bug-gnu-emacs@gnu.org>
> 
> Hello , i've a bug not working tree-sitter grammer for typescript . 
> When i open any typescript file i get this bug saying 

This is an exact duplicate of bug#63944.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#63946: Language grammer not working for Typescript (Emacs 30 , fedora)
  2023-06-07 11:18 bug#63945: Language grammer not working for Typescript (Emacs 30 , fedora) Rajan Paudel via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-06-07 12:47 ` bug#63944: " Eli Zaretskii
  2023-06-07 12:48 ` bug#63945: " Eli Zaretskii
@ 2023-06-07 12:50 ` Eli Zaretskii
       [not found] ` <83zg5b308d.fsf@gnu.org>
  3 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2023-06-07 12:50 UTC (permalink / raw)
  To: Rajan Paudel; +Cc: 63946, help-gnu-emacs, emacs-devel

Please don't respond to this on any of the 3 mailing lists:
emacs-devel, help-gnu-emacs, and emacs-pretest-bug.  Let's discuss
this only on the bug tracker (CC any responses to
63944@debbugs.gnu.org), without cross-posting to other lists.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#63946: Language grammer not working for Typescript (Emacs 30 , fedora)
       [not found] ` <83zg5b308d.fsf@gnu.org>
@ 2023-06-07 12:58   ` Eli Zaretskii
       [not found]   ` <87zg5b54qb.fsf@dataswamp.org>
  1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2023-06-07 12:58 UTC (permalink / raw)
  To: 63946-done

Not a bug, a mistake.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#63944: Language grammer not working for Typescript (Emacs 30 , fedora)
       [not found]   ` <87zg5b54qb.fsf@dataswamp.org>
@ 2023-06-09  6:26     ` Jostein Kjønigsen
  0 siblings, 0 replies; 6+ messages in thread
From: Jostein Kjønigsen @ 2023-06-09  6:26 UTC (permalink / raw)
  To: Rajan Paudel, 63944; +Cc: Eli Zaretskii

[-- Attachment #1: Type: text/plain, Size: 845 bytes --]

> 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:

  * M-x treesit-install-language-grammar
  * Type "typescript"
  * Confirm you want an interactive install.
  * Use this url for language grammar:
    https://github.com/tree-sitter/tree-sitter-typescript

This is what I've done and it works for me.

--

Vennlig hilsen
*Jostein Kjønigsen*

jostein@kjonigsen.net 🍵 jostein@gmail.com
https://jostein.kjønigsen.no <https://jostein.kjønigsen.no>

[-- Attachment #2: Type: text/html, Size: 2177 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-06-09  6:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-07 11:18 bug#63945: Language grammer not working for Typescript (Emacs 30 , fedora) Rajan Paudel via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-06-07 12:47 ` bug#63944: " Eli Zaretskii
2023-06-07 12:48 ` bug#63945: " Eli Zaretskii
2023-06-07 12:50 ` bug#63946: " Eli Zaretskii
     [not found] ` <83zg5b308d.fsf@gnu.org>
2023-06-07 12:58   ` Eli Zaretskii
     [not found]   ` <87zg5b54qb.fsf@dataswamp.org>
2023-06-09  6:26     ` bug#63944: " Jostein Kjønigsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).