bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#66646: 29.1.90; No tsx syntax highlithting in typescript-ts-mode


From: Roman Rudakov
Subject: bug#66646: 29.1.90; No tsx syntax highlithting in typescript-ts-mode
Date: Fri, 20 Oct 2023 18:26:12 +0200
User-agent: mu4e 1.10.7; emacs 29.1.90


Dmitry Gutov <dmitry@gutov.dev> writes:

On 20/10/2023 13:13, Roman Rudakov wrote:
- install the latest typescript/tsx grammar.
- open a .tsx source file
I'm getting the following error in the *Messages* buffer:
Error during redisplay: (jit-lock-function 1) signaled
(treesit-query-error "Structure error at" 22 "(jsx_opening_element
[(nested_identifier (identifier)) (identifier)]
@typescript-ts-jsx-tag-face) (jsx_closing_element
[(nested_identifier (identifier)) (identifier)]
@typescript-ts-jsx-tag-face) (jsx_self_closing_element
[(nested_identifier (identifier)) (identifier)]
@typescript-ts-jsx-tag-face) (jsx_attribute (property_identifier)
@typescript-ts-jsx-attribute-face)" "Debug the query with
`treesit-query-validate'")

Could you somehow describe which version of the typescript grammar
you're using? Did you just pull and build it today from github's
master? Or is it from a distro, etc.

I used steps from admin/notes/tree-sitter/starter-guide from emacs git repository. The grammars were built today, but I noticed this problem a few weeks ago.

The grammars were built using the following command:

git clone git@github.com:casouri/tree-sitter-module.git cd tree-sitter-module ./batch.sh

and then copied from dist/ directory to ~/.emacs.d/tree-sitter/
--
Best regards, Roman





reply via email to

[Prev in Thread] Current Thread [Next in Thread]