unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs 29.1: Errors with java-ts-mode on Windows
@ 2023-10-31 11:31 Pascal Quesseveur
  2023-10-31 12:23 ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Pascal Quesseveur @ 2023-10-31 11:31 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I have installed Emacs 29.1 on Windows from:

  - emacs-29.1_2-no-deps,
  - emacs-29-2023-08-10-deps,

  - compiled libraries for treesitter from
    https://github.com/emacs-tree-sitter/tree-sitter-langs/releases. I
    use the latest available version: 0.12.73.

I use major-mode-remap-alist to declare the treesitter modes I want to
use:

(setq major-mode-remap-alist
 '((c-mode . c-ts-mode)
   (cpp-mode . cpp-ts-mode)
   (java-mode . java-ts-mode)))

It's working fine for c and c++ modes, but I get the following error
when loading a java source file:

Error during redisplay: (jit-lock-function 1) signaled
(treesit-query-error "Node type error at" 382 "(annotation_type_declaration
 name: (identifier) @font-lock-type-face) (interface_declaration
 name: (identifier) @font-lock-type-face) (class_declaration
 name: (identifier) @font-lock-type-face) (record_declaration
 name: (identifier) @font-lock-type-face) (enum_declaration
 name: (identifier)
 @font-lock-type-face) (constructor_declaration
 name: (identifier)
 @font-lock-type-face) (compact_constructor_declaration
 name: (identifier) @font-lock-type-face) (field_access
 object: (identifier)
 @font-lock-type-face) (method_reference (identifier)
 @font-lock-type-face) (scoped_identifier (identifier)
 @font-lock-constant-face) ((scoped_identifier name: (identifier)
 @font-lock-type-face) (#match \"\\\\`[A-Z]\"
 @font-lock-type-face)) (type_identifier) @font-lock-type-face
 [(boolean_type) (integral_type) (floating_point_type) (void_type)]
 @font-lock-type-face" "Debug the query with `treesit-query-validate'")

I tried with emacs -Q and declaring only java-ts-mode in
major-mode-remap-alist, and I get the same error.

Did I miss something?

-- 
Pascal Quesseveur
pquessev@gmail.com




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

end of thread, other threads:[~2023-11-13 16:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-31 11:31 emacs 29.1: Errors with java-ts-mode on Windows Pascal Quesseveur
2023-10-31 12:23 ` Eli Zaretskii
2023-10-31 14:22   ` Pascal Quesseveur
2023-10-31 14:52     ` Eli Zaretskii
2023-10-31 16:28       ` Pascal Quesseveur
2023-11-06 10:13   ` Pascal Quesseveur
2023-11-13  9:24   ` Pascal Quesseveur
2023-11-13 14:24     ` Eli Zaretskii
2023-11-13 14:47       ` Pascal Quesseveur
2023-11-13 15:08         ` Eli Zaretskii
2023-11-13 15:54           ` Pascal Quesseveur
2023-11-13 16:48             ` Eli Zaretskii
2023-11-13 16:58               ` Eli Zaretskii

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).