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.bugs Subject: bug#65810: 30.0.50; C-M-f and related functions error out in c++-ts-mode Date: Thu, 07 Sep 2023 21:09:33 +0300 Message-ID: <83wmx1yhwi.fsf@gnu.org> References: <87bkedlvs8.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19015"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65810@debbugs.gnu.org To: =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= , Yuan Fu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 07 20:10:23 2023 Return-path: Envelope-to: geb-bug-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 1qeJSQ-0004mI-WF for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Sep 2023 20:10:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeJS6-0007e4-K4; Thu, 07 Sep 2023 14:10:02 -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 1qeJS5-0007dd-0Q for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 14:10:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeJS4-0003lO-Ok for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 14:10:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qeJS6-0006Mk-HY for bug-gnu-emacs@gnu.org; Thu, 07 Sep 2023 14:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Sep 2023 18:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65810 X-GNU-PR-Package: emacs Original-Received: via spool by 65810-submit@debbugs.gnu.org id=B65810.169411019424450 (code B ref 65810); Thu, 07 Sep 2023 18:10:02 +0000 Original-Received: (at 65810) by debbugs.gnu.org; 7 Sep 2023 18:09:54 +0000 Original-Received: from localhost ([127.0.0.1]:41378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeJRy-0006MI-FG for submit@debbugs.gnu.org; Thu, 07 Sep 2023 14:09:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qeJRw-0006M5-95 for 65810@debbugs.gnu.org; Thu, 07 Sep 2023 14:09:53 -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 1qeJRp-0003i8-4k; Thu, 07 Sep 2023 14:09:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=iJnhEYtBY2VroDc+A97GkjuIPq+y8N/eTRyvskrSjTg=; b=L4nQyEyF8mg+0qE2zFlk wSD3kzlLXZjreHQy3x158Cifu/ECSmtIk4XRQ1fGB3etpUu6qOhQCc1SBvzGGbWBtKIDBwG1ZPvKQ FVTz0y6OzdcuHqqwjG9MewAtPsdbiG9Awt6D/eLDJtuC+rgyzvaoA79wj1tFbijxmkNs7iffjW+Jr WDTz7Ekwu5In+C0R8ZTqNMBPGhe0J3k4XvRQv+AEVKmgaGZx4gy60IXeb9qxYHbTBmSVZ3tEc0A7J nxeqOk284Kt0xik5Ra+BaDXoyTiNWoEPR5p+LJFFiyYKcfMLadBraN6gKE5iIRK/YJPb5f1ffPaT5 l9VA0pGggasA6g==; In-Reply-To: <87bkedlvs8.fsf@gmail.com> (message from =?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?= on Thu, 07 Sep 2023 18:48:07 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:269687 Archived-At: > From: João Távora > Cc: eliz@gnu.org > Date: Thu, 07 Sep 2023 18:48:07 +0100 > > Now just type C-M-f or any C-M-something command. > > Debugger entered--Lisp error: (treesit-invalid-predicate nil) > treesit-node-match-p(# sexp t) > #f(compiled-function (node) #)(#) > treesit-node-match-p(# #f(compiled-function (node) #) t) > treesit-node-top-level(# #f(compiled-function (node) #) t) > treesit--things-around(5 sexp) > treesit--navigate-thing(5 -1 beg sexp restricted) > treesit-beginning-of-thing(sexp 1 restricted) > treesit-forward-sexp(-1) > forward-sexp(-1 nil) > forward-sexp(-1 5) > backward-sexp(1 5) > funcall-interactively(backward-sexp 1 5) > call-interactively(backward-sexp nil nil) > command-execute(backward-sexp) > > simple.cpp can be any C++ file, from a simple > > int main() {return 0;} > > to a completely empty file. With the above sample file I can indeed reproduce the error. But not with real-life files I tried, where functions are larger and there's usually more than one function. Yuan, could you please look into this?