* bug#75456: 31.0.50; Cannot find the definition of the predicate in `treesit-thing-settings'" sexp-list)
@ 2025-01-09 9:49 Vincenzo Pupillo
2025-01-09 18:10 ` Juri Linkov
0 siblings, 1 reply; 2+ messages in thread
From: Vincenzo Pupillo @ 2025-01-09 9:49 UTC (permalink / raw)
To: 75456
[-- Attachment #1: Type: text/plain, Size: 504 bytes --]
Ciao,
this problem occurs with js-ts-mode when jsdoc is enabled. Occurs when you
place the cursor in a comment highlighted by jsdoc.
This is the error message:
"treesit-show-paren-data--categorize: peculiar error: ("Cannot find the
definition of the predicate in `treesit-thing-settings'" sexp-list)"
Could this be due to commit 493bb2eaf1610ec950e4a2f7229d6e1f939064b9 ?
GNU Emacs 31.0.50 (build 4, x86_64-pc-linux-gnu, GTK+ Version 3.24.43, cairo
version 1.18.2) of 2025-01-09
Thanks.
Vincenzo
[-- Attachment #2: js_sexp-list_issue.png --]
[-- Type: image/png, Size: 19327 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#75456: 31.0.50; Cannot find the definition of the predicate in `treesit-thing-settings'" sexp-list)
2025-01-09 9:49 bug#75456: 31.0.50; Cannot find the definition of the predicate in `treesit-thing-settings'" sexp-list) Vincenzo Pupillo
@ 2025-01-09 18:10 ` Juri Linkov
0 siblings, 0 replies; 2+ messages in thread
From: Juri Linkov @ 2025-01-09 18:10 UTC (permalink / raw)
To: Vincenzo Pupillo; +Cc: Yuan Fu, 75456
> Ciao,
> this problem occurs with js-ts-mode when jsdoc is enabled. Occurs when you
> place the cursor in a comment highlighted by jsdoc.
> This is the error message:
>
> "treesit-show-paren-data--categorize: peculiar error: ("Cannot find the
> definition of the predicate in `treesit-thing-settings'" sexp-list)"
Recently I fixed bug#75198 and tested it on your mhtml-ts-mode
where it works nicely, and (treesit-language-at (point))
returns e.g. 'css' on embedded css.
However, now I discovered that (treesit-language-at (point))
returns 'javascript' on embedded jsdoc parts of a js file.
I wonder is this intended?
Since 'treesit-node-match-p' uses node's parser, I could use
(treesit-parser-language (treesit-node-parser (treesit-node-at (point))))
that returns 'jsdoc'.
But first I'd like to know why treesit-language-at doesn't return the same?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-09 18:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-09 9:49 bug#75456: 31.0.50; Cannot find the definition of the predicate in `treesit-thing-settings'" sexp-list) Vincenzo Pupillo
2025-01-09 18:10 ` Juri Linkov
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.