From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#71562: treesit-install-language-grammar fails to install typescript Date: Thu, 20 Jun 2024 14:18:42 +0300 Message-ID: <3333f18b-f685-469a-b530-57adb5b6ce4f@gutov.dev> References: <87v82bcrrm.fsf@dod.no> <47399af2-6982-4ce1-ad50-db426624edae@gutov.dev> <86msnmwwbk.fsf@gnu.org> <93d76485-2563-45e3-890d-d5bfc56ff4b7@gutov.dev> <86v829sc18.fsf@gnu.org> <6ac57d91-0aed-4e7d-9022-9697a5a036dd@gutov.dev> <86plscnrhf.fsf@gnu.org> <954cf804-bdf1-4817-9eae-4591aa5f6b53@gutov.dev> <867cejopt8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10766"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: casouri@gmail.com, sb@dod.no, 71562@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 20 13:19:21 2024 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 1sKFp1-0002bW-OY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 20 Jun 2024 13:19:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKFoh-0006Mh-T0; Thu, 20 Jun 2024 07:18:59 -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 1sKFog-0006Kx-EH for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 07:18:58 -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 1sKFog-00047X-6J for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 07:18:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sKFoj-0001Pd-Uj for bug-gnu-emacs@gnu.org; Thu, 20 Jun 2024 07:19:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 20 Jun 2024 11:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71562 X-GNU-PR-Package: emacs Original-Received: via spool by 71562-submit@debbugs.gnu.org id=B71562.17188823395418 (code B ref 71562); Thu, 20 Jun 2024 11:19:01 +0000 Original-Received: (at 71562) by debbugs.gnu.org; 20 Jun 2024 11:18:59 +0000 Original-Received: from localhost ([127.0.0.1]:52941 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKFog-0001PK-QI for submit@debbugs.gnu.org; Thu, 20 Jun 2024 07:18:59 -0400 Original-Received: from wfout3-smtp.messagingengine.com ([64.147.123.146]:42055) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sKFoe-0001P5-0e for 71562@debbugs.gnu.org; Thu, 20 Jun 2024 07:18:57 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.west.internal (Postfix) with ESMTP id 66C2D1C000AE; Thu, 20 Jun 2024 07:18:46 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 20 Jun 2024 07:18:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm3; t=1718882326; x=1718968726; bh=eeLPiN0qBt2c/+D+8a2dS3unpk0AGdOl7bX6UNwGfzk=; b= HkkZvzjN6yUa8JGjwMLz61ut3kyfeZ8xToxi4ReBgnz5cUtSvugnu1qYolmRAew8 tUoFlL33KcS5aoo9lFLW3NVL/bug4ifg/1w4h3A9boIOMCFBH3S4e5+2YZ2EKB1Y 8yxSbyXU59POucYRk8xcgjkG0P0WQ7GmIi7TOKVKKOEToBtIz4gv4XWnifHz2Rgx CgMXuz+J435ZBCwC1aiDHH4NZe7cVhClWhDRgcxUqUH6VI4Xz1qOXS3FWcvjbg9q D4DbwKfwDap6vaDO9qpSjieerXUEVcSLBiMbHiP1ua0j8Xbi9ooloazY+kCFon2a LuEti4XbEv0hBRXZHEwxGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1718882326; x= 1718968726; bh=eeLPiN0qBt2c/+D+8a2dS3unpk0AGdOl7bX6UNwGfzk=; b=p K0QSUBXfLkviOcyqWl6DLCmfvdaL5lIrUOixHTR3jATzo9ZO+jnuc+D+i1Uefrl+ wlfshosF4EetDb/6UGDhi1z20ofupe2Vrlh9EPAkcP6Q9XerS4ZS6niX4OG8b/O9 Kjof6cQP1yzcghGRHw/xgbs4ukLM1j3eZeyJkyy1fSpDMR53mScWQp6foMLbvl4v PEbDJK9l77K7qeP/SfK+c+itx/2mXvv7T4CBdJRpMDpCzCwADbmycvnepthLSugl 9NSBc+88y3r0JrSncZiBwjWdX5Pwj/1MnjNJq/bGzrJSEaZsWuin8Nxwgsbnkv2H e43ju6vjr8uuU5Dkk/jKQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefvddgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hmihhtrhihsehguhhtohhvrdguvghv X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 20 Jun 2024 07:18:44 -0400 (EDT) Content-Language: en-US In-Reply-To: <867cejopt8.fsf@gnu.org> 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:287548 Archived-At: On 20/06/2024 13:45, Eli Zaretskii wrote: >> Date: Thu, 20 Jun 2024 13:28:23 +0300 >> Cc:casouri@gmail.com,sb@dod.no,71562@debbugs.gnu.org >> From: Dmitry Gutov >> >> On 20/06/2024 07:54, Eli Zaretskii wrote: >>>> Date: Wed, 19 Jun 2024 22:51:28 +0300 >>>> Cc:casouri@gmail.com,sb@dod.no,71562@debbugs.gnu.org >>>> From: Dmitry Gutov >>>> >>>> On 16/06/2024 08:16, Eli Zaretskii wrote: >>>>> I'm saying that we should run the build commands in every subdirectory >>>>> called 'src' that has parser.c or parser.cc in it. Each shared >>>>> library thus created should be installed. The name of the library is >>>>> derived from the parent of the 'src' subdirectory. >>>> I suppose the downside is when you pass 'tsx' as the language you still >>>> get nothing. >>> I don't understand: pass 'tsx' as language to what interface and in >>> which situation? >> 1. Bob is a user who wants to edit a tsx file. >> 2. He tries the tsx-ts-mode and sees the error "TSX grammar not found". >> 3. He calls 'M-x treesit-install-language-grammar' and inputs 'tsx' as >> the language. > And what do you think should happen next? Or where's the problem in > the above 3 steps? Next he presses RET a few times and the installation fails. If we added two entries to treesit-language-source-alist by default, OTOH (one for typescript, and another for tsx), then Bob would be able to install the grammar easily.