From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: emacs 29.1: Errors with java-ts-mode on Windows Date: Tue, 31 Oct 2023 16:52:54 +0200 Message-ID: <83msvyalo9.fsf@gnu.org> References: <82ttq7jaef.fsf@gmail.com> <83o7gf9e13.fsf@gnu.org> <82lebikh1o.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24590"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 31 15:53:46 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qxq7l-0006EI-Kp for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 31 Oct 2023 15:53:45 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qxq7B-0005W0-9J; Tue, 31 Oct 2023 10:53:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxq79-0005VP-HG for help-gnu-emacs@gnu.org; Tue, 31 Oct 2023 10:53:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qxq78-0003qA-IX for help-gnu-emacs@gnu.org; Tue, 31 Oct 2023 10:53:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=KI8ICPPzZ8GdZHeJLMms9YF0w2Flleq5eK7RrHhlsTM=; b=r8hfZt6Nnutp 9JrUAO+eS/8rBePLOm15kugmyy6SbFXHE1DRroTN5YvOLAIfVPHnKI4hatlgKovug+UMQ2cRvZTxk S1a0dfgwf+2NrEBBb7ZoleDYa5a1VjOxQwDQZCmSQcNlLBb3O4sQXi+/Ffd3RHB919c+HxYI501HM YIuth1sJNsLrsizFlliuAINgfVSbJ6w7sNKeOCygIUXvms9rJegPtn47EbEYngg4L7nMmst6vpltk G/t0vSEP18YD0X0x9iqlDyF2b7xJzMHeX6IpZq/0QufUaDMQbW1F9d8LvFEsHQSTXNpsySHlSiz9h 8BqcG6LqTbqnDlPQR44FCg==; In-Reply-To: <82lebikh1o.fsf@gmail.com> (message from Pascal Quesseveur on Tue, 31 Oct 2023 15:22:43 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145438 Archived-At: > From: Pascal Quesseveur > Date: Tue, 31 Oct 2023 15:22:43 +0100 > > >"EZ" == Eli Zaretskii writes: > > EZ> And if you don't use major-mode-remap-alist, but instead load > EZ> jave-ts-mode manually and visit the same source file, this problem > EZ> doesn't happen? > > I have set java-ts-mode for java files in auto-mode-alist, opened a > java source file and I get the same error. Then I cannot reproduce this, not with some random Java source file I tried. Maybe this happens only for some Java source files? Can you post the file you used when you saw this problem? There could also be another problem: I use the latest grammar library from their Git (https://github.com/tree-sitter/tree-sitter-java), not from https://github.com/emacs-tree-sitter/tree-sitter-langs/releases repository. If you can compile the grammar library yourself, perhaps try the latest one?