GNU bug report logs - #71562
treesit-install-language-grammar fails to install typescript

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Steinar Bang <sb@HIDDEN>; merged with #71717; dated Fri, 14 Jun 2024 18:19:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Merged 71562 71717. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 20 Jun 2024 16:08:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 12:08:17 2024
Received: from localhost ([127.0.0.1]:34780 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKKKe-0006Ab-RS
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 12:08:17 -0400
Received: from fout1-smtp.messagingengine.com ([103.168.172.144]:54805)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1sKKKc-0006AM-MG
 for 71562 <at> debbugs.gnu.org; Thu, 20 Jun 2024 12:08:15 -0400
Received: from compute5.internal (compute5.nyi.internal [10.202.2.45])
 by mailfout.nyi.internal (Postfix) with ESMTP id 8B7B813801F2;
 Thu, 20 Jun 2024 12:08:05 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute5.internal (MEProxy); Thu, 20 Jun 2024 12:08:05 -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=1718899685;
 x=1718986085; bh=TeXQG/UO5a6gBQJLBgyBjBazHswJ5C9i6qOmpM1b0Yk=; b=
 h4ZBpIZMVKjTTbb4pnlqENUSdyGR+/CuY/cKvmKkOpzponev+KJ1tnmcEy0Ji+/B
 CSKtL0zaKHks8B2XNGOCfQOXJlTZCqM0c94lHrwCnZuorTCes2XX8gJdeRRoZ2i0
 fSe8UfeCZovyOZZv9dzLzGFyMdIVunvnffbkmfi0r97vwMO6vBGEZsZDTaonSETq
 4ygxiuRR3Ie8fcMcT5Uc3Yc7C46CYZyzFPQwsXwbVF2oKbQKTaaMss3wtW2f3HMg
 WBSXgdKiS+HgeEUPHzknWLcaOiRJ8Fmcq+ip1sRUMePEeUynbJjBwaZCD/3aVIsP
 Ke8AoExweopT+2KwP/fNOw==
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=1718899685; x=
 1718986085; bh=TeXQG/UO5a6gBQJLBgyBjBazHswJ5C9i6qOmpM1b0Yk=; b=P
 orxRmasBZONWwncE0qQhSmsvX/ORjdqlMGuj985cMbre//wSkDD45ajwDgiWihaU
 wMtHhOTsGD1qWDsYNGA3ka0NZY/WZPogOiYk+UKG4Zv7zDQyrzHyR4G/JLpyGwOr
 hIA9Utk4KLfA3ZnpMzQHxD+cX3nLJkphpU0Nz2ZaY58aCrDGnLXuKwS6zcY7pBTY
 MT5sALvWirQNhL7Rx1I6yM8RukRU9Q/Pi8zQfUl2lXBrK8tbLsU6MvmxlpRCvD47
 X5FAuOnzeWEXeOGWsaukohvcq9HzjE2tEZ7uaDtHGeN+SDA0xV2zKrgj1g+pfemY
 w9r7T13cBFNSVJ3bPdKiw==
X-ME-Sender: <xms:5VN0Znj2FsHTpMKD4G7qa7yzsBFG9B5BhOH5uqdYXI6RVwwAWpu4Bg>
 <xme:5VN0ZkDdzGbZzZjZMv15QVL_WcF3kr1epCrGdfguh60M68gcbFpXybH-0cDyr17yj
 CXq1E9vGp9zD25m8Yo>
X-ME-Received: <xmr:5VN0ZnEMYkIGtMtLOL3di9kmQVFcIlfdFJctfqTs5m3HqDAfc1lF7rKf2z2lJwEaISkD>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefvddgleekucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi
 thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth
 htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu
 jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug
 hmihhtrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:5VN0ZkQ-_BUuZk1_87O-8hnNyySDZOldGuPhUqYio72PTRXmHQS-0Q>
 <xmx:5VN0ZkxfS5dtbC6d3MfsUo8ALYsSTTpnz0jQkQH25gOlU4n9ZHQpRg>
 <xmx:5VN0Zq53rGXu2Iv98pdOThQsJRa92NhUm5f6uX6KQnQ9OFcgSNR1Hg>
 <xmx:5VN0Zpza-ugox7Bdu0tGCsexFjNETdRRceVHBMQSjTy3Tcl_-rXUVg>
 <xmx:5VN0Zuugmqf_1EGTW3r6_XJRbuF5Gs6dyODI6EPKPqU7cw8GmF2HecJL>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 20 Jun 2024 12:08:03 -0400 (EDT)
Message-ID: <e3027796-5e07-4238-b325-05f0d0fa523a@HIDDEN>
Date: Thu, 20 Jun 2024 19:08:01 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
To: Eli Zaretskii <eliz@HIDDEN>
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN> <86v829sc18.fsf@HIDDEN>
 <6ac57d91-0aed-4e7d-9022-9697a5a036dd@HIDDEN> <86plscnrhf.fsf@HIDDEN>
 <954cf804-bdf1-4817-9eae-4591aa5f6b53@HIDDEN> <867cejopt8.fsf@HIDDEN>
 <3333f18b-f685-469a-b530-57adb5b6ce4f@HIDDEN> <865xu3onph.fsf@HIDDEN>
 <73eaf141-c9d2-4866-80b3-a71152d314c9@HIDDEN> <861q4roba1.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <861q4roba1.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 71562
Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 20/06/2024 18:59, Eli Zaretskii wrote:
>> Date: Thu, 20 Jun 2024 18:03:32 +0300
>> Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
>> From: Dmitry Gutov <dmitry@HIDDEN>
>>
>> On 20/06/2024 14:31, Eli Zaretskii wrote:
>>
>>>>> 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.
>>>
>>> Why would it fail, if my suggestion is implemented?
>>
>> Because your suggestion is for the case where Bob specifies 'typescript'
>> on step 3.
> 
> No, it was for _any_ grammar, regardless of its name.

It will work only in the case where Bob specifies 'typescript', not 'tsx'.

>>>> 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.
>>>
>>> But then we'd need to maintain a DB of all the "abnormal" repositories
>>> (and there a few of them),
>>
>> There are not too many of them, and out of those TypeScript (and TSX
>> with it) is more popular than most of the others as a programming
>> language. So even if we add these two it wouldn't follow that we must
>> have the rest.
> 
> They are not too many, but they tend to grow, and maintaining such a
> list would be an extra burden.  Why do that when a simpler and more
> reliable solution exists?

See the previous mentioned problems with it.

>> If we aren't concerned about side-effects, such as for example when the
>> user wanted to stay on the previous version of the tsx grammar they had
>> installed (because the major mode doesn't work with the newer one), but
>> they need to update the typescript grammar, and the tsx grammar is
>> overwritten in the process too.
> 
> I don't see why that would be a problem.  The grammars that come in
> pairs share common parts anyway, so I think updating them all is
> actually slightly safer.

That might be true, though probably not in all cases.

Our major modes for typescript and tsx do share some parts of the 
definition.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 20 Jun 2024 16:00:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 12:00:05 2024
Received: from localhost ([127.0.0.1]:34500 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKKCj-0005p9-8j
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 12:00:05 -0400
Received: from eggs.gnu.org ([209.51.188.92]:60526)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sKKCg-0005nr-RR
 for 71562 <at> debbugs.gnu.org; Thu, 20 Jun 2024 12:00:03 -0400
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 <eliz@HIDDEN>)
 id 1sKKCV-0006Q1-Tu; Thu, 20 Jun 2024 11:59:51 -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=rfJ/MnKIoo7GwDPW1DQsmAmlp3cCk3QxooCjzXg0Z9Q=; b=CbtGkCft6QsR
 HBp50G/W4TqCfAyGSzHpPRJ+buufrnsqsBF+9A6QGOXfmHuFkFeoZGWQwO6x4SU80lVzg244w9pil
 WvnXm3c8/nVCo2YRjpc4ZmYZFeFiwKU6aoeJj0bH+ZDaC7x+bE8nV79l30U+x1MzWRt0KgkdmdXaW
 XQWE2fBOKVtnuaPiWvJG1xikHhMro2FwkSiOwIK0FUy13OoIecTp0dsWuulQ35k+mx2UnoUdFOzUH
 TMlvwsxDmVHpLlC31SSrHfbmwB0NRdyQEQX2j1B9iA9uj4IZvhZe2GIJIC+5Bk4J4DngZ9Kgm3CzF
 OzghsdwDwx/5qsyvKw13tQ==;
Date: Thu, 20 Jun 2024 18:59:34 +0300
Message-Id: <861q4roba1.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <73eaf141-c9d2-4866-80b3-a71152d314c9@HIDDEN> (message from
 Dmitry Gutov on Thu, 20 Jun 2024 18:03:32 +0300)
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN> <86v829sc18.fsf@HIDDEN>
 <6ac57d91-0aed-4e7d-9022-9697a5a036dd@HIDDEN> <86plscnrhf.fsf@HIDDEN>
 <954cf804-bdf1-4817-9eae-4591aa5f6b53@HIDDEN> <867cejopt8.fsf@HIDDEN>
 <3333f18b-f685-469a-b530-57adb5b6ce4f@HIDDEN> <865xu3onph.fsf@HIDDEN>
 <73eaf141-c9d2-4866-80b3-a71152d314c9@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71562
Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 20 Jun 2024 18:03:32 +0300
> Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> On 20/06/2024 14:31, Eli Zaretskii wrote:
> 
> >>> 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.
> > 
> > Why would it fail, if my suggestion is implemented?
> 
> Because your suggestion is for the case where Bob specifies 'typescript' 
> on step 3.

No, it was for _any_ grammar, regardless of its name.

> >> 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.
> > 
> > But then we'd need to maintain a DB of all the "abnormal" repositories
> > (and there a few of them),
> 
> There are not too many of them, and out of those TypeScript (and TSX 
> with it) is more popular than most of the others as a programming 
> language. So even if we add these two it wouldn't follow that we must 
> have the rest.

They are not too many, but they tend to grow, and maintaining such a
list would be an extra burden.  Why do that when a simpler and more
reliable solution exists?

> If we aren't concerned about side-effects, such as for example when the 
> user wanted to stay on the previous version of the tsx grammar they had 
> installed (because the major mode doesn't work with the newer one), but 
> they need to update the typescript grammar, and the tsx grammar is 
> overwritten in the process too.

I don't see why that would be a problem.  The grammars that come in
pairs share common parts anyway, so I think updating them all is
actually slightly safer.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 20 Jun 2024 15:03:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 11:03:48 2024
Received: from localhost ([127.0.0.1]:60982 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKJKF-0003uk-Sn
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 11:03:48 -0400
Received: from fout8-smtp.messagingengine.com ([103.168.172.151]:44863)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1sKJKE-0003uQ-0j
 for 71562 <at> debbugs.gnu.org; Thu, 20 Jun 2024 11:03:46 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47])
 by mailfout.nyi.internal (Postfix) with ESMTP id 734031380171;
 Thu, 20 Jun 2024 11:03:36 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute6.internal (MEProxy); Thu, 20 Jun 2024 11:03:36 -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=1718895816;
 x=1718982216; bh=pBezrmxFHPvqOocEWJNl1bTcuTUOnXkjkbzOfXk016k=; b=
 csg3o/eP9GW3lb+T2xje5PsxHrLEHmtbSNFJODv+5T1wltZ08DhYJK0XszMG/RpC
 VaBPDJ2GY+33sF4r1bVVxULT5jWlgygG4pkLHtSedgtZlUmGC9mapWpYeNX4GFuU
 EZOBcI63iSxmBzxRfaTBjUkuF1xo60281C9F9yvnDzaRxZjNIHtfC/hD+mwVZ495
 +tP+WU7R+llOYbYHiGOQwBtcyG4c0cV6UJnZNjqloMJCWiXE76o9D/se8JvuIabQ
 RlPdlxDFvNHqaHtEI4XDmwK59Ffg6PxoctPYV1ci1MRa/77kwRlq25qsnivH04ot
 fcDPVY6h8S+q39gDMb5TYA==
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=1718895816; x=
 1718982216; bh=pBezrmxFHPvqOocEWJNl1bTcuTUOnXkjkbzOfXk016k=; b=A
 p8ysS8MLTGwyj0doCTttlNIS4ob9uR9HMqn31XvGoQRBu0BkzFzoxmp4P0+X+0Ey
 fwHPFA67RUZHfg4mj8mgF6kFoxvI4B0zu0c/k/HSPeJF/e8lBpIetQZRuyy2jn5A
 o1u3VhLzXihodnaBHj+RGOUn2xUWh61CwSZMGl8/VsQarHSSkRSJ9KYEuErZR2OV
 Pnr+x4F/0yR+CSq+AxLwflOCOY2QhDKyB/n2tV9wW3OQ0E13t2lZhrt7Ev4ZUlKb
 iGLhgtwz7Su/qs0oJZbw5/QT5g71946LvlR/4385x9kTN+sRc3FDnKRT57+72Rd0
 8/7ciba/DqCWX0DTANTfw==
X-ME-Sender: <xms:x0R0ZgOTkSHNMr4YC_t2LH50wKA-2p1aQBBMIVzLBNJGkTjf25uR7g>
 <xme:x0R0Zm9myn1NjaWgZhNy74-_7HCUEf6D7tq7hsS16Qjc60_bxHDP1UWIBIDXsIXfI
 svuDoWiOKZbUcUZBWo>
X-ME-Received: <xmr:x0R0ZnSv6Q4xbZPSNnZjCIwWzyEmZ3qvpBxwvRIG33fPy6KIGE2Q-tJHZ_5Y_7Xcx-NA>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefvddgkeegucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi
 thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth
 htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu
 jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug
 hmihhtrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:x0R0ZotY9eg7Zm9Wrxg1dBKqUt02lStyx5XLL7N0VmUJJoJvzlBsPg>
 <xmx:x0R0ZodZawQIhCDyKpVZFrt2_IHOwVlWATLENtDQxzLuzWDWdUuidw>
 <xmx:x0R0Zs0Ef29su3Fn5z-e3rGwkkcxP8x7wrJnbXPd5nISnBWvAweDEA>
 <xmx:x0R0Zs_K_jzGNEf37eb10t2aNFjfgMENS-jkqybN9EoF7Lz0gk8I8A>
 <xmx:yER0Zn5Eq1Laf-Twt-XmbuKtO2evW5BC4R0pr6Ko81J1XP-caF3JP-rK>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 20 Jun 2024 11:03:33 -0400 (EDT)
Message-ID: <73eaf141-c9d2-4866-80b3-a71152d314c9@HIDDEN>
Date: Thu, 20 Jun 2024 18:03:32 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
To: Eli Zaretskii <eliz@HIDDEN>
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN> <86v829sc18.fsf@HIDDEN>
 <6ac57d91-0aed-4e7d-9022-9697a5a036dd@HIDDEN> <86plscnrhf.fsf@HIDDEN>
 <954cf804-bdf1-4817-9eae-4591aa5f6b53@HIDDEN> <867cejopt8.fsf@HIDDEN>
 <3333f18b-f685-469a-b530-57adb5b6ce4f@HIDDEN> <865xu3onph.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <865xu3onph.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 71562
Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 20/06/2024 14:31, Eli Zaretskii wrote:

>>> 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.
> 
> Why would it fail, if my suggestion is implemented?

Because your suggestion is for the case where Bob specifies 'typescript' 
on step 3.

>> 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.
> 
> But then we'd need to maintain a DB of all the "abnormal" repositories
> (and there a few of them),

There are not too many of them, and out of those TypeScript (and TSX 
with it) is more popular than most of the others as a programming 
language. So even if we add these two it wouldn't follow that we must 
have the rest.

 > which is less reliable.

I suppose we could do both - both update the recipe, and scan the 
directory tree for files named parser.c.

If we aren't concerned about side-effects, such as for example when the 
user wanted to stay on the previous version of the tsx grammar they had 
installed (because the major mode doesn't work with the newer one), but 
they need to update the typescript grammar, and the tsx grammar is 
overwritten in the process too.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 20 Jun 2024 11:31:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 07:31:25 2024
Received: from localhost ([127.0.0.1]:53265 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKG0i-0004d1-DT
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 07:31:25 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56896)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sKG0f-0004aD-E8
 for 71562 <at> debbugs.gnu.org; Thu, 20 Jun 2024 07:31:22 -0400
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 <eliz@HIDDEN>)
 id 1sKG0U-0006qj-Ll; Thu, 20 Jun 2024 07:31:10 -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=X4ysElm34WNDxQkLrEFYpBUoKKPeclR8NuJiwuZAEsU=; b=Nuzc/ZAFtOEK
 b3d2/+uP4UrlhBIQBjy845v7GQXvvz9xGgYAAdEU92G5Yt7qSXmNl94QNlZuN0xN0DARGotV6Awi0
 Dz5IUHB1ngW+NBAayMAIGQ64GZKIDS/4hnxlL3Nj1E7f12PZ6hpCnwHc9rBhsbrVNU5oqZe9fWc5E
 pip8bRo2kEO22Cll6X+qbhg4WMhlETKJScl7MBoUTEONPVVzAoNAgetzM3422VgPyooX/bVINwbDs
 Pnc+GBdQW5hjgnFC0N/dKX/LjHhgQ8SfVARpBvkWxncZTWo4cKoh4qk30Tcja07KCV6XNcfciLk1W
 c9NqLnj4FgWWHATpcb/cBg==;
Date: Thu, 20 Jun 2024 14:31:06 +0300
Message-Id: <865xu3onph.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <3333f18b-f685-469a-b530-57adb5b6ce4f@HIDDEN> (message from
 Dmitry Gutov on Thu, 20 Jun 2024 14:18:42 +0300)
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN> <86v829sc18.fsf@HIDDEN>
 <6ac57d91-0aed-4e7d-9022-9697a5a036dd@HIDDEN> <86plscnrhf.fsf@HIDDEN>
 <954cf804-bdf1-4817-9eae-4591aa5f6b53@HIDDEN> <867cejopt8.fsf@HIDDEN>
 <3333f18b-f685-469a-b530-57adb5b6ce4f@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71562
Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 20 Jun 2024 14:18:42 +0300
> Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> On 20/06/2024 13:45, Eli Zaretskii wrote:
> >> Date: Thu, 20 Jun 2024 13:28:23 +0300
> >> Cc:casouri@HIDDEN,sb@HIDDEN,71562 <at> debbugs.gnu.org
> >> From: Dmitry Gutov<dmitry@HIDDEN>
> >>
> >> On 20/06/2024 07:54, Eli Zaretskii wrote:
> >>>> Date: Wed, 19 Jun 2024 22:51:28 +0300
> >>>> Cc:casouri@HIDDEN,sb@HIDDEN,71562 <at> debbugs.gnu.org
> >>>> From: Dmitry Gutov<dmitry@HIDDEN>
> >>>>
> >>>> 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.

Why would it fail, if my suggestion is implemented?

> 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.

But then we'd need to maintain a DB of all the "abnormal" repositories
(and there a few of them), which is less reliable.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 20 Jun 2024 11:18:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 07:18:59 2024
Received: from localhost ([127.0.0.1]:52941 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKFog-0001PK-QI
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 07:18:59 -0400
Received: from wfout3-smtp.messagingengine.com ([64.147.123.146]:42055)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1sKFoe-0001P5-0e
 for 71562 <at> debbugs.gnu.org; Thu, 20 Jun 2024 07:18:57 -0400
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)
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: <xms:FRB0ZrqH7jmvsjjhleaAlGkSFZUSv0TDugF5y0ihAWHio3_RwCbWjA>
 <xme:FRB0ZloC76vV5D4AxP6HSxHGPlG62YqJBeZ-qqWzJgRqVLhO5qOx4eVSlVlAxEfkf
 WOenrykVNNcPNFQ82w>
X-ME-Received: <xmr:FRB0ZoM0OR8bmOHaSx1x1Iv0fFikGWjnrczM6vLs-8e19ueW-GMlmKuDISg9hEEzBH5P>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefvddgfeelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi
 thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth
 htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu
 jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug
 hmihhtrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:FRB0Zu55MPhC3IRF2Lg38BMtvV4CZf8wDHHxSHElbAi9YrzO441x1w>
 <xmx:FRB0Zq6C20HYamuyvdmbtKjB5h0HWKhO4na9uOnNsimpqA0nWQSWoA>
 <xmx:FRB0ZmiULR-745MZU4CAjuWc8FptqBgiGHm-YyrIxKZ8gTacAuX0wA>
 <xmx:FRB0Zs4xO6yjKw361lupZw76CR3jF_1__M6Qq_eMGTzf_gSZUqZnDw>
 <xmx:FhB0Zl3sR3G3Zntf0V0pORpsVjJmtqavnQ2WcYyxU6gOH595qeTSeM5u>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 20 Jun 2024 07:18:44 -0400 (EDT)
Message-ID: <3333f18b-f685-469a-b530-57adb5b6ce4f@HIDDEN>
Date: Thu, 20 Jun 2024 14:18:42 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
To: Eli Zaretskii <eliz@HIDDEN>
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN> <86v829sc18.fsf@HIDDEN>
 <6ac57d91-0aed-4e7d-9022-9697a5a036dd@HIDDEN> <86plscnrhf.fsf@HIDDEN>
 <954cf804-bdf1-4817-9eae-4591aa5f6b53@HIDDEN> <867cejopt8.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <867cejopt8.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 71562
Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 20/06/2024 13:45, Eli Zaretskii wrote:
>> Date: Thu, 20 Jun 2024 13:28:23 +0300
>> Cc:casouri@HIDDEN,sb@HIDDEN,71562 <at> debbugs.gnu.org
>> From: Dmitry Gutov<dmitry@HIDDEN>
>>
>> On 20/06/2024 07:54, Eli Zaretskii wrote:
>>>> Date: Wed, 19 Jun 2024 22:51:28 +0300
>>>> Cc:casouri@HIDDEN,sb@HIDDEN,71562 <at> debbugs.gnu.org
>>>> From: Dmitry Gutov<dmitry@HIDDEN>
>>>>
>>>> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 20 Jun 2024 10:48:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 06:48:12 2024
Received: from localhost ([127.0.0.1]:52150 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKFKu-0000TK-EU
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 06:48:12 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57172)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sKFKr-0000T3-OA
 for 71562 <at> debbugs.gnu.org; Thu, 20 Jun 2024 06:48:11 -0400
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 <eliz@HIDDEN>)
 id 1sKFIb-00064R-Nw; Thu, 20 Jun 2024 06:45:49 -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=voJmDZm76husCMh+LiNMYl6g3HdNnZBaX6SuP4FXlH0=; b=P+F+2tB12V5S
 LsXvPn+yZwmuOg8pfOlfy9UXRpmMeIDSkbGO6HdWXLYkEfN96CYP20KBHfN1nYzE5KQPLNJ8iwCdZ
 5O1IeSfoOgMxzdOVIDrHwa37dbbarWXHu/r6xClga2ftG8hGu3oZVmCq34uzmDhP0wgpNEmj5buWe
 VsBxygF18aB21G5dSYGjZB7bDm1NQIV7yFAAlBW/38rCPE1nZRxPjgaSM30puiFVYNcjACDw3tdzQ
 M9BmLsHA0Q7Js7/YS5VDTDzTWg7QTPhCjcJrlpy1vl4ET2hYlSSwm3q8QUDp/izKx72IBv1dJ4a55
 iyVBBMRGfAF4RI/35QMs/w==;
Date: Thu, 20 Jun 2024 13:45:39 +0300
Message-Id: <867cejopt8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <954cf804-bdf1-4817-9eae-4591aa5f6b53@HIDDEN> (message from
 Dmitry Gutov on Thu, 20 Jun 2024 13:28:23 +0300)
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN> <86v829sc18.fsf@HIDDEN>
 <6ac57d91-0aed-4e7d-9022-9697a5a036dd@HIDDEN> <86plscnrhf.fsf@HIDDEN>
 <954cf804-bdf1-4817-9eae-4591aa5f6b53@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71562
Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Thu, 20 Jun 2024 13:28:23 +0300
> Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> On 20/06/2024 07:54, Eli Zaretskii wrote:
> >> Date: Wed, 19 Jun 2024 22:51:28 +0300
> >> Cc:casouri@HIDDEN,sb@HIDDEN,71562 <at> debbugs.gnu.org
> >> From: Dmitry Gutov<dmitry@HIDDEN>
> >>
> >> 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?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 20 Jun 2024 10:28:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 06:28:40 2024
Received: from localhost ([127.0.0.1]:51684 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sKF20-0008II-8s
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 06:28:40 -0400
Received: from wfout2-smtp.messagingengine.com ([64.147.123.145]:43349)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1sKF1x-0008I1-Rb
 for 71562 <at> debbugs.gnu.org; Thu, 20 Jun 2024 06:28:39 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
 by mailfout.west.internal (Postfix) with ESMTP id 2D1FC1C000F2;
 Thu, 20 Jun 2024 06:28:27 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute2.internal (MEProxy); Thu, 20 Jun 2024 06:28:27 -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=1718879306;
 x=1718965706; bh=UvJna7u7AXe+v290k5x+CD6F/aM8Jyal6f1MjTUXx3Y=; b=
 QQuJCD1f5T+WSv1NVpUrRoogY8oiV3hNaqsrKkyYxilGxKk+BSqn+/jJwbJpVQmj
 Uod8AQTLmUGZeaxQP9Oot9ZSwVKZfWBivsgQK1oysxnLHtaEpzrfr3V+WSW3Mnw/
 JznCSwCbHqSGXgXz1hpI/6Dr0JgLPd8HEVpRDaEg0FiNBMCvoc0QXoAKu+heTnNe
 s3Hf7eTvw9+4OeVRt6tKsLmcefazQJ78DEPETEdGnd6OZrIZZStDuv2pPbx96XwI
 cs9/lDM7wdmQrQgop2mwEhuGkLYclENekjbZLKTtM7ZrhQWtxjb4sKtTzCW17xi4
 8HfvQpvKszpUBt1pjNth9g==
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=1718879306; x=
 1718965706; bh=UvJna7u7AXe+v290k5x+CD6F/aM8Jyal6f1MjTUXx3Y=; b=J
 TP0CkCv/7047viS6Ao4/VOXi6TeDfhPTOuPLUhK4nJH0LgRYqWYZQholpbfJJjI8
 UInVhFN2SWEe2KpIgY33Yuqzzm42UCatCIhV6hko7gYbXvkmR94hlfO7tfi+fApC
 87lLlDOGlzRIr1gITZBQEJUtXfVg9Gg1Bx9eRvcrFwXlIT3q7Gu49Zvvx338aTvE
 DgTI2R1gG58oV9QuA5m12BV3NdmY3C6FOgw69afD8mJVYkRIb9hKOVGgQf8job23
 drQUbfJZ3Qgda6vgFo2iAWnNzKF2GAN3mD1k0WLTsx9JzsaM8NWZBCL4U+OUZ5pp
 bRJpm1Utm8o0e4EE2UMOQ==
X-ME-Sender: <xms:SgR0Zt-Bky4jgitzdIzzgY2LYR_hzw8U-IITqUuc-te8K9A-E6NTKw>
 <xme:SgR0ZhvCBr8gWlSWY-YF0gHHDQ_xBxkkRL-IS4hr0v1LSsrtuunlfTwiN1X6VpJwS
 UJHNUPCW_H5sNBk-0s>
X-ME-Received: <xmr:SgR0ZrA_ibraX0ZXcKEeDDRbV6tdcQBArPq7DP0M_RdRexczWMak4EFd51amZOMByGuM>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeefvddgvdelucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpeffmhhi
 thhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovhdruggvvheqnecuggftrfgrth
 htvghrnhepteduleejgeehtefgheegjeekueehvdevieekueeftddvtdevfefhvdevgedu
 jeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug
 hmihhtrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:SgR0Zheqy1ZJep8XtGXSb6dxKhyxSOZg25wxXYTleK2lOhRh7KNoUQ>
 <xmx:SgR0ZiPa_-quonH-tqPsB_BStg9iieyijugYx9f7Y1ZYNaYVlPj7YQ>
 <xmx:SgR0ZjnvFeBuGN23r3lHcj-BrbNdhOpasfifdr3oPGgVFRPyQroOBw>
 <xmx:SgR0ZsuibYfJXMm6iKEymeFAZM0gYrzE-5Kx7z506DG7j5F_Mw0tYA>
 <xmx:SgR0Zvqfhn6lCO3lMAYZeDRAaB1hxsvM_fgwhQHyfaDIaGPjbbeW6P5t>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 20 Jun 2024 06:28:25 -0400 (EDT)
Message-ID: <954cf804-bdf1-4817-9eae-4591aa5f6b53@HIDDEN>
Date: Thu, 20 Jun 2024 13:28:23 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
To: Eli Zaretskii <eliz@HIDDEN>
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN> <86v829sc18.fsf@HIDDEN>
 <6ac57d91-0aed-4e7d-9022-9697a5a036dd@HIDDEN> <86plscnrhf.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <86plscnrhf.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 71562
Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 20/06/2024 07:54, Eli Zaretskii wrote:
>> Date: Wed, 19 Jun 2024 22:51:28 +0300
>> Cc:casouri@HIDDEN,sb@HIDDEN,71562 <at> debbugs.gnu.org
>> From: Dmitry Gutov<dmitry@HIDDEN>
>>
>> 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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 20 Jun 2024 04:55:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 20 00:55:07 2024
Received: from localhost ([127.0.0.1]:43344 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sK9pD-0000MH-0r
	for submit <at> debbugs.gnu.org; Thu, 20 Jun 2024 00:55:07 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42150)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sK9pA-0000LS-K4
 for 71562 <at> debbugs.gnu.org; Thu, 20 Jun 2024 00:55:05 -0400
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 <eliz@HIDDEN>)
 id 1sK9p0-0001Xl-48; Thu, 20 Jun 2024 00:54:54 -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=s1slRHLsJhAHUqiFIsDP3M2xQQleAjpRaLuD8YwWHZ0=; b=JNSwBR+sPVhT
 ui1WY58K0OYzSFJogWgOXwCWutaTd3uDkJDe9uLjFokvtA9u7OHKWRJa0iGy/24CZB0+5d43PEE2q
 zyrtCtJbzIAK9/0PIjvnmMceD5MaFMjq1SxTGGdA8scdOfYn1eZeENDftdlpBy8lc3DB+N965g4GZ
 WZUQ7BDq9o3nd+Is9ZJktJIOaMPo5bWtbZUxH4xwI0q8oLEOH2ZAKBV+XMy3Br/BFpqrhiI3p3MLE
 JZV5PzufCmOWN9rFHEgoAYzkIxIuOY70ulzKPVT6eJj3bwmKdCxFdVQZhHvLsOAIn+BuAjXpJqK8l
 sR8ZvV+5DVepMObA+gbVyw==;
Date: Thu, 20 Jun 2024 07:54:52 +0300
Message-Id: <86plscnrhf.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <6ac57d91-0aed-4e7d-9022-9697a5a036dd@HIDDEN> (message from
 Dmitry Gutov on Wed, 19 Jun 2024 22:51:28 +0300)
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN> <86v829sc18.fsf@HIDDEN>
 <6ac57d91-0aed-4e7d-9022-9697a5a036dd@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71562
Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Wed, 19 Jun 2024 22:51:28 +0300
> Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> 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?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 19 Jun 2024 19:51:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 19 15:51:45 2024
Received: from localhost ([127.0.0.1]:56862 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sK1LN-0005dY-Jk
	for submit <at> debbugs.gnu.org; Wed, 19 Jun 2024 15:51:45 -0400
Received: from fhigh1-smtp.messagingengine.com ([103.168.172.152]:47995)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1sK1LL-0005dF-QN
 for 71562 <at> debbugs.gnu.org; Wed, 19 Jun 2024 15:51:44 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
 by mailfhigh.nyi.internal (Postfix) with ESMTP id 61B661140156;
 Wed, 19 Jun 2024 15:51:33 -0400 (EDT)
Received: from mailfrontend2 ([10.202.2.163])
 by compute2.internal (MEProxy); Wed, 19 Jun 2024 15:51:33 -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=1718826693;
 x=1718913093; bh=G+76+vHQjnJqbnBuQy7ebZnGpCFQPVD50EhQaDDSA7A=; b=
 oIQwlihZOOEyX2hg1Q/mHCJ5gGmG3arCANSahV+t5bzVUen6OwRK8Ts/KmqXEr6p
 S749pSBA0XKvDyocVpVhW/RlWNWGSapH7MtdPm6+l8KchoiEiMa8bSrdBmwk+NjH
 Iz4GrtgkFI68I7r+Vtoxt+TO3Zm607Dnl8/YU2YetHa2c+WdWSsyFGnF6IGg/s37
 J7NTfjcaCDYsOUDGJrip3oA/OBs2mohLQAFs9PG9MvG6YaYWcyREoADp38KGYCQs
 PBWB3ohN0J3Dda6O5AWRfq4b14p6gLL2mZKf2XTu9ov/WprSKLaWL1taYQLkRtba
 zaEySsYFJB+HtCm7QH62fQ==
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=1718826693; x=
 1718913093; bh=G+76+vHQjnJqbnBuQy7ebZnGpCFQPVD50EhQaDDSA7A=; b=B
 8S82Jyus9byiSZ4iZxRmZZE6yS3VEv0rRqq92M2CEhTO92MPN/rF38sYBEs8Qn6X
 D3syqtkWjS/VW7o7YARbnSfUh8oAkJpMTiIVrfMHlhC4lbaqXMj8jLdwakCd+JA2
 vQjPzE1TUc6+RYHJN+XphRo6pKD8b16DWnhia+LUOFFd9yxDbohyP+AIEc1xSZxP
 Ql9If5MhZ+1bUXamk+De4gmwUMG4G6u9E9vzOja//s8X6k19NR6ijSp3ST1yow0d
 GL8ld7VeUQNObXHqLzKnq6cxrPEjMbpnlaQSjBfj1xk5yvzGPc5zlaB9zNNi1Fnh
 o/cfcGf9eSXyFpzROn8Uw==
X-ME-Sender: <xms:xDZzZsG4SLLh-fhUVIWXsixsvvU8ND_Z0sDdQs3xSIPHAxwekcJHhQ>
 <xme:xDZzZlUs1jZaMnjhwliogHFs_hvLrCl_M-_QeklamZacnzDtw7v7WrTXXo0OOvvIC
 sFMDds0e4V93qsa20E>
X-ME-Received: <xmr:xDZzZmKWwVC0ovdwnjjdDEoTI4Ysy5E2Jrja2_cGtvGHDou6s1MXhp6t7EyFT5GqUmqy>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeeftddgudegudcutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhm
 ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg
 htthgvrhhnpeetudeljeegheetgfehgeejkeeuhedvveeikeeufedtvddtveefhfdvveeg
 udejheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe
 gumhhithhrhiesghhuthhovhdruggvvh
X-ME-Proxy: <xmx:xDZzZuF_xDJSUQf3WvppKEeqSsx5l4drF8mFqrAJhs_GUyWxse-kvg>
 <xmx:xDZzZiVdPmbNToQjqAb-Xff0aTT61ltaqD4Srh15NivPaksXtAUxOw>
 <xmx:xDZzZhODPwXmT_bjbUZ2gNRpdTG95i4bLGHuAo537oMtAtNo7vkkeQ>
 <xmx:xDZzZp1y7w0niMeAzDMiYFA-rxOoSZjlOFzv3fJWNTGN0KbK_V0zPQ>
 <xmx:xTZzZgzYr-xopqGZvXfzIHSdWbX6HewxOVdP7lbN2GE53Mw_7wjk_-Pd>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed,
 19 Jun 2024 15:51:31 -0400 (EDT)
Message-ID: <6ac57d91-0aed-4e7d-9022-9697a5a036dd@HIDDEN>
Date: Wed, 19 Jun 2024 22:51:28 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
To: Eli Zaretskii <eliz@HIDDEN>
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN> <86v829sc18.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <86v829sc18.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 71562
Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 19 Jun 2024 19:14:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 19 15:14:51 2024
Received: from localhost ([127.0.0.1]:55782 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sK0le-0004Qi-V0
	for submit <at> debbugs.gnu.org; Wed, 19 Jun 2024 15:14:51 -0400
Received: from eggs.gnu.org ([209.51.188.92]:50720)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sK0lc-0004QL-MJ
 for 71562 <at> debbugs.gnu.org; Wed, 19 Jun 2024 15:14:49 -0400
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 <eliz@HIDDEN>)
 id 1sK0lR-0008CK-2I; Wed, 19 Jun 2024 15:14:37 -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=Aw7VMShERH3gxvSZNq8Ozms7f8jJazpDtvANJWFY07o=; b=V/4lpmpEGSayOuVupEE+
 sYsWTGD5neghvl9MUNMoo/277C9ON+gxL6CzAVTPa2JpFHbNV1w2ISH82mWp/Om/CTsF4E4Hw6Sq8
 wpoSup2FM6Ssm/u3EQktktpOb4dJ43VEI0Mh/pnbhboG1DtBAkxvP3zVZPwHoP2H18HjyQhyLFPQQ
 IydMigpERyd+CWqDY3DpNAylb1h3oUp/29QCPqMVuN6ctnqYpzujmrJZpivVW6IFjJUqdYLWWGnSL
 ImzZb8KzBfKu0Lal5vYLLguxaZoOgp0tMjsfNpzdrd1UwVSAAROcrUwL5760d6w327Vkh/1OZNkrL
 3TllzGwe8NAtew==;
Date: Wed, 19 Jun 2024 22:14:34 +0300
Message-Id: <86wmmkoicl.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Steinar Bang <sb@HIDDEN>
In-Reply-To: <87le30bwba.fsf@HIDDEN> (message from Steinar Bang on Wed, 19 Jun
 2024 20:51:21 +0200)
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN>
 <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN>
 <86v829sc18.fsf@HIDDEN>
 <EAC61EBC-C162-4F62-A3E3-1243ADDAACE0@HIDDEN> <87le30bwba.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71562
Cc: dmitry@HIDDEN, casouri@HIDDEN, 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Steinar Bang <sb@HIDDEN>
> Cc: Eli Zaretskii <eliz@HIDDEN>,  Dmitry Gutov <dmitry@HIDDEN>,
>   71562 <at> debbugs.gnu.org
> Date: Wed, 19 Jun 2024 20:51:21 +0200
> 
> >>>>> Yuan Fu <casouri@HIDDEN>:
> 
> > treesit-install-language-grammar works fine if you pass “typescript/src” instead of the default “src” to it, for the third argument, so I don’t think there’s anything to fix here. Installing multiple things “smartly” might be more confusing and error-prone than helpful, IMO.
> 
> FWIW the repo contains two grammars: typescript and tsx
> 
> And both grammars are needed (not just typescript).

Yes.  Which is why I said that we should find _all_ the subdirectories
called 'src' which have a parser, and produce a shared library in each
one of them.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 19 Jun 2024 18:51:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 19 14:51:35 2024
Received: from localhost ([127.0.0.1]:55093 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sK0P8-0003YH-Oz
	for submit <at> debbugs.gnu.org; Wed, 19 Jun 2024 14:51:34 -0400
Received: from schwantz.bang.priv.no ([95.217.129.251]:35466)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sb@HIDDEN>) id 1sK0P6-0003Xx-V6
 for 71562 <at> debbugs.gnu.org; Wed, 19 Jun 2024 14:51:33 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dod.no; s=sb;
 t=1718823083; bh=IFzkfzPPgnatRC2KF8qz6GlCwYshCzEDK5i0vNzZ/Oc=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=p45hK60p9EhQvFdiJR9hv2497akyykeCIzjzYV3+B1iaeZoDC5K1VUFKZqSaDCONR
 RKKyIYpEFRMNmkfM7eL33+XXoOQH75lRs5mRsO5oInCY4K7PxQm6snzx5ItJj3W3D0
 HpytFvT9T/SqX+P8m83yBgwN1O+wXA93g/LqSgsw=
Received: from marquez (unknown [84.210.69.52])
 by schwantz.bang.priv.no (Postfix) with ESMTPSA id 1F2CD3AA;
 Wed, 19 Jun 2024 18:51:23 +0000 (UTC)
From: Steinar Bang <sb@HIDDEN>
To: Yuan Fu <casouri@HIDDEN>
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
In-Reply-To: <EAC61EBC-C162-4F62-A3E3-1243ADDAACE0@HIDDEN> (Yuan Fu's
 message of "Tue, 18 Jun 2024 23:33:50 -0700")
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN>
 <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN>
 <86v829sc18.fsf@HIDDEN>
 <EAC61EBC-C162-4F62-A3E3-1243ADDAACE0@HIDDEN>
Date: Wed, 19 Jun 2024 20:51:21 +0200
Message-ID: <87le30bwba.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71562
Cc: Dmitry Gutov <dmitry@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> Yuan Fu <casouri@HIDDEN>:

> treesit-install-language-grammar works fine if you pass =E2=80=9Ctypescri=
pt/src=E2=80=9D instead of the default =E2=80=9Csrc=E2=80=9D to it, for the=
 third argument, so I don=E2=80=99t think there=E2=80=99s anything to fix h=
ere. Installing multiple things =E2=80=9Csmartly=E2=80=9D might be more con=
fusing and error-prone than helpful, IMO.

FWIW the repo contains two grammars: typescript and tsx

And both grammars are needed (not just typescript).




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 19 Jun 2024 06:35:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 19 02:35:15 2024
Received: from localhost ([127.0.0.1]:34612 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sJouZ-0001bp-AZ
	for submit <at> debbugs.gnu.org; Wed, 19 Jun 2024 02:35:15 -0400
Received: from mail-pf1-f177.google.com ([209.85.210.177]:60839)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <casouri@HIDDEN>) id 1sJouV-0001bX-9K
 for 71562 <at> debbugs.gnu.org; Wed, 19 Jun 2024 02:35:13 -0400
Received: by mail-pf1-f177.google.com with SMTP id
 d2e1a72fcca58-70435f4c330so5199860b3a.1
 for <71562 <at> debbugs.gnu.org>; Tue, 18 Jun 2024 23:35:08 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1718778842; x=1719383642; darn=debbugs.gnu.org;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=7add5RfcfoRD6kQ/T4BT6VcpkJPSXhbSub7L/+HZ+QQ=;
 b=knwxl/uauueWdf/Wb4N+YecGv5fl9UAEuPuIGDNc5h35CIvNr2uZPLQD0MUNdf6iX1
 HcKIjNQ/gVp549aAiJXJABmVF1tjXxSA07WdN7imqRhYwEoS+X/w1PH0eXrVQyHgjo8x
 u61xizCavQ5inPb6KiUeTZqRqhgUKdgbrzQW2UZK9mIbJJNMwmcSC2L61WJZ2YzfkDRm
 TkTr3Zbtuo4OpgU1fTcmys5K0jaH+gNGYsTpLnovSOZJs8285t5Kzi9/rQoCwMx8LBik
 yasJJx0AT0CV/NO/rlgPV6Hc+ODz5zSN/QFdjnlpX5sUrzgIA/eMEoDZfKtuS15BDGLe
 lXKQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1718778842; x=1719383642;
 h=to:references:message-id:content-transfer-encoding:cc:date
 :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=7add5RfcfoRD6kQ/T4BT6VcpkJPSXhbSub7L/+HZ+QQ=;
 b=cZ5/RWnBkEwu6NNXXzEaDP1E4+7ApAIxFbSyne1XilQi/l7qKlHao4V5AACrpDygWB
 4TdOZBwMXYc7fQcV+G21kIhndNVvV5QeFs+0NPYLiGwn8dpFrEOn/XCUsds7/OmhSKYw
 xZvjt2q/XWfc20j4K2xmRuc5nTwL8vB2aa2HOmKrgdB0iUxF+1Jc5hAhVVBO4tB4d1Bd
 OaxFG8zpd3YK9VuI6Wv4i6rRa0PTcBf4vPvZYE7pQ5hB4zw2Sm59iKCjhCFUm7Um+gcp
 Zl3WH5s2BaXuE7hnqkSkpV8nPc4orWbgBAz4WRENulblKLAQe4WaE8BbIk+cr0ZeeWZ2
 eTcQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCV3D6Dhp2GPGYHLhhT4I0/oyc5t2N0gtgC5TKDH57CwEBtZUl0oHYqzmNM4FkwEWrc3bBrHSxRNoc4iAkm80xUs9+3wqcw=
X-Gm-Message-State: AOJu0Yy+TByK7iE3ZbgMYzYli2NWklMVZCsibtCW9x8cXF1/KDD/eO4D
 Ykra5oaF4Sq3R2eKTzEarc8u4OYoYI7eTfP3cY8X+Ifd+tulI2GIIM+Rgw==
X-Google-Smtp-Source: AGHT+IFJhtxuDeUZdaD97RE/U2Yoe+VaSWAp0B4+PfwixEMP+DTEhEPrCkFel3zfsgoPOamZ2S/y2g==
X-Received: by 2002:a05:6a00:198c:b0:705:a0de:6155 with SMTP id
 d2e1a72fcca58-70629cd0c28mr1942502b3a.25.1718778842331; 
 Tue, 18 Jun 2024 23:34:02 -0700 (PDT)
Received: from smtpclient.apple ([2601:646:8f81:6120:2dbd:5c5a:649f:1b8a])
 by smtp.gmail.com with ESMTPSA id
 d2e1a72fcca58-705ccb4158fsm9953506b3a.108.2024.06.18.23.34.01
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Tue, 18 Jun 2024 23:34:01 -0700 (PDT)
Content-Type: text/plain;
	charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\))
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
From: Yuan Fu <casouri@HIDDEN>
In-Reply-To: <86v829sc18.fsf@HIDDEN>
Date: Tue, 18 Jun 2024 23:33:50 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <EAC61EBC-C162-4F62-A3E3-1243ADDAACE0@HIDDEN>
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN> <86v829sc18.fsf@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3774.600.62)
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 71562
Cc: Dmitry Gutov <dmitry@HIDDEN>, 71562 <at> debbugs.gnu.org, sb@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)



> On Jun 15, 2024, at 10:16=E2=80=AFPM, Eli Zaretskii <eliz@HIDDEN> =
wrote:
>=20
>> Date: Sat, 15 Jun 2024 22:30:25 +0300
>> Cc: sb@HIDDEN, 71562 <at> debbugs.gnu.org
>> From: Dmitry Gutov <dmitry@HIDDEN>
>>=20
>> On 15/06/2024 09:31, Eli Zaretskii wrote:
>>> We could look for directories names 'src' which have either parser.c
>>> or parser.cc, and take it from there, instead of hard-coding the =
place
>>> of the 'src' directory in the hierarchy.
>>=20
>> In the present case we have two problems:
>>=20
>> * https://github.com/tree-sitter/tree-sitter-typescript/ contains two=20=

>> different files called parser.c in two different subdirectories (in=20=

>> typescript/src and tsx/src).
>>=20
>> * The repository for the 'tsx' grammar does not match the common =
scheme=20
>> - instead it's the same repository as for 'typescript'.
>=20
> 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.

treesit-install-language-grammar works fine if you pass =
=E2=80=9Ctypescript/src=E2=80=9D instead of the default =E2=80=9Csrc=E2=80=
=9D to it, for the third argument, so I don=E2=80=99t think there=E2=80=99=
s anything to fix here. Installing multiple things =E2=80=9Csmartly=E2=80=9D=
 might be more confusing and error-prone than helpful, IMO.

For reference, the recipe for typescript is

(typescript "https://github.com/tree-sitter/tree-sitter-typescript=E2=80=9D=
 nil "typescript/src" nil nil)

Yuan=




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 16 Jun 2024 05:18:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jun 16 01:18:28 2024
Received: from localhost ([127.0.0.1]:52462 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sIiHb-0007Fi-Iv
	for submit <at> debbugs.gnu.org; Sun, 16 Jun 2024 01:18:27 -0400
Received: from eggs.gnu.org ([209.51.188.92]:60172)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sIiHZ-0007FI-NJ
 for 71562 <at> debbugs.gnu.org; Sun, 16 Jun 2024 01:18:26 -0400
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 <eliz@HIDDEN>)
 id 1sIiFL-0000PQ-1i; Sun, 16 Jun 2024 01:16: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=A9gDl7vtWpk7X7iE++NUb4LPLJFi2lBOA4kEbiNyeT8=; b=TF6PZD9CUMdT
 VkWpfQNL4+Bo8rFSfFtJKcE4yeZUupfmsC/Mo+nmb3ObBy1eh1o64V7jw6Ah7A/QzzBUdu5JbCOFl
 sqSI37bk6RCu328lUCSzxpZOMHbPn/PIOvZxn5bNw2NRtD4keJM8yQWBYBabmSNvNBTCB01KzWMdZ
 eaI9WvPRVFBDH+tW1g9kEFbk3OrSRWXgZ3c8G8opWFT6ygIw2w9EZ4pKxsvYVBuieeDn8CpEjs8Q/
 xgPFuxFKLnm6RBxjh6A5APTvnKA42tQ9M2PvZxWcck9eOfOLu6tYc7csZlY6yuuQ0tFQf7kP9CvJ+
 xN43RDQzW2Q9KpM66YmxMw==;
Date: Sun, 16 Jun 2024 08:16:03 +0300
Message-Id: <86v829sc18.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN> (message from
 Dmitry Gutov on Sat, 15 Jun 2024 22:30:25 +0300)
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
 <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71562
Cc: casouri@HIDDEN, sb@HIDDEN, 71562 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Sat, 15 Jun 2024 22:30:25 +0300
> Cc: sb@HIDDEN, 71562 <at> debbugs.gnu.org
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> On 15/06/2024 09:31, Eli Zaretskii wrote:
> > We could look for directories names 'src' which have either parser.c
> > or parser.cc, and take it from there, instead of hard-coding the place
> > of the 'src' directory in the hierarchy.
> 
> In the present case we have two problems:
> 
> * https://github.com/tree-sitter/tree-sitter-typescript/ contains two 
> different files called parser.c in two different subdirectories (in 
> typescript/src and tsx/src).
> 
> * The repository for the 'tsx' grammar does not match the common scheme 
> - instead it's the same repository as for 'typescript'.

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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 15 Jun 2024 19:36:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 15 15:36:29 2024
Received: from localhost ([127.0.0.1]:44020 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sIZCP-0004Wq-JA
	for submit <at> debbugs.gnu.org; Sat, 15 Jun 2024 15:36:29 -0400
Received: from wfout5-smtp.messagingengine.com ([64.147.123.148]:44501)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1sIZCN-0004WQ-EH
 for 71562 <at> debbugs.gnu.org; Sat, 15 Jun 2024 15:36:28 -0400
Received: from compute6.internal (compute6.nyi.internal [10.202.2.47])
 by mailfout.west.internal (Postfix) with ESMTP id 2FC4B1C000D6;
 Sat, 15 Jun 2024 15:30:29 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute6.internal (MEProxy); Sat, 15 Jun 2024 15:30:29 -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=1718479828;
 x=1718566228; bh=6y86stzfPucyiCrUJPC0bNnIdYU23lZ0qIEifqJ6f60=; b=
 OsZVKI+n1k6qAzGLwLKTw6K38BODqJzdWHDDUXpQLrSCErzd9IZ8N7kPTJVnmB7l
 dOvQjinyRWBu2f/A1tOVmRljA5eOmwlPWcmtSWpcKbWx2AS6ojr6/LQjk034BpjI
 WSzRgtHqfEaNX4OY118vFunuP+TJV/QMeHM5sM/vZ8siPjjJXEd/h95+a3+ub+cf
 SyN3QcrJ8aLvi3xGalDjvqDstUXBnUIRHFGBQv1TFD9S8UBKV7crQmhR+fM8n1G6
 1DBBhpKPdtSxXX++uLLTJ9BQRUSlxxaUYha7jThYnpfdFSOxJQP8swRp0ho1bIx4
 yzvCavQYrBvU5ns2///LoQ==
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=fm1; t=1718479828; x=
 1718566228; bh=6y86stzfPucyiCrUJPC0bNnIdYU23lZ0qIEifqJ6f60=; b=T
 y29dpO8ktPuzearkkRapvrrJW95ULalnadvAavoX2lQhZknnf0FJRmdEH/j6pWQX
 kW73B3I4nEBgwjpZ2H1eodgqfefpwH09XXCrOqBuB4mzM8qalDqiAuhvk60in9uN
 E0qmR1H+yQjGGiVNE0O+zfuZJ9vyazzem1IER1bvhkhik1ZhzTAMJVohDNtlldUr
 IPFJx1JywTeSMSHIEg/T41SbmakvhbwM0QKfA1jKTQOBAUnWoVZKTTPiIZhbehu2
 5oQn6xqUfHUxF4q+QHgfXxSIk43zPHhPp8QN5deWGr3GpncNCl9DJ3cTE8N8HLWp
 iaataOtR0Ov0tHNqUTGzg==
X-ME-Sender: <xms:1OttZqA2yt9s8xlkn-nYxLOZppl97FlLgJ53kqDgVWhGDtpd0XiGYA>
 <xme:1OttZkgeo1nf8gAQEBtWNLUiT0f0rfNbGgRo9Z6MzxPSxNx-54sNFi4hVpAcJTJXb
 -VIDEJMNaWBr-JioUE>
X-ME-Received: <xmr:1OttZtnsaAnfvMps3uQNUBTRJO3fjz--EvxCzS_0xRNXUGcTihq--49oQg07ey3JU-Bx>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvuddgudefkecutefuodetggdotefrod
 ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh
 necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd
 enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhm
 ihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrg
 htthgvrhhnpeefkeehueetieegveeltdejfeehfeehheejheekuefhfeefleevffelheef
 hfdvveenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivg
 eptdenucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:1OttZow6ZxFP_GS1XKE97FjWq-8yX8g9Yeq-BaHFrVEFaOVrRXaq4Q>
 <xmx:1OttZvR54cROHKKyNr9wff350ktcpeRhlsBPnRCJCLHtjBdbwylMig>
 <xmx:1OttZjbBaO0tY5eTeO_kEdMqiVbaH2lgHKwFyaZ4q0EeFXlX0RCAtw>
 <xmx:1OttZoRZlpcquFPXaOq32wUayFgrYTppI9MlSwOWUYP_P50Sl4HdzQ>
 <xmx:1OttZtMUAC2tIRdxby7LZDa6Sf7sZWo_jba2FCVtIIFO8WKzM-lAu_kU>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 15 Jun 2024 15:30:27 -0400 (EDT)
Message-ID: <93d76485-2563-45e3-890d-d5bfc56ff4b7@HIDDEN>
Date: Sat, 15 Jun 2024 22:30:25 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
To: Eli Zaretskii <eliz@HIDDEN>, Yuan Fu <casouri@HIDDEN>
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> <86msnmwwbk.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <86msnmwwbk.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 71562
Cc: 71562 <at> debbugs.gnu.org, sb@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 15/06/2024 09:31, Eli Zaretskii wrote:
> We could look for directories names 'src' which have either parser.c
> or parser.cc, and take it from there, instead of hard-coding the place
> of the 'src' directory in the hierarchy.

In the present case we have two problems:

* https://github.com/tree-sitter/tree-sitter-typescript/ contains two 
different files called parser.c in two different subdirectories (in 
typescript/src and tsx/src).

* The repository for the 'tsx' grammar does not match the common scheme 
- instead it's the same repository as for 'typescript'.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 15 Jun 2024 06:34:20 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jun 15 02:34:20 2024
Received: from localhost ([127.0.0.1]:46350 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sIMzU-0007qI-6U
	for submit <at> debbugs.gnu.org; Sat, 15 Jun 2024 02:34:20 -0400
Received: from eggs.gnu.org ([209.51.188.92]:41874)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sIMzS-0007pu-Ih
 for 71562 <at> debbugs.gnu.org; Sat, 15 Jun 2024 02:34:19 -0400
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 <eliz@HIDDEN>)
 id 1sIMxF-0000x3-HV; Sat, 15 Jun 2024 02:32:01 -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=glG3f3YLKdZxiWIq//kOZ9Gr7PKve5S+RsfyOhcjejM=; b=ZYt7toTbOIcDPasIgC5u
 nMRZ+hXIH3ot0KcOM3utyfyGd4pWjD/X4OdooIxjd94VVefrS+jeExErJyQqHA05sjvXkcZ8CqBTf
 eussLtMKfi0ScT9ReEjeT0awpCmEzK+VZUU8a4e5v2hay0JghW6blKUBO+ACZAM5IFQll2pAi83zG
 kHAnmEOJNO0wiN3YkPdDhM/Qgqel8ayq8E39ayOCgAziNwE55IQGwPDljmH7C4Iijrpn0BH1AW+Mi
 58qvde2Pt8jkxh4WIicffJsq+vkhTxbn7Kt/W/0TyL2tzM6yrJYacHdMdGKXzaDaDbAxdI3o5RgVP
 TjOBMOpsRBB8Og==;
Date: Sat, 15 Jun 2024 09:31:59 +0300
Message-Id: <86msnmwwbk.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>, Yuan Fu <casouri@HIDDEN>
In-Reply-To: <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN> (message from
 Dmitry Gutov on Sat, 15 Jun 2024 01:18:50 +0300)
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
References: <87v82bcrrm.fsf@HIDDEN>
 <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 71562
Cc: 71562 <at> debbugs.gnu.org, sb@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Sat, 15 Jun 2024 01:18:50 +0300
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> On 14/06/2024 21:18, Steinar Bang wrote:
> > Platform: emacs 29.3 from backports debian package (1:29.3+1-3~bpo12+1)
> >            debian 12.5 "bookworm" (current stable) on amd64
> > 
> > The 'M-x treesit-install-language-grammar RET typescript RET' fails
> > with:
> > 
> >   ⛔ Warning (treesit): Error encountered when installing language
> > grammar: (file-missing Setting current directory No such file or
> > directory /tmp/treesit-workdirN2u4XF/repo/src)
> > 
> > I used defaults on all questions because I had no idea what else to put
> > there.
> > 
> > I think the reason the command fails is that the repository
> >   https://github.com/tree-sitter/tree-sitter-typescript
> > actually contains two tree-sitter parsers for typescript and tsx:
> >   https://github.com/tree-sitter/tree-sitter-typescript/tree/master/typescript
> >   https://github.com/tree-sitter/tree-sitter-typescript/tree/master/tsx
> 
> FWIW, this is more or less intended, since we don't store the exact urls 
> for the grammars (in the default settings), and just infer them 
> according to the common scheme.
> 
> But we could change that in some cases, and perhaps typescript is 
> popular enough for us to do that.

We could look for directories names 'src' which have either parser.c
or parser.cc, and take it from there, instead of hard-coding the place
of the 'src' directory in the hierarchy.

I've added Yuan to the discussion.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at 71562 <at> debbugs.gnu.org:


Received: (at 71562) by debbugs.gnu.org; 14 Jun 2024 22:19:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 14 18:19:06 2024
Received: from localhost ([127.0.0.1]:48819 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sIFGE-0004p9-95
	for submit <at> debbugs.gnu.org; Fri, 14 Jun 2024 18:19:06 -0400
Received: from wfhigh1-smtp.messagingengine.com ([64.147.123.152]:52051)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dmitry@HIDDEN>) id 1sIFGA-0004oM-EI
 for 71562 <at> debbugs.gnu.org; Fri, 14 Jun 2024 18:19:04 -0400
Received: from compute2.internal (compute2.nyi.internal [10.202.2.46])
 by mailfhigh.west.internal (Postfix) with ESMTP id 21C0218000AC;
 Fri, 14 Jun 2024 18:18:54 -0400 (EDT)
Received: from mailfrontend1 ([10.202.2.162])
 by compute2.internal (MEProxy); Fri, 14 Jun 2024 18:18:54 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=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=1718403533;
 x=1718489933; bh=hj+/ufle/sGSAsaIafy7LP/xbtbcdL3DijMkQErGuSc=; b=
 a/qVA9GXK0a1Hr5VKvOKtzLCHCap0ZEXAc+iEWUR8VxDJG4G7yvBppYOLmxxlkfH
 Z7or3dEhCLXvmt9OTMfWDFb6WLVeQfgnjGuCMnxlLOftOycIC8g4CEt3sdrB2LxU
 qZPL+Ids2qOVI5R97ZyVSqSjvG4F1SeJ9WWEJ3dxqzmxH17uMe5UDYnuziDKFmND
 oFPoos9t4SDWXZvxNF2GJTR0oNgVULa9j63Q84zIdtQWqFTxGxzTDuAclYG5db3K
 mxQ2v6qrorIP2jeoVQ26FaMXJ8tg5HUiNRuITl6W80nIs5d8TMo0MbBNf0r9WVyC
 oo+USBfoVgsuubgoTSUCMw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=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=fm1; t=1718403533; x=
 1718489933; bh=hj+/ufle/sGSAsaIafy7LP/xbtbcdL3DijMkQErGuSc=; b=I
 zsHdSNMV27ooYKNKWMv1loOAh4flp9fdUBjJvgUshuYx6/5EsRu1pB8rKHPIjbag
 /8Ewq6TgTriNyWVJR7fys5sxi+acj8ev84YnctCVf8SO7h5cC4jHzK0CCFIZ/sBW
 Q264gMgqtzfJ+ismmE5Tnk2XjpT5NRCtF3KI9ep7e07O0yVxypRTqQut8Z3sGePF
 WIRapIH9V4SJ8ydr6ADSk0OSvZ79UH/YgjJJ+xFLTncifx7PiZbsZlpxfMDfNWhM
 0irUTdUpA1p9S/WdbiMhXlQMdqchn0zq3TuPSyKDNQYJIm0u4BZ0Q15+fmJg3TaW
 HgCo3mrWH2gjk83WeGFfA==
X-ME-Sender: <xms:zcFsZoy-XG2tuhKkQ5wRlr66r2ANRp3cNnpgjj4rCOi4kNve0LgIDQ>
 <xme:zcFsZsQFtTyjbvJyMrMzAp09iDOO8pvjZqqHzeB5t8srwGWRxIdslcpqizv9RyptT
 niIz691UXWzD6Awy-c>
X-ME-Received: <xmr:zcFsZqXkUbwOrNjw2NUj2uI5K_gdTyV4-_uZWwC7uvXF3m62NANNMM__tjyCgbVbV6YE>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfedvtddgtdekucetufdoteggodetrfdotf
 fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen
 uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne
 cujfgurhepkfffgggfuffvfhfhjggtgfesthekredttddvjeenucfhrhhomhepffhmihht
 rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth
 gvrhhnpeehkeeftdevteekheehffektdffveefffeileelhffggeeuhfdtkeefueeviedu
 gfenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd
 enucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghv
X-ME-Proxy: <xmx:zcFsZmgESuV3rzLhxFRA229E-QtmcOONhh1eJjWB8RQRCDpGJ_8pYg>
 <xmx:zcFsZqAUnZzXjvfsjZIKUtuhC25fXkPRXGJ2sjij0LaknOdEE9b4Sg>
 <xmx:zcFsZnIk0BOzdDokxTV0hUpXgI1gqObJoapKZ1e311u7EQ4whfPE2w>
 <xmx:zcFsZhCCE1hSPCk1RVTg3LT7UYw0IIL9irMN9-RWp5Mk24gf5MTL6Q>
 <xmx:zcFsZtMV-tdQwMYvAdKS4zbojScC-oi_jqk9ztwyo6_8i4Pr_15ggNTn>
Feedback-ID: i0e71465a:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 14 Jun 2024 18:18:52 -0400 (EDT)
Message-ID: <47399af2-6982-4ce1-ad50-db426624edae@HIDDEN>
Date: Sat, 15 Jun 2024 01:18:50 +0300
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#71562: treesit-install-language-grammar fails to install
 typescript
To: Steinar Bang <sb@HIDDEN>, 71562 <at> debbugs.gnu.org
References: <87v82bcrrm.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <87v82bcrrm.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 71562
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

On 14/06/2024 21:18, Steinar Bang wrote:
> Platform: emacs 29.3 from backports debian package (1:29.3+1-3~bpo12+1)
>            debian 12.5 "bookworm" (current stable) on amd64
> 
> The 'M-x treesit-install-language-grammar RET typescript RET' fails
> with:
> 
>   ⛔ Warning (treesit): Error encountered when installing language
> grammar: (file-missing Setting current directory No such file or
> directory /tmp/treesit-workdirN2u4XF/repo/src)
> 
> I used defaults on all questions because I had no idea what else to put
> there.
> 
> I think the reason the command fails is that the repository
>   https://github.com/tree-sitter/tree-sitter-typescript
> actually contains two tree-sitter parsers for typescript and tsx:
>   https://github.com/tree-sitter/tree-sitter-typescript/tree/master/typescript
>   https://github.com/tree-sitter/tree-sitter-typescript/tree/master/tsx

FWIW, this is more or less intended, since we don't store the exact urls 
for the grammars (in the default settings), and just infer them 
according to the common scheme.

But we could change that in some cases, and perhaps typescript is 
popular enough for us to do that.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Jun 2024 18:18:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jun 14 14:18:32 2024
Received: from localhost ([127.0.0.1]:40922 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sIBVQ-00052X-64
	for submit <at> debbugs.gnu.org; Fri, 14 Jun 2024 14:18:32 -0400
Received: from lists.gnu.org ([209.51.188.17]:58432)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <sb@HIDDEN>) id 1sIBVO-00052Q-IO
 for submit <at> debbugs.gnu.org; Fri, 14 Jun 2024 14:18:31 -0400
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 <sb@HIDDEN>) id 1sIBVN-0006Nh-Lf
 for bug-gnu-emacs@HIDDEN; Fri, 14 Jun 2024 14:18:29 -0400
Received: from schwantz.bang.priv.no ([2a01:4f9:c011:82fd::1])
 by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from <sb@HIDDEN>)
 id 1sIBVL-0006dz-Hq
 for bug-gnu-emacs@HIDDEN; Fri, 14 Jun 2024 14:18:29 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dod.no; s=sb;
 t=1718389103; bh=qPvoMMfPvm8dTPnnqmRP1PyTLZDumVIQP3NT9kYLIqo=;
 h=From:To:Subject:Date:From;
 b=t2WR4EnccC6hFGx0EnG8NkuyL/Nc2vwJAS1gNmA2FfSRmHRSDWwmKeSnocLuEbV8g
 O271lIHIb4BZY/ySgdPpEWuev2l6M08BCYwE3wANAoDl3Z5+F88BSquPeQTzteBALC
 gN+VnB2ahsdGasDxF+zH8tsDK8KjwAPTqwClE6r0=
Received: from marquez (unknown [84.210.69.52])
 by schwantz.bang.priv.no (Postfix) with ESMTPSA id 8A0EF987;
 Fri, 14 Jun 2024 18:18:23 +0000 (UTC)
From: Steinar Bang <sb@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: treesit-install-language-grammar fails to install typescript
Date: Fri, 14 Jun 2024 20:18:21 +0200
Message-ID: <87v82bcrrm.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: none client-ip=2a01:4f9:c011:82fd::1; envelope-from=sb@HIDDEN;
 helo=schwantz.bang.priv.no
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Platform: emacs 29.3 from backports debian package (1:29.3+1-3~bpo12+1)
          debian 12.5 "bookworm" (current stable) on amd64

The 'M-x treesit-install-language-grammar RET typescript RET' fails with:

 =E2=9B=94 Warning (treesit): Error encountered when installing language gr=
ammar: (file-missing Setting current directory No such file or directory /t=
mp/treesit-workdirN2u4XF/repo/src)

I used defaults on all questions because I had no idea what else to put
there.

I think the reason the command fails is that the repository
 https://github.com/tree-sitter/tree-sitter-typescript
actually contains two tree-sitter parsers for typescript and tsx:
 https://github.com/tree-sitter/tree-sitter-typescript/tree/master/typescri=
pt
 https://github.com/tree-sitter/tree-sitter-typescript/tree/master/tsx




Acknowledgement sent to Steinar Bang <sb@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#71562; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 22 Jun 2024 12:45:01 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.