all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pascal Quesseveur <pquessev@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: emacs 29.1: Errors with java-ts-mode on Windows
Date: Tue, 31 Oct 2023 12:31:36 +0100	[thread overview]
Message-ID: <82ttq7jaef.fsf@gmail.com> (raw)

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




             reply	other threads:[~2023-10-31 11:31 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-31 11:31 Pascal Quesseveur [this message]
2023-10-31 12:23 ` emacs 29.1: Errors with java-ts-mode on Windows 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=82ttq7jaef.fsf@gmail.com \
    --to=pquessev@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.