From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Randy Taylor Newsgroups: gmane.emacs.bugs Subject: bug#63086: 29.0.90; go-ts-mode treesit-query-error during jit-lock Date: Fri, 28 Apr 2023 01:35:13 +0000 Message-ID: References: <83r0s7szfj.fsf@gnu.org> <077666b3-657b-4b35-b271-78d6bd26d2df@Spark> <80fa402e-058b-4144-ab1e-a7dd6301bb4d@Spark> <83edo6u5kj.fsf@gnu.org> <9dfa3e61-87b9-04cf-21e6-6049ee3fed41@gutov.dev> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35832"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, Eli Zaretskii , 63086@debbugs.gnu.org, Jimmy Wong To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Apr 28 03:36:16 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 1psD20-00094S-A3 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 28 Apr 2023 03:36:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psD1s-0002bZ-Gl; Thu, 27 Apr 2023 21:36:08 -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 1psD1m-0002a8-TD for bug-gnu-emacs@gnu.org; Thu, 27 Apr 2023 21:36:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1psD1m-0000HP-Bc for bug-gnu-emacs@gnu.org; Thu, 27 Apr 2023 21:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psD1m-0006w1-5N for bug-gnu-emacs@gnu.org; Thu, 27 Apr 2023 21:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Randy Taylor Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Apr 2023 01:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63086 X-GNU-PR-Package: emacs Original-Received: via spool by 63086-submit@debbugs.gnu.org id=B63086.168264573726606 (code B ref 63086); Fri, 28 Apr 2023 01:36:02 +0000 Original-Received: (at 63086) by debbugs.gnu.org; 28 Apr 2023 01:35:37 +0000 Original-Received: from localhost ([127.0.0.1]:60147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psD1M-0006v1-PZ for submit@debbugs.gnu.org; Thu, 27 Apr 2023 21:35:37 -0400 Original-Received: from mail-40136.proton.ch ([185.70.40.136]:30719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psD1J-0006uf-Qf for 63086@debbugs.gnu.org; Thu, 27 Apr 2023 21:35:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjt.dev; s=protonmail3; t=1682645727; x=1682904927; bh=2v3XA/9Bl5qA8zhrUyHG995M7g47Jw2S5Ct4EwIe3uI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=iZlxQyYSKZ5O5ZL42skWHDEtFiB2yE3mDaic7lhU8nuHlFMOqUB3edhFTHMBGsElv YPahYFi2ICos3I4LgzOHMF23MKxvycy9ReYFbvZNZxZvdmENcdQzXSyy+CNvQV4/x0 0mJdfa/l+i3H831kaUhc0gF+Ku3XpfvL4DLKlRiXCOqogJ2nauxfpIBJvRz3t+V6rp KeuaYmUIOCez12Gha+f9ISgKF6i5ZGDIfOHQWCaDjhsqlTjHn+Wp7HBMtUOg5WyLu/ fiHlp9XLjliVjJXtkQW3zbdkyjHibu8SG2KSZObKuC9sR1xjuCSU3ZITkLQevhiz3x HCq8fT22RorLw== In-Reply-To: <9dfa3e61-87b9-04cf-21e6-6049ee3fed41@gutov.dev> Feedback-ID: 44397038:user:proton 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:260745 Archived-At: On Thursday, April 27th, 2023 at 20:16, Dmitry Gutov wro= te: >=20 > On 26/04/2023 17:05, Randy Taylor wrote: >=20 > > I think java-ts-mode and some others have a helper that checks which > > queries are supported by testing them, I can make a patch for that if > > that's the direction we want to go. >=20 >=20 > It might be better to use treesit-query-string instead, see > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D61913#55. Thanks. Maybe I'm missing something, but doesn't treesit-query-string with an empty= string do nothing and always error, since it queries on whatever string yo= u pass in? In that case, wouldn't using treesit-query-capture directly be the best? I = don't understand why it's not from reading that thread. If it isn't, then t= reesit-query-validate is the only option, right?