From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Roman Rudakov Newsgroups: gmane.emacs.bugs Subject: bug#66646: 29.1.90; No tsx syntax highlithting in typescript-ts-mode Date: Fri, 20 Oct 2023 18:26:12 +0200 Message-ID: References: <00efa4c9-187d-38b3-0da9-4cab39b376ad@gutov.dev> Reply-To: rrudakov@fastmail.com Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="2814"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.10.7; emacs 29.1.90 Cc: 66646@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 20 18:29:55 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 1qtsNk-0000PR-GW for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 20 Oct 2023 18:29:54 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtsNd-0004Zx-5a; Fri, 20 Oct 2023 12:29:45 -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 1qtsNU-0004ZQ-MH for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2023 12:29:37 -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 1qtsNU-000891-Dc for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2023 12:29:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qtsNu-0005El-Kg for bug-gnu-emacs@gnu.org; Fri, 20 Oct 2023 12:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Roman Rudakov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Oct 2023 16:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66646 X-GNU-PR-Package: emacs Original-Received: via spool by 66646-submit@debbugs.gnu.org id=B66646.169781939320084 (code B ref 66646); Fri, 20 Oct 2023 16:30:02 +0000 Original-Received: (at 66646) by debbugs.gnu.org; 20 Oct 2023 16:29:53 +0000 Original-Received: from localhost ([127.0.0.1]:41352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtsNl-0005Ds-Dv for submit@debbugs.gnu.org; Fri, 20 Oct 2023 12:29:53 -0400 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:38629) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qtsNj-0005De-LI for 66646@debbugs.gnu.org; Fri, 20 Oct 2023 12:29:52 -0400 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.48]) by mailout.nyi.internal (Postfix) with ESMTP id 940685C09BF; Fri, 20 Oct 2023 12:29:18 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Fri, 20 Oct 2023 12:29:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to :reply-to:sender:subject:subject:to:to; s=fm3; t=1697819358; x= 1697905758; bh=XQ+FpMClCLpgRvDg6VVhb5SVMe5QXaZpsv6lpSnZLLA=; b=Q tB8REuJ030XtGyi1GRc53FQQAcePwP+x65PsGRPx1fMxNMKPKTDx2GJ184AuRtrN PQO1wgWwEPCOXld+eghy/Hjq1RRNqupJ/Nuz0kFSgG4IBaz50EWIRQH4IK3jc93j 32588PY1kbegKLodvDnsu9Ctkeba91pZOsDgHDNawt+8uUVLX+0BerrMaa1u4o2i 78eWGgcvLzZLz1tF5BxXCY4/pmqqeekLwcS6QaDThPkFH/ZyJB9QWL23M/fHXgsg ZLY39cM92h32+RaVR7SLBMl+GIDlgEDwz3SLkYdD6nXep5ymdkb1RIRygJpmMD6i YblCcCNCWAop8pa1EJpVA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:reply-to:sender :subject:subject:to:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1697819358; x=1697905758; bh=X Q+FpMClCLpgRvDg6VVhb5SVMe5QXaZpsv6lpSnZLLA=; b=EEPSOtcYMotbA12Bx +Y9dKDIWqyfc/4NxpPJhj5Sb9yQlehp+rgUVYrjdxUEHsmLcWIpnow3P+kWVa4QM 41GrQSYA7fdxZ5QwrNwPqidoMC2F3FbYA+/xfaJNkiXCaoIVDRsP89vNA6wbBv6H yzYffzMemvr7MEA6npnVAScgRj30NfjM/Q4NRjmLENTRzOvRUlWZN3fHuHtBrUtV etqWkuJ7Zok67BDUkpPkzIeSuaNH8rllruG+/abrZM3kXvCR+OLX5ub6dnJTqatI P4ZqSAHmbMD4tpI+YFYAZU7UfWkQLF6nno0baUikUJb4CwD8p5EYeVIkC/7xs+f7 9d8RQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedrjeekgdellecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpehffgfhvfevufffrhgjkfggtgesthdtredttdertdenucfhrhhomheptfhomhgr nhcutfhuuggrkhhovhcuoehrrhhuuggrkhhovhesfhgrshhtmhgrihhlrdgtohhmqeenuc ggtffrrghtthgvrhhnpeeijeehveehhfelhffhueetieejleelfedujedttddukeevgeeh ffetudfhffeiueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehrrhhuuggrkhhovhesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: i1c714620:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 Oct 2023 12:29:17 -0400 (EDT) In-reply-to: <00efa4c9-187d-38b3-0da9-4cab39b376ad@gutov.dev> 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:272804 Archived-At: Dmitry Gutov writes: > On 20/10/2023 13:13, Roman Rudakov wrote: >> - install the latest typescript/tsx grammar. >> - open a .tsx source file >> I'm getting the following error in the *Messages* buffer: >> Error during redisplay: (jit-lock-function 1) signaled >> (treesit-query-error "Structure error at" 22 "(jsx_opening_element >> [(nested_identifier (identifier)) (identifier)] >> @typescript-ts-jsx-tag-face) (jsx_closing_element >> [(nested_identifier (identifier)) (identifier)] >> @typescript-ts-jsx-tag-face) (jsx_self_closing_element >> [(nested_identifier (identifier)) (identifier)] >> @typescript-ts-jsx-tag-face) (jsx_attribute (property_identifier) >> @typescript-ts-jsx-attribute-face)" "Debug the query with >> `treesit-query-validate'") > > Could you somehow describe which version of the typescript grammar > you're using? Did you just pull and build it today from github's > master? Or is it from a distro, etc. I used steps from admin/notes/tree-sitter/starter-guide from emacs git repository. The grammars were built today, but I noticed this problem a few weeks ago. The grammars were built using the following command: git clone git@github.com:casouri/tree-sitter-module.git cd tree-sitter-module ./batch.sh and then copied from dist/ directory to ~/.emacs.d/tree-sitter/ -- Best regards, Roman