GNU bug report logs - #61849
29.0.60; Unable to use treesit-install-language-grammar because repo doesn't have parser.c

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: Misha Zharov <mishazharov1@HIDDEN>; dated Mon, 27 Feb 2023 19:48:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 61849) by debbugs.gnu.org; 31 Mar 2025 16:35:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 31 12:35:52 2025
Received: from localhost ([127.0.0.1]:42620 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tzI75-0001sg-Dk
	for submit <at> debbugs.gnu.org; Mon, 31 Mar 2025 12:35:52 -0400
Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:46338)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <pkryger@HIDDEN>) id 1tzI72-0001rD-Rf
 for 61849 <at> debbugs.gnu.org; Mon, 31 Mar 2025 12:35:49 -0400
Received: by mail-wr1-x432.google.com with SMTP id
 ffacd0b85a97d-3965c995151so2526779f8f.1
 for <61849 <at> debbugs.gnu.org>; Mon, 31 Mar 2025 09:35:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1743438942; x=1744043742; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:subject:cc:to:from
 :message-id:date:from:to:cc:subject:date:message-id:reply-to;
 bh=UJZUgIIGN7inzgO+HTkAYvFhZBM9gL+vP6bmb8KyzYM=;
 b=RJBNI+3gwDFICZx6oGT1Df420kn0YIrG8nsvd5L1q8Lk7jpCcHURut3bvetwfw98SJ
 7nqHhyowK4yXMy7Q2jwZkSIdLDbKNR9KMklTvJlMRuCLMfrEDjieON4qDszW+JEHYS1W
 Sw+qV3sAFYTDnx8+DrNmeDqEoHmkAtx0c+XNmPktygXfPRctI2pjY4HhyoERNAQGZdIa
 xWQtdstqfPdnhC2s1CROfMCICHe0dxkLhBHz+kXvaK7GWwbU5bEltb5H6Ep5NZnMBfKF
 6XxP3YRM2O6lZuNu4pdpxTJHft1zkbj+aw5JNM0+mq+bNhpyQwy8+GjI6oJFfIyhdvb1
 eCkg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1743438942; x=1744043742;
 h=content-transfer-encoding:mime-version:subject:cc:to:from
 :message-id:date:x-gm-message-state:from:to:cc:subject:date
 :message-id:reply-to;
 bh=UJZUgIIGN7inzgO+HTkAYvFhZBM9gL+vP6bmb8KyzYM=;
 b=h1jFvvmq2QhosnlHUDDoJh+qLk9hUtZ0/NzEPOScBeWUKPOk/3VIuheV2i32pSqoX5
 ZPyNbOZR7wmHlageyysD92IEh6F+Jkqv2qhP7c+JgGFvOugRz7MV23YOoyfldRVzox9j
 SpYbhBuJh3P0lh1JU01reP8ZHTpV4h4j+qR4LCjiIw4wzl4BNU55K8S8J4Ng3OTavLMJ
 7Nkybos20Ks+0ibJp8EIQi8Fyxp77r1x+QZUo1wSD0qlcmcPsiRmasMgVr1yJtR9RDp3
 FUGpT2gnkBkAZtgB2SNadPxEl2q4TSu7Tc+rFr6ubwETSBvNhwvjP79Q18vyV6neS/v3
 8lDQ==
X-Gm-Message-State: AOJu0Yw49LONkTrjajrri4KV3U4XdpTLCJ7nx/7sgbizBguSM4jahtIp
 MA/Z5h5KtxIwc36BwPwfxqZIm51XmCLAf1HTsCOovNAmRd7N1ywl
X-Gm-Gg: ASbGnct/Vs6FSm9bUXXnDtfBMoR1qrpL/JSaXg343v8DUvNQMgXviAjn/o5jnc9iKvz
 Utk8vQ2FSP8Oz5ztjB/74P2wDLkHp5DjzrZf55N91X6Q0ikZVpzn3uJFQ/htE6gZ4fW9UmkzP3z
 aliTO0YWBbsKztVHvEM7zVsF3sTaU/LsQOof3XvEsQU7KzxN2tRsTEwJ8dR1lRhlVITTITzNWS0
 BtiAL42ND+WziUTz2SoAMVHs1tvFRWgfw2HFr0+WEI8tqf+/drNbVnOn0IzrS5aIYNru0d9fgbD
 fMRBSCrQLiemPcpVkoL87X8LabFr0W4raO8o8uC/wgaVZWvy5KiUFAYW/D85A3AolFme9OAzO7S
 pgqRaERaSFKY=
X-Google-Smtp-Source: AGHT+IGIlzdh+hAOCPuRPmU+lu9Vzm6Mms9SI4zJ6oa9YUOKBGbDAhXhQ/GurubMdU8nSmTr1JpG9w==
X-Received: by 2002:a5d:5f4d:0:b0:391:4231:414 with SMTP id
 ffacd0b85a97d-39c12118c21mr8227196f8f.40.1743438942349; 
 Mon, 31 Mar 2025 09:35:42 -0700 (PDT)
Received: from Przemyslaws-MacBook-Air.local
 ([2a00:23c4:f530:ff01:a95b:1e16:6132:ece6])
 by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-43d8fbbfebasm126205425e9.10.2025.03.31.09.35.41
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 31 Mar 2025 09:35:41 -0700 (PDT)
Date: Mon, 31 Mar 2025 17:35:40 +0100
Message-Id: <m27c45i2eb.fsf@HIDDEN>
From: =?utf-8?Q?Przemys=C5=82aw_Kryger?= <pkryger@HIDDEN>
To: 61849 <at> debbugs.gnu.org
Subject: Re: bug#61849: 29.0.60;
 Unable to use treesit-install-language-grammar because repo doesn't
 have parser.c
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: 2.1 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: Just to add another example. It seems that LaTeX grammar [1]
 maintainers made a decision to remove parser.c in
 https://github.com/latex-lsp/tree-sitter-latex/pull/114.
 And for posterity, here's a workaround I added to my configuration (sightly
 more complicated than it could be for Emacs 30, but it has been written with
 Emacs 29 in mind (the latter I still use)): 
 Content analysis details:   (2.1 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2a00:1450:4864:20:0:0:0:432 listed in]
 [list.dnswl.org]
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (pkryger[at]gmail.com)
 2.1 MALFORMED_FREEMAIL     Bad headers on message from free email
 service
X-Debbugs-Envelope-To: 61849
Cc: mishazharov1@HIDDEN, eliz@HIDDEN, casouri@HIDDEN, dgutov@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.1 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 
 Content preview:  Just to add another example. It seems that LaTeX grammar [1]
    maintainers made a decision to remove parser.c in https://github.com/latex-lsp/tree-sitter-latex/pull/114.
    And for posterity, here's a workaround I added to my configuration (sightly
    more complicated than it could be for Emacs 30, but it has been written with
    Emacs 29 in mind (the latter I still use)): 
 
 Content analysis details:   (1.1 points, 10.0 required)
 
  pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
                              no trust
                             [2a00:1450:4864:20:0:0:0:432 listed in]
                             [list.dnswl.org]
  0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 -0.0 SPF_PASS               SPF: sender matches SPF record
  0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
                             provider (pkryger[at]gmail.com)
  2.1 MALFORMED_FREEMAIL     Bad headers on message from free email
                             service
 -1.0 MAILING_LIST_MULTI     Multiple indicators imply a widely-seen list
                             manager


Just to add another example.  It seems that LaTeX grammar [1] maintainers made
a decision to remove parser.c in
https://github.com/latex-lsp/tree-sitter-latex/pull/114.

And for posterity, here's a workaround I added to my configuration (sightly
more complicated than it could be for Emacs 30, but it has been written with
Emacs 29 in mind (the latter I still use)):

(defun pk/treesit-generate-parser (&rest args)
  "Try to run \\='tree-sitter generate\\=' if there's no parser.c."
  (when-let* (((equal "parser.c" (car (last args))))
              ((not (file-exists-p (expand-file-name "parser.c"))))
              (tree-sitter (executable-find "tree-sitter"))
              (default-directory (file-name-parent-directory default-directory)))
      (message "Generating parser.c")
      (treesit--call-process-signal
       tree-sitter nil t nil "generate")))

(advice-add 'treesit--call-process-signal
            :before #'pk/treesit-generate-parser)

Perhaps similar concept could be added to the treesit-install-language-grammar:
when user provides tree-sitter executable in LANG recipe and parser.c is not
found then generate it?  Alternatively, always generate parser.c if the
tree-sitter executable is passed in the LANG recipe.  Or make it the decision
whether to generate the parser yet another parameter in the LANG recipe.

Cheers,
PK

[1] https://github.com/latex-lsp/tree-sitter-latex




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

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


Received: (at 61849) by debbugs.gnu.org; 21 Mar 2023 09:39:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 21 05:39:35 2023
Received: from localhost ([127.0.0.1]:57685 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1peYSt-00036b-0N
	for submit <at> debbugs.gnu.org; Tue, 21 Mar 2023 05:39:35 -0400
Received: from heytings.org ([95.142.160.155]:48172)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gregory@HIDDEN>) id 1peYSr-00036T-M7
 for 61849 <at> debbugs.gnu.org; Tue, 21 Mar 2023 05:39:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org;
 s=20220101; t=1679391572;
 bh=v61s7D6knQCTzGji+bhWmXvsuiawEJ8I2+JYoiNG8kM=;
 h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From;
 b=FQ2TR4S18VJ9tI3at+Lfw/gDUn3zqws1LJT9T9fANOnIf/haBQx3Qt+tx+NW8WFPM
 M1M4GZr83/pMmal/OobqPVFsZa5SXXJ9nzFn6gM1KIN0gKodbbv6FyT8UUgbonw+1w
 Gu3Rw6rlpLhVNtj+NuJKDW6BPnGFNYwQaWnw4vSzTNppCRWul2WJjJWmQaN6qcnYm1
 xwLsVVUDWIRVppG9RxvdCU0d0kjQKpXEnJBAFn5k83zt6k8lJLvAGc+zDP8POBv/Do
 +awQeSEzS2coqxpA/9ORqjaaFkWVf0xfDqhJ8n8KbFVhr6oedCiBBfF1gRTMhm8fst
 8ctPjBvjnylcw==
Date: Tue, 21 Mar 2023 09:39:31 +0000
From: Gregory Heytings <gregory@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#61849: 29.0.60; Unable to use treesit-install-language-grammar
 because repo doesn't have parser.c
In-Reply-To: <83o7om7phl.fsf@HIDDEN>
Message-ID: <08b5f766dd8da3ea4835@HIDDEN>
References: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
 <83jzzxatc2.fsf@HIDDEN> <831qm4bws5.fsf@HIDDEN> <83wn3d9onk.fsf@HIDDEN>
 <CAEzzQa_ZFCo0LG+By7JbLTyQoiXPCkAKvkWG_NndrOjMnSJo1w@HIDDEN>
 <83sfdz6x4b.fsf@HIDDEN> <5b115222-e46c-fce6-3a32-94e31980c26f@HIDDEN>
 <83r0tj6uoz.fsf@HIDDEN> <bba1972b00ac41012152@HIDDEN>
 <83o7om7phl.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset=us-ascii
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 61849
Cc: mishazharov1@HIDDEN, casouri@HIDDEN, 61849 <at> debbugs.gnu.org,
 dgutov@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 (-)


>> Generating the grammar.json files from the grammar.js files with an 
>> Emacs Lisp program would amount to implement a JavaScript interpreter 
>> in Emacs Lisp.
>
> So you are saying that generating a parser would need a JavaScript 
> interpreter as part of the generation?
>

Yes.

>
> Does tree-sitter-cli tool invoke it, then (I didn't study its sources)?
>

Yes, here: https://github.com/tree-sitter/tree-sitter/blob/master/cli/src/generate/mod.rs#L169.

>> And generating the parser.c files from the grammar.json files would 
>> amount to reimplement the generator, which is about 13500 lines of 
>> non-trivial Rust code, in Emacs Lisp.
>
> That's what I hoped someone will do, yes.  It's a non-trivial job, but 
> surely isn't impossible.  Reimplementing that in some other widely 
> available language, like Python or Perl, would also do.  Or maybe the 
> Rust front-end to GCC will become available soon enough.  Or something.
>

It's not impossible, but what would be the benefit (and/or incentive) of 
doing that?  Rust is already widely available, under a liberal licence, 
and it is also not necessary to create the parser.c file, which is 
architecture-independent, on the computer on which it is compiled.  Also 
note that generating the parser.c file can use _a lot_ of resources, e.g. 
generating the parser.c file of tree-sitter-c-sharp from the grammar.json 
file uses 40 (fourty!) GB of memory and takes several minutes.  I'll let 
you imagine what these numbers would be with an interpreted language like 
Elisp, Python or Perl.





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

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


Received: (at 61849) by debbugs.gnu.org; 21 Mar 2023 03:27:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 20 23:27:52 2023
Received: from localhost ([127.0.0.1]:57285 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1peSf9-0001AR-VE
	for submit <at> debbugs.gnu.org; Mon, 20 Mar 2023 23:27:52 -0400
Received: from eggs.gnu.org ([209.51.188.92]:58084)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1peSf6-0001AD-7G
 for 61849 <at> debbugs.gnu.org; Mon, 20 Mar 2023 23:27:50 -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 1peSf0-0003mu-49; Mon, 20 Mar 2023 23:27:42 -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=bd7JXBLyFvPosKEjKh5B7JFGFDDFXlifIys7J1uAg9M=; b=Bzedc9hlWRCk
 6H/NXUOPxKR/XhVCLNpo+bIgD3/s/Hq17qWqXAm+oV0dOOhTh3Whky+yhkL8PGP5KS2InMtVzYLfJ
 U3ftDHo2TqgwltqfivnOoiUSXEWJ/6zNfwK3SNu6EAAnkQ/scn4LWLQgqrnzLaEyesUzLFwtyDTXT
 8z9h5i4RqG8M5rdNc6hkaJhvLSPcjaEc8iw47mo4oYtJf02QS1AMd46wyREJwaDLabHXA6QBgMS3u
 hyGAPy/BxyEGo4IuCpdn0JrcSQhSR5eMuXJXVLht7h7WgE0uPx4cf4gfYg69tpxvcWzvU62kUaLCJ
 LMWS5FmYyzk8+WlNyiVxNw==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1peSez-0008D7-2n; Mon, 20 Mar 2023 23:27:41 -0400
Date: Tue, 21 Mar 2023 05:27:50 +0200
Message-Id: <83o7om7phl.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Gregory Heytings <gregory@HIDDEN>
In-Reply-To: <bba1972b00ac41012152@HIDDEN> (message from Gregory
 Heytings on Mon, 20 Mar 2023 22:01:15 +0000)
Subject: Re: bug#61849: 29.0.60; Unable to use treesit-install-language-grammar
 because repo doesn't have parser.c
References: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
 <83jzzxatc2.fsf@HIDDEN> <831qm4bws5.fsf@HIDDEN> <83wn3d9onk.fsf@HIDDEN>
 <CAEzzQa_ZFCo0LG+By7JbLTyQoiXPCkAKvkWG_NndrOjMnSJo1w@HIDDEN>
 <83sfdz6x4b.fsf@HIDDEN> <5b115222-e46c-fce6-3a32-94e31980c26f@HIDDEN>
 <83r0tj6uoz.fsf@HIDDEN> <bba1972b00ac41012152@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61849
Cc: mishazharov1@HIDDEN, casouri@HIDDEN, 61849 <at> debbugs.gnu.org,
 dgutov@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: Mon, 20 Mar 2023 22:01:15 +0000
> From: Gregory Heytings <gregory@HIDDEN>
> cc: Dmitry Gutov <dgutov@HIDDEN>, mishazharov1@HIDDEN, casouri@HIDDEN, 
>     61849 <at> debbugs.gnu.org
> 
> 
> >> Suppose the repositories remove the generated grammar files. What would 
> >> be sufficient for us to regenerate them?
> >
> > I hope someone will write a generation tool in Emacs Lisp.
> >
> 
> That can't possibly happen, IMO.  Generating the grammar.json files from 
> the grammar.js files with an Emacs Lisp program would amount to implement 
> a JavaScript interpreter in Emacs Lisp.

So you are saying that generating a parser would need a JavaScript
interpreter as part of the generation?  Does tree-sitter-cli tool
invoke it, then (I didn't study its sources)?

> And generating the parser.c files from the grammar.json files would
> amount to reimplement the generator, which is about 13500 lines of
> non-trivial Rust code, in Emacs Lisp.

That's what I hoped someone will do, yes.  It's a non-trivial job, but
surely isn't impossible.  Reimplementing that in some other widely
available language, like Python or Perl, would also do.  Or maybe the
Rust front-end to GCC will become available soon enough.  Or something.




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

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


Received: (at 61849) by debbugs.gnu.org; 20 Mar 2023 22:01:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 20 18:01:19 2023
Received: from localhost ([127.0.0.1]:56953 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1peNZ9-00073O-GC
	for submit <at> debbugs.gnu.org; Mon, 20 Mar 2023 18:01:19 -0400
Received: from heytings.org ([95.142.160.155]:47586)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <gregory@HIDDEN>) id 1peNZ7-00073G-Ut
 for 61849 <at> debbugs.gnu.org; Mon, 20 Mar 2023 18:01:18 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org;
 s=20220101; t=1679349676;
 bh=XXbAjj7E+z0ukAp63DbcRu0MKyQmninhgygBVZ0K7qY=;
 h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From;
 b=ITTqlhdQjm/EPK0wGWfLAt5hcrXWufnpppQgdkUVJqKBOYM0Eww642SffQ0YLgqA/
 kUhV5PhDDHtTSxYgxDPctOpy5ca36H7h/ANZjkpAJHEH5t246hHHhyJ1/+QXsjWXLu
 GIwYy4Jm6ksTIFgvSj4cJM7fSC5VJQVcTmOqp0IlnZ+omHdKBayzcBMlDufWUPCnRY
 uLT9dES0EEKIixU9xfMzk/abDb2dyH2gN+MXzCW4KvJRg8nfHkf/lusN9SEMmaPQQ8
 yG2NxkXmg40MSsbOaq/ZzEXLSkuHRhset69VMHXwqF9Ou4MQCl95KaQGVUWoQyYXwB
 Dbs0JlyWJQdgw==
Date: Mon, 20 Mar 2023 22:01:15 +0000
From: Gregory Heytings <gregory@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#61849: 29.0.60; Unable to use treesit-install-language-grammar
 because repo doesn't have parser.c
In-Reply-To: <83r0tj6uoz.fsf@HIDDEN>
Message-ID: <bba1972b00ac41012152@HIDDEN>
References: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
 <83jzzxatc2.fsf@HIDDEN> <831qm4bws5.fsf@HIDDEN> <83wn3d9onk.fsf@HIDDEN>
 <CAEzzQa_ZFCo0LG+By7JbLTyQoiXPCkAKvkWG_NndrOjMnSJo1w@HIDDEN>
 <83sfdz6x4b.fsf@HIDDEN> <5b115222-e46c-fce6-3a32-94e31980c26f@HIDDEN>
 <83r0tj6uoz.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; format=flowed; charset=us-ascii
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 61849
Cc: mishazharov1@HIDDEN, casouri@HIDDEN, 61849 <at> debbugs.gnu.org,
 Dmitry Gutov <dgutov@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 (-)


>> Suppose the repositories remove the generated grammar files. What would 
>> be sufficient for us to regenerate them?
>
> I hope someone will write a generation tool in Emacs Lisp.
>

That can't possibly happen, IMO.  Generating the grammar.json files from 
the grammar.js files with an Emacs Lisp program would amount to implement 
a JavaScript interpreter in Emacs Lisp.  And generating the parser.c files 
from the grammar.json files would amount to reimplement the generator, 
which is about 13500 lines of non-trivial Rust code, in Emacs Lisp.





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

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


Received: (at 61849) by debbugs.gnu.org; 20 Mar 2023 20:20:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 20 16:20:44 2023
Received: from localhost ([127.0.0.1]:56876 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1peLzn-0004TT-QK
	for submit <at> debbugs.gnu.org; Mon, 20 Mar 2023 16:20:44 -0400
Received: from eggs.gnu.org ([209.51.188.92]:56338)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1peLzk-0004TD-Rt
 for 61849 <at> debbugs.gnu.org; Mon, 20 Mar 2023 16:20:41 -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 1peLzf-0000ir-5e; Mon, 20 Mar 2023 16:20:35 -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=GK5dXfuK06DFxh7L8uxqQBq2OpeqDiEpWzMfa9GLPGA=; b=qMrWLkle4axn
 ITMiB+GhEIPTxMNbLz3wBnaPceS8Grsgn3IICzuZUlaeDLY3fzRKt5lA6j9eT09PX+0TzwGWCS6Y2
 vpOmkJSQM40JGr/tzVIjjFIp2h3H8uc4f0VaO7Z+YLuvLge1sf7FKWBpryCwZAYkmYiPj2mCXCpSL
 ayuH5syqAVcwyT7gBIGRR60VFZ80eKWVuTQQereGwC/JN64jSszuiFhO3HJi9mjZE9UpoAY12Ho8q
 VoPWpnXwPPqPVb9bvY7IsObpBe/MTWlaq+CPPzOfS4SmvxgX5Er+kwLNkZW4oql3yk+1GVWpXaclb
 qriTfzCHwu44HdtSEu4VZg==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1peLze-0007Zd-Ir; Mon, 20 Mar 2023 16:20:34 -0400
Date: Mon, 20 Mar 2023 22:20:44 +0200
Message-Id: <83r0tj6uoz.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <5b115222-e46c-fce6-3a32-94e31980c26f@HIDDEN> (message from
 Dmitry Gutov on Mon, 20 Mar 2023 22:04:41 +0200)
Subject: Re: bug#61849: 29.0.60; Unable to use
 treesit-install-language-grammar because repo doesn't have parser.c
References: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
 <83jzzxatc2.fsf@HIDDEN> <831qm4bws5.fsf@HIDDEN> <83wn3d9onk.fsf@HIDDEN>
 <CAEzzQa_ZFCo0LG+By7JbLTyQoiXPCkAKvkWG_NndrOjMnSJo1w@HIDDEN>
 <83sfdz6x4b.fsf@HIDDEN> <5b115222-e46c-fce6-3a32-94e31980c26f@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61849
Cc: mishazharov1@HIDDEN, casouri@HIDDEN, 61849 <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: Mon, 20 Mar 2023 22:04:41 +0200
> Cc: casouri@HIDDEN, 61849 <at> debbugs.gnu.org
> From: Dmitry Gutov <dgutov@HIDDEN>
> 
> Suppose the repositories remove the generated grammar files. What would 
> be sufficient for us to regenerate them?

I hope someone will write a generation tool in Emacs Lisp.




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

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


Received: (at 61849) by debbugs.gnu.org; 20 Mar 2023 20:04:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 20 16:04:51 2023
Received: from localhost ([127.0.0.1]:56860 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1peLkR-00044p-G6
	for submit <at> debbugs.gnu.org; Mon, 20 Mar 2023 16:04:51 -0400
Received: from mail-wr1-f52.google.com ([209.85.221.52]:44941)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <raaahh@HIDDEN>) id 1peLkQ-00044c-Ip
 for 61849 <at> debbugs.gnu.org; Mon, 20 Mar 2023 16:04:51 -0400
Received: by mail-wr1-f52.google.com with SMTP id d17so3158540wrb.11
 for <61849 <at> debbugs.gnu.org>; Mon, 20 Mar 2023 13:04:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1679342684;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:from:to:cc:subject:date:message-id:reply-to;
 bh=Ss+7nbUkZDz+jxAvf/NZMFI6aFto+WwxUucThCVWpUI=;
 b=CMbEHJ1tywX8b+FctqWwt1GpLZGzR0NiMDq6gXq59WddqKujR1uwS1HwJzXjbU/xzz
 q1/x/6iJMK4KFYXuBHOXd993RNxiLgNUIsbB/7eUck6hdv8w8C7TkXzSEQduUNCFWEfl
 fgeY6+0BODmCuoV3X7Qr7VXZ/+uLa8u1xapmPE32NyBpdUFBo7k43mIewFWCZGVuxubp
 lQjUtSQT1exl16QvmlTZvUdH43WoUoyyOgI1b6IFAIQcGxJMZG7NcwDoF20arrrV9pWb
 8HQG0FNIXe4jPwqDrBZj7Hx8dowXFJM+tH3xPtiCNaBiTi5isri2TXXamd9+auvFC55A
 71lQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1679342684;
 h=content-transfer-encoding:in-reply-to:from:references:cc:to
 :content-language:subject:user-agent:mime-version:date:message-id
 :sender:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=Ss+7nbUkZDz+jxAvf/NZMFI6aFto+WwxUucThCVWpUI=;
 b=KSqxbYuMWk7qUgP78UUniEDa2iGWG6cFTepbX8yGzUBUOcN01rgevjBAr2xEhqqsLL
 ii7//P1xZi2GcEUsD1Vy80/M4AEJ912YeOH6ptyvgSG2z1ZfJoZWBPOIyGH4DGg00oI2
 lOSSMoLOaRqtEDl9/qy9OM8KnGLz5rDBXc6kPy8+EX7RyeVeux+nGwyk9XTyxD63Q/Tm
 7ILXNRoyyg6ruH/oXIVt2GKNLQGvXouYlkToUdH3akgj9qXPuG8/WTGNCuvy9t9LX02j
 Sh6ML6fFW7TI29ILJSpSZTwwktlkibPisL0F81OAHhI9aV/K5lSn/I6sK9vzgoHu6+u5
 pk9g==
X-Gm-Message-State: AO0yUKUHzadddwa6Mksc+yY1p5mu17KNe/XyD5OTczc72x6SCyVerGBQ
 B0aKV8+yi/jbJ/RYF5G6jnw=
X-Google-Smtp-Source: AK7set+o/VfCd9nJl71kzvxjrihYj0Yiq7yKfibe0Jd/AHX+0odkiJKi7WAV3B2/3pQunaLtwfdypA==
X-Received: by 2002:adf:dc01:0:b0:2d8:db31:fe3a with SMTP id
 t1-20020adfdc01000000b002d8db31fe3amr183761wri.8.1679342684347; 
 Mon, 20 Mar 2023 13:04:44 -0700 (PDT)
Received: from [192.168.0.2] ([85.132.229.92])
 by smtp.googlemail.com with ESMTPSA id
 c15-20020adffb0f000000b002c6e8cb612fsm9596442wrr.92.2023.03.20.13.04.42
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Mon, 20 Mar 2023 13:04:43 -0700 (PDT)
Message-ID: <5b115222-e46c-fce6-3a32-94e31980c26f@HIDDEN>
Date: Mon, 20 Mar 2023 22:04:41 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
 Thunderbird/102.8.0
Subject: Re: bug#61849: 29.0.60; Unable to use
 treesit-install-language-grammar because repo doesn't have parser.c
Content-Language: en-US
To: Eli Zaretskii <eliz@HIDDEN>, Misha Zharov <mishazharov1@HIDDEN>
References: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
 <83jzzxatc2.fsf@HIDDEN> <831qm4bws5.fsf@HIDDEN> <83wn3d9onk.fsf@HIDDEN>
 <CAEzzQa_ZFCo0LG+By7JbLTyQoiXPCkAKvkWG_NndrOjMnSJo1w@HIDDEN>
 <83sfdz6x4b.fsf@HIDDEN>
From: Dmitry Gutov <dgutov@HIDDEN>
In-Reply-To: <83sfdz6x4b.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.1 (/)
X-Debbugs-Envelope-To: 61849
Cc: casouri@HIDDEN, 61849 <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.9 (-)

On 20/03/2023 21:28, Eli Zaretskii wrote:
>> From: Misha Zharov<mishazharov1@HIDDEN>
>> Date: Sun, 19 Mar 2023 22:14:44 -0700
>> Cc:casouri@HIDDEN,61849 <at> debbugs.gnu.org
>>
>>> Please chime in to try to convince them to go back to including the
>>> generated parser files.
>> Thanks for the update.  I've now done this, but I think that it will be
>> difficult to make sure that community sticks to this standard of keeping
>> the autogenerated files in the repo.  Their arguments do have some
>> merit regarding the difficulty of resolving merge conflicts and overall
>> maintenance burden.  At the same time, having the autogenerated file
>> present is a nice QOL feature for users because it's easily reproducible.
> Bummer:
> 
>    https://github.com/DerekStride/tree-sitter-sql/issues/120#issuecomment-1476609242

Suppose the repositories remove the generated grammar files. What would 
be sufficient for us to regenerate them?

tree-sitter-sql apparently uses the tree-sitter-cli program. Would 
having it on the user's system suffice?

For a lot of developers NPM will already be installed. If the only 
remaining step will be 'npm install -g tree-sitter-cli', or dropping one 
of the pre-built binaries from 
https://github.com/tree-sitter/tree-sitter/releases into a directory on 
PATH, I think they could manage to do it once, to be used in all 
grammars which don't keep generated files in the repo.




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

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


Received: (at 61849) by debbugs.gnu.org; 20 Mar 2023 19:28:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 20 15:28:22 2023
Received: from localhost ([127.0.0.1]:56843 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1peLB8-00038X-LM
	for submit <at> debbugs.gnu.org; Mon, 20 Mar 2023 15:28:22 -0400
Received: from eggs.gnu.org ([209.51.188.92]:32864)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1peLB6-00038L-TR
 for 61849 <at> debbugs.gnu.org; Mon, 20 Mar 2023 15:28:21 -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 1peLB1-0005Iq-GI; Mon, 20 Mar 2023 15:28:15 -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=5zBmohd3mXA3ZlT0gAguK9UjCub/acxPE0Py0Iv7PqE=; b=TVWAR7is09v5
 fb8/FSUEYPoD3mQSrXyA9HJwn8Xbii/32I1ij5SATDWCgsQWkbpt9wYpym62YilMqoF5pbSSf53vN
 HEuH7/yNUYYp9lNwsTcyPPItH5XWihveT6MC8NFbC4zcY1kLY1rQSFlPpj+bl3CM3JGDfFznXdoPb
 1lX1IyoZDGLCcrOM8LGOzIuVFizUwXe3/ntqg5/+29vnb+2zxTeFWauO65RwMAbIhQE3H/sdKkSaL
 8AMk5/3EC0jo9MwvPI7MUpd4bv7v6NkuzWLlTIabIn5vXDVt8xx9aB90zjlTBbNAfz8VBjA9DWIHD
 /UWBaqr6EvvkcVHbrF5vpw==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1peLAy-0001sw-1V; Mon, 20 Mar 2023 15:28:13 -0400
Date: Mon, 20 Mar 2023 21:28:20 +0200
Message-Id: <83sfdz6x4b.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Misha Zharov <mishazharov1@HIDDEN>
In-Reply-To: <CAEzzQa_ZFCo0LG+By7JbLTyQoiXPCkAKvkWG_NndrOjMnSJo1w@HIDDEN>
 (message from Misha Zharov on Sun, 19 Mar 2023 22:14:44 -0700)
Subject: Re: bug#61849: 29.0.60; Unable to use treesit-install-language-grammar
 because repo doesn't have parser.c
References: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
 <83jzzxatc2.fsf@HIDDEN> <831qm4bws5.fsf@HIDDEN> <83wn3d9onk.fsf@HIDDEN>
 <CAEzzQa_ZFCo0LG+By7JbLTyQoiXPCkAKvkWG_NndrOjMnSJo1w@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61849
Cc: casouri@HIDDEN, 61849 <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: Misha Zharov <mishazharov1@HIDDEN>
> Date: Sun, 19 Mar 2023 22:14:44 -0700
> Cc: casouri@HIDDEN, 61849 <at> debbugs.gnu.org
> 
> > Please chime in to try to convince them to go back to including the
> > generated parser files.
> 
> Thanks for the update.  I've now done this, but I think that it will be
> difficult to make sure that community sticks to this standard of keeping
> the autogenerated files in the repo.  Their arguments do have some
> merit regarding the difficulty of resolving merge conflicts and overall
> maintenance burden.  At the same time, having the autogenerated file
> present is a nice QOL feature for users because it's easily reproducible.

Bummer:

  https://github.com/DerekStride/tree-sitter-sql/issues/120#issuecomment-1476609242

> I'm not sure what the ultimate solution to this will be though.  It might be
> necessary to come up with a new paradigm of installing treesitter
> grammars that addresses some of the current issues

Maybe.  better yet, the various distros should hopefully pick up the
gauntlet and startr providing prebuilt binaries of these grammar
libraries for users to install using standard tools.




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

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


Received: (at 61849) by debbugs.gnu.org; 20 Mar 2023 05:15:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 20 01:15:27 2023
Received: from localhost ([127.0.0.1]:53421 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pe7rj-0000MI-8x
	for submit <at> debbugs.gnu.org; Mon, 20 Mar 2023 01:15:27 -0400
Received: from mail-vs1-f43.google.com ([209.85.217.43]:41949)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mishazharov1@HIDDEN>) id 1pe7ri-0000M2-78
 for 61849 <at> debbugs.gnu.org; Mon, 20 Mar 2023 01:15:26 -0400
Received: by mail-vs1-f43.google.com with SMTP id w20so5723259vsa.8
 for <61849 <at> debbugs.gnu.org>; Sun, 19 Mar 2023 22:15:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1679289320;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=6LajJOwz4gPBQ8BUyVvuzrbh0pTjCFm4QkcWJQDeMpw=;
 b=dZIG/+0qqZ+5vb13XB43geZ3WdRCKb1M07J0sb7xiwB1PsnwVzfaZT4D8i/K7lEdzw
 9D3vdnpdrkZSeEv9Os8oKO8h9fsORUwJ0icv//J70lKHR0I7jhYb4BdYQa/4ZN7/IoPz
 2vnc+VS8dm9oqtV048Pi2KVkH6pLSkVZXIROBeRc5yVUhDwaOiHnZlqn7KMqeCxmh5Es
 0MThW7b1tFR5SlyyQVBe4879wLuXQtxaoJI4DE4jLzfwSQLxuQiWe/9I5O82qHDDiw1r
 FA9tvzll62W4f3pgU5xiNuaXiFon9EbGHIsyfjynGsjqhlDzxH0C9TMsVB3qDPtdB2Dc
 YfyA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1679289320;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=6LajJOwz4gPBQ8BUyVvuzrbh0pTjCFm4QkcWJQDeMpw=;
 b=DBdgO69q5JqK4lujaguC26CiEvfxJWyWXc3xU6SkpUHa5r9OrU6bK/0EVr69IkkrnL
 whZpUXKkkAtUNmZJYdq3Er/t8hi6qwiLzduaF1lT6nv6iGLKnWpmXI7A3p8BvU5fRN/D
 e4I+LPRX/VCiJ8OliWvX31YosBTsbUBUGBS2FhAaqWg+OYDSBpBpVFZAQfxv+M2IHniw
 QFl6FeiOT7idUojt3Hc4e2Uq41J+Tds75YdWRp51BejB7XmMVrZc7AGMrnOyI52tYCm/
 iA1YftB/1JoiM+SwUfBHeybys05saTT14qc6UgGx+ZMBL0YdZtsLOHIf/lpvhffIgYwi
 6Kwg==
X-Gm-Message-State: AO0yUKVlMziNbR1O3bnR0nkImKnOaNlVDnUshISIWSIxF/y4f3W7gAD/
 G2h1El3EBey3Uz2B4i3roEZGMuOHyvIkO2KCxGg=
X-Google-Smtp-Source: AK7set9ki1Mgo39T7arxdlyRHuZ3g6cq25RFRtOcbDB/vW9KkrErGt6sfg3pWBC9a54kpq0s8hwWriUwXgw3pWT//Ec=
X-Received: by 2002:a67:c801:0:b0:411:f6d4:1be9 with SMTP id
 u1-20020a67c801000000b00411f6d41be9mr3369901vsk.5.1679289320582; Sun, 19 Mar
 2023 22:15:20 -0700 (PDT)
MIME-Version: 1.0
References: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
 <83jzzxatc2.fsf@HIDDEN> <831qm4bws5.fsf@HIDDEN> <83wn3d9onk.fsf@HIDDEN>
In-Reply-To: <83wn3d9onk.fsf@HIDDEN>
From: Misha Zharov <mishazharov1@HIDDEN>
Date: Sun, 19 Mar 2023 22:14:44 -0700
Message-ID: <CAEzzQa_ZFCo0LG+By7JbLTyQoiXPCkAKvkWG_NndrOjMnSJo1w@HIDDEN>
Subject: Re: bug#61849: 29.0.60; Unable to use treesit-install-language-grammar
 because repo doesn't have parser.c
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 61849
Cc: casouri@HIDDEN, 61849 <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: -0.8 (/)

> Please chime in to try to convince them to go back to including the
> generated parser files.

Thanks for the update.  I've now done this, but I think that it will be
difficult to make sure that community sticks to this standard of keeping
the autogenerated files in the repo.  Their arguments do have some
merit regarding the difficulty of resolving merge conflicts and overall
maintenance burden.  At the same time, having the autogenerated file
present is a nice QOL feature for users because it's easily reproducible.

I'm not sure what the ultimate solution to this will be though.  It might be
necessary to come up with a new paradigm of installing treesitter
grammars that addresses some of the current issues




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

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


Received: (at 61849) by debbugs.gnu.org; 19 Mar 2023 07:38:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Mar 19 03:38:26 2023
Received: from localhost ([127.0.0.1]:49374 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pdncX-0008CQ-Nb
	for submit <at> debbugs.gnu.org; Sun, 19 Mar 2023 03:38:25 -0400
Received: from eggs.gnu.org ([209.51.188.92]:48196)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pdncW-0008CE-2D
 for 61849 <at> debbugs.gnu.org; Sun, 19 Mar 2023 03:38:24 -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 1pdncQ-0007QD-Nq; Sun, 19 Mar 2023 03:38:18 -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=h1sKrbfodkwGC6F8yLGaDF8mONWBkWHpbY4ZS0Dd0UM=; b=JTIDLNevL1l4
 lQAq7fU9WxTzULl9PK9GUgEILGtMchpJl7DDHSS6m/BkucwLqB4HexmwKPPMIQU9UY0nLEETzprn+
 s30ICIkSdFFgaRSsnzpdQtlfU6WglAd8Y6ls9gy7ff91+6NXau7FumvNo5dmf0+/snkQ2/eOQ+hwW
 /hF5w1KhO6I64bRQJV29dhWzWt+j2zkdXJ3CaN6ncETETHrqKfewEtILPh3233xcSOC+BOthtFYtq
 rJUF6+dpHu7NnhZbq1On1tWvdOOlFDSeyFB2tyLQvijo/nxcvnPxL+SPZbDMWbu4/4zbAaWlCDeFd
 IS3Sqm+qEtz/2HoOIypUIQ==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pdncQ-0005ep-1z; Sun, 19 Mar 2023 03:38:18 -0400
Date: Sun, 19 Mar 2023 09:38:23 +0200
Message-Id: <83wn3d9onk.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: casouri@HIDDEN, mishazharov1@HIDDEN
In-Reply-To: <831qm4bws5.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 04
 Mar 2023 13:06:50 +0200)
Subject: Re: bug#61849: 29.0.60;
 Unable to use treesit-install-language-grammar because repo doesn't
 have parser.c
References: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
 <83jzzxatc2.fsf@HIDDEN> <831qm4bws5.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61849
Cc: 61849 <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 (---)

> Cc: 61849 <at> debbugs.gnu.org
> Date: Sat, 04 Mar 2023 13:06:50 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > Cc: mishazharov1@HIDDEN, 61849 <at> debbugs.gnu.org
> > Date: Sat, 04 Mar 2023 09:06:37 +0200
> > From: Eli Zaretskii <eliz@HIDDEN>
> > 
> > > From: Yuan Fu <casouri@HIDDEN>
> > > Date: Fri, 3 Mar 2023 14:27:05 -0800
> > > Cc: mishazharov1@HIDDEN,
> > >  61849 <at> debbugs.gnu.org
> > > 
> > > Not sure why that project removed the grammar.c files, it seems
> > > ubiquitous for tree-sitter language grammar projects to include the
> > > generated grammar.c file in the repo.
> > 
> > Maybe we should file an issue in their issue tracker, asking them to
> > bring that file back.
> 
> Now done, see https://github.com/m-novikov/tree-sitter-sql/issues/72

The other grammar for SQL followed suit, unfortunately, see

  https://github.com/DerekStride/tree-sitter-sql/issues/120

Please chime in to try to convince them to go back to including the
generated parser files.




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

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


Received: (at 61849) by debbugs.gnu.org; 4 Mar 2023 20:53:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 04 15:53:07 2023
Received: from localhost ([127.0.0.1]:37889 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pYYsN-0004Ue-5Z
	for submit <at> debbugs.gnu.org; Sat, 04 Mar 2023 15:53:07 -0500
Received: from mail-ua1-f52.google.com ([209.85.222.52]:43906)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mishazharov1@HIDDEN>) id 1pYYsL-0004U8-Je
 for 61849 <at> debbugs.gnu.org; Sat, 04 Mar 2023 15:53:05 -0500
Received: by mail-ua1-f52.google.com with SMTP id d12so3955001uak.10
 for <61849 <at> debbugs.gnu.org>; Sat, 04 Mar 2023 12:53:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1677963180;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=5g5L/zUUpxWtDPuAz1qKYnl0cxjfnWOT1j/8ZfbtYPU=;
 b=pfqrxKvdhf+GVfEvmxn2GNnkeZWEuy6a/qVZ4dAdRwkUpU8xcAsUd0WW1uKIyxPTZP
 YZWHldBhpN6v+jqu5Xu3kLFEbe/QHk7lG/Ki92LwYuHGDheCCnjAVGTHyHiYZPa3QkCf
 Q+Y16HqrMTChXoWrhdl2i/dBiaZXeEMgoccFmoW4+aNE1uOjGrKEU88TNRjtTdvdybS5
 UJs5wdYs/43VBWPvyfvu6VIqdGKQaWgE9cHEuJfpeuC/aB/6PMNsp5J3qu3WzuYTxFgb
 N/qSRm7IdhI7oki6CcCIYAzwVdZLYMcA/H+xbqp9GJopB93gIHknaD1iQ0f/9dLI4Zd9
 LTvQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1677963180;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=5g5L/zUUpxWtDPuAz1qKYnl0cxjfnWOT1j/8ZfbtYPU=;
 b=T0v9tluRzdb69UlV2x1mMh8Qhu3JCQH1htpVEcZL2H5s+7rTp5CYCXEZ0Jxw4tJ8sf
 YbQXNHKMy7kDdZGiFQBIl83J1ggChR/UyDg+JgRCaHbb8rfoLz1n0Pt699Mk/50sdDuB
 APTEx26fXkTO0V9siBaYzgx86Z3QoEe3oV9OG3+S3f1toyhuRAfbrBRulVgB9SkxtFFv
 Sxu6hqOhi7pGCBzil5UUFz/Nvvbl7u2TE/12DzQxyBQ8M0o1G8TcFqI4qr5q67sbCe6w
 gXKCk8oe4f4ZlrMn1QHBv/GEdbW0vVpX7bDXJ95/M7rUz5Ap6VPsxOBu5mR5H5emC97H
 kbNw==
X-Gm-Message-State: AO0yUKWe12PuMZ5HK+/AONd5fEgIGj3aQxOIcqXYAR59GkwiebCAeuKU
 nU6Sjvohvnzx/8WxHvtTkLWXOfwAAtw6ZZ2x324=
X-Google-Smtp-Source: AK7set89t4cdF8QANjH+nkU4KXDSk8kecI3EZu+eTaGWsw4LggkmzvnOVNKKIlgP73e6irp+eu4Rcu8Zf3ou52vzR8c=
X-Received: by 2002:a9f:3149:0:b0:68b:923a:d6f4 with SMTP id
 n9-20020a9f3149000000b0068b923ad6f4mr3751309uab.2.1677963179843; Sat, 04 Mar
 2023 12:52:59 -0800 (PST)
MIME-Version: 1.0
References: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
 <83jzzxatc2.fsf@HIDDEN> <831qm4bws5.fsf@HIDDEN>
In-Reply-To: <831qm4bws5.fsf@HIDDEN>
From: Misha Zharov <mishazharov1@HIDDEN>
Date: Sat, 4 Mar 2023 12:52:23 -0800
Message-ID: <CAEzzQa8+f3A_VUqsT6uj1mov1HGyJcTBo0KS_+8jQp_diOu=6g@HIDDEN>
Subject: Re: bug#61849: 29.0.60; Unable to use treesit-install-language-grammar
 because repo doesn't have parser.c
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 61849
Cc: casouri@HIDDEN, 61849 <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: -0.8 (/)

> Now done, see https://github.com/m-novikov/tree-sitter-sql/issues/72

Great, thanks for following up and filing the ticket.  I subscribed to
it and will watch it for any further developments




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

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


Received: (at 61849) by debbugs.gnu.org; 4 Mar 2023 11:07:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 04 06:07:16 2023
Received: from localhost ([127.0.0.1]:35291 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pYPjP-0008Cq-Pe
	for submit <at> debbugs.gnu.org; Sat, 04 Mar 2023 06:07:16 -0500
Received: from eggs.gnu.org ([209.51.188.92]:45716)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pYPjN-0008Cd-Cv
 for 61849 <at> debbugs.gnu.org; Sat, 04 Mar 2023 06:07:14 -0500
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 1pYPjI-0000GN-6m; Sat, 04 Mar 2023 06:07:08 -0500
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=JGJzXZkiJ3zaBvjoGT2fMORBTQ+p62T4ukMEMjPB3TI=; b=aIv57bPoHoX8
 okWMQGrlFs5Ozh847kCozJO+aIg707JzR+X1QqTol+yHIVoLMBWepDRhDLR7km0UD6qXSkIKgtvG2
 UyhhPCG38FZTiz5RUdJiidV0H9IBJY/64wMWRx5ebW8VJrC2mpBNhCr2YTeE1l/Bs0KYqsg1zM4Rc
 0KN1kUvlpcz30I1Pk2KKBWufeO8PbR+VgIeB8NykopUWUhc0ZEDGTIer9c+YR+/9N7TcaLSKv29xa
 Pmsn6jcGC10OnWEZTQlDSDX4oGw27YJCarumKJtssLXOKnHr6+3YYUQFiFZayKDqSu9seKJPSAh6V
 i5qQhW8RfX6aAKeYVGIKSA==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pYPjH-0008WV-Gj; Sat, 04 Mar 2023 06:07:07 -0500
Date: Sat, 04 Mar 2023 13:06:50 +0200
Message-Id: <831qm4bws5.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: casouri@HIDDEN, mishazharov1@HIDDEN
In-Reply-To: <83jzzxatc2.fsf@HIDDEN> (message from Eli Zaretskii on Sat, 04
 Mar 2023 09:06:37 +0200)
Subject: Re: bug#61849: 29.0.60;
 Unable to use treesit-install-language-grammar because repo doesn't
 have parser.c
References: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
 <83jzzxatc2.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61849
Cc: 61849 <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 (---)

> Cc: mishazharov1@HIDDEN, 61849 <at> debbugs.gnu.org
> Date: Sat, 04 Mar 2023 09:06:37 +0200
> From: Eli Zaretskii <eliz@HIDDEN>
> 
> > From: Yuan Fu <casouri@HIDDEN>
> > Date: Fri, 3 Mar 2023 14:27:05 -0800
> > Cc: mishazharov1@HIDDEN,
> >  61849 <at> debbugs.gnu.org
> > 
> > Not sure why that project removed the grammar.c files, it seems
> > ubiquitous for tree-sitter language grammar projects to include the
> > generated grammar.c file in the repo.
> 
> Maybe we should file an issue in their issue tracker, asking them to
> bring that file back.

Now done, see https://github.com/m-novikov/tree-sitter-sql/issues/72




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

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


Received: (at 61849) by debbugs.gnu.org; 4 Mar 2023 07:07:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 04 02:07:07 2023
Received: from localhost ([127.0.0.1]:35151 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pYLz0-000851-PI
	for submit <at> debbugs.gnu.org; Sat, 04 Mar 2023 02:07:07 -0500
Received: from eggs.gnu.org ([209.51.188.92]:49120)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pYLyy-00084T-D3
 for 61849 <at> debbugs.gnu.org; Sat, 04 Mar 2023 02:07:05 -0500
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 1pYLyk-00023x-Tn; Sat, 04 Mar 2023 02:06:59 -0500
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=q/fR01KtMl3OyrEahtjRQ54UkedtMBbNiTrAopAft8c=; b=VKpMTWwNUhYT
 vyL+VlVg8X+rqjNuJX744PpWHpa9nYf+Wid51OkXiNGuWssE+X/idZNHkbpnq/eKBQJTGjc+Bj3/p
 kv6Xt4bNFFuxzBdHPnvcBj3JnIvGrdsjxZDZnWOMxZkJrS3obbGuVbA7/6GQrebSPX6u+gDrST8li
 IS2f4hcy1yIhVGitLoUHCxZZQdkOt6NjTSWYMbEOXcNcM5cJ/JicLl8z4ck8w2AgFdnOFpm8FigFk
 25kKln+4ZQxpjRLxXHl7t8WPA7qYc708xDKmyx6kKOiNyMFQjyvD7uaQm+Vmtm9glsm501Ya0Mwiw
 2J/bGFjOxr7Czc/ItO8G9g==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pYLyj-0006lV-S6; Sat, 04 Mar 2023 02:06:50 -0500
Date: Sat, 04 Mar 2023 09:06:37 +0200
Message-Id: <83jzzxatc2.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Yuan Fu <casouri@HIDDEN>
In-Reply-To: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN> (message from
 Yuan Fu on Fri, 3 Mar 2023 14:27:05 -0800)
Subject: Re: bug#61849: 29.0.60; Unable to use 
 treesit-install-language-grammar because repo doesn't have parser.c
References: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61849
Cc: mishazharov1@HIDDEN, 61849 <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: Yuan Fu <casouri@HIDDEN>
> Date: Fri, 3 Mar 2023 14:27:05 -0800
> Cc: mishazharov1@HIDDEN,
>  61849 <at> debbugs.gnu.org
> 
> Not sure why that project removed the grammar.c files, it seems
> ubiquitous for tree-sitter language grammar projects to include the
> generated grammar.c file in the repo.

Maybe we should file an issue in their issue tracker, asking them to
bring that file back.




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

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


Received: (at 61849) by debbugs.gnu.org; 3 Mar 2023 22:27:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 03 17:27:42 2023
Received: from localhost ([127.0.0.1]:34113 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pYDs7-0008P4-F5
	for submit <at> debbugs.gnu.org; Fri, 03 Mar 2023 17:27:42 -0500
Received: from mail-pf1-f173.google.com ([209.85.210.173]:37785)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <casouri@HIDDEN>) id 1pYDs2-0008Ok-Qk
 for 61849 <at> debbugs.gnu.org; Fri, 03 Mar 2023 17:27:26 -0500
Received: by mail-pf1-f173.google.com with SMTP id z11so2501753pfh.4
 for <61849 <at> debbugs.gnu.org>; Fri, 03 Mar 2023 14:27:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1677882437;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:from:to:cc:subject:date:message-id
 :reply-to; bh=FblvSduhTmYOlg4bkVJpiFntrNTfBLW8ARgsABVS0So=;
 b=BUBCtnG17EpLQN5xO7XfxdIxj9adDUpoDPIlcRUP4gRn/cGpS9C2XAvWql+4qnrkSv
 D7+Pl31RTqEpfnJTaiCq8KEp+9da+HmcSyLmmQQT1a17KmGpNS/THOvqQqXCFWXi0+gQ
 l4pOhwYD/NDRKXxVLA1fMkOZtPwH3d/Efwc2okOVh5xlNH0z34sC//5ldIt4zd6zAFd7
 wWAO7MXivWyJsqB95WHJN8520esUyZNY6RD4qQ9XNFGi/ivuNB9Es4DXMHkotg0nq2u9
 uI5A5ey4oiGaiMFWH5R6vZplJ1KTuSqFAc/Mk6EXB86GJIt8YSxmn0/hRHCouPk/K9yd
 F4aw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1677882437;
 h=to:cc:date:message-id:subject:mime-version
 :content-transfer-encoding:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=FblvSduhTmYOlg4bkVJpiFntrNTfBLW8ARgsABVS0So=;
 b=3+QwpOAirIrFMuQkjr8a7uPsyII3gmlmUDxxn+oq10Dbwv72ON39j6w47Ra/EMoWQ4
 5fokQiSwykupgJ1+DVg7nHxu44MdITjsjiUac/yNTgTPmQYciHh1DfY3wInwtAWGjisF
 bs23mN73wZGwB3qUuOSs1mfUNVnXyMmkZhLDgeba8hUnLIZ1a29aqYwFa1v71BV0fF/x
 rxPQ5c5ff+5Inuph+hdIfLtbHPdQYbGgcXWzm++qarQ36loHcSpX8LDMfCOWp+2eD7by
 w6f2tu7ptmvMx4JFDbQmfENoMjDkAN7sIOmHe9zLYNdCe8O3jTf3v45HSvJtDgihl1DJ
 xPPw==
X-Gm-Message-State: AO0yUKXBrYVnAELzxoz5rBgMYWKszlKAaUmCES5DwYYkPQP8ZAub7kOy
 0J9hyveBYKZ/VvJ0pxh6wiw=
X-Google-Smtp-Source: AK7set9WdHV8vSo2w8/GP4aSnzBWSkmiYb6jMBk0dX8lRObimpLN9jPSnEKUfKr7becIh4tQvvQV9w==
X-Received: by 2002:a62:7b58:0:b0:5a8:cc65:5766 with SMTP id
 w85-20020a627b58000000b005a8cc655766mr3824460pfc.6.1677882436914; 
 Fri, 03 Mar 2023 14:27:16 -0800 (PST)
Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com.
 [172.117.161.177]) by smtp.gmail.com with ESMTPSA id
 g15-20020a62e30f000000b005dd65169623sm2081339pfh.190.2023.03.03.14.27.16
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 03 Mar 2023 14:27:16 -0800 (PST)
From: Yuan Fu <casouri@HIDDEN>
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\))
Subject: Re: bug#61849: 29.0.60; Unable to use 
 treesit-install-language-grammar because repo doesn't have parser.c
Message-Id: <B2F89764-ABBF-4606-9A41-4BB062E0BB8E@HIDDEN>
Date: Fri, 3 Mar 2023 14:27:05 -0800
To: Eli Zaretskii <eliz@HIDDEN>
X-Mailer: Apple Mail (2.3731.400.51.1.1)
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 61849
Cc: mishazharov1@HIDDEN, 61849 <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 (-)


Eli Zaretskii <eliz@HIDDEN> writes:

>> From: Misha Zharov <mishazharov1@HIDDEN>
>> Date: Mon, 27 Feb 2023 19:13:59 -0800
>> Cc: 61849 <at> debbugs.gnu.org
>> 
>> Thanks for getting back to me
>> 
>> > (Btw, why not use https://github.com/DerekStride/tree-sitter-sql
>> > instead?)
>> 
>> I just landed on the other one first, no particular reason.  Initially it
>> worked until they removed the autogenerated code that was in
>> the repo.  As a workaround I can switch to the sql grammar that you
>> have recommended, but the problem might occur again in other
>> repos.
>> 
>> > I'm not sure we should incorporate in Emacs so much of this
>> > specialized stuff.
>> 
>> That's fair, but I fear that more repos will remove the autogenerated
>> parser code, which will make treesit-install-language-grammar
>> much less useful.
>
> If that starts to happen too much, we'll need to rethink this feature.
> It is supposed to be extremely reliable, and this should not rely on
> tools that might not be installed, because giving clueless users a
> tool that fails unless one "tinkers" is not a good idea, IMO.
>
> I'll leave this bug open for now.

Not sure why that project removed the grammar.c files, it seems
ubiquitous for tree-sitter language grammar projects to include the
generated grammar.c file in the repo.

Yuan




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

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


Received: (at 61849) by debbugs.gnu.org; 28 Feb 2023 12:04:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 28 07:04:51 2023
Received: from localhost ([127.0.0.1]:49844 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pWyix-000385-Dc
	for submit <at> debbugs.gnu.org; Tue, 28 Feb 2023 07:04:51 -0500
Received: from eggs.gnu.org ([209.51.188.92]:42390)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pWyiu-00037n-7F
 for 61849 <at> debbugs.gnu.org; Tue, 28 Feb 2023 07:04:49 -0500
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 1pWyio-00038E-OG; Tue, 28 Feb 2023 07:04:42 -0500
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=jvuorUfxAeetZ1qnE93WbgE/RJucX9f78T3/cttNr4Y=; b=Fv+0wgX+ATHh
 OdUbkSABVLbCBtjc9p4RJhDJeYYuUdD67t6HErI907aqBddyoB3g73QpjKlAjbUS+7PiTbG2iwgwI
 CuVJyL+6sJJAaVHRShkUlmCpN+3ruJoi5Z94+xBqD6qL6mLUGND/z2lMwTv5CNxSumQPoxhsnlTjM
 BQc2WcWwr01n8CwyvF8KZlg9XuZaQCovawFKwRYNS9dE8pbkfiQj6iCCpovxNJvrZtC+YEkR2x6Ug
 PPwnQLiE+NLd3FB1Us2j+9EYwFpS4m+hLjhucBJMM+L5gpvwoX4idAzssiktSTZgpijyEz1fNObzZ
 8gaTWFqKCalh1zsIgl1O9w==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pWyio-0003M1-0j; Tue, 28 Feb 2023 07:04:42 -0500
Date: Tue, 28 Feb 2023 14:04:51 +0200
Message-Id: <83lekigfmk.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Misha Zharov <mishazharov1@HIDDEN>
In-Reply-To: <CAEzzQa8X==vi-_tJV+-n7BTmo4b0-HdjSBrpkayJoqX7et-JtA@HIDDEN>
 (message from Misha Zharov on Mon, 27 Feb 2023 19:13:59 -0800)
Subject: Re: bug#61849: 29.0.60; Unable to use treesit-install-language-grammar
 because repo doesn't have parser.c
References: <CAEzzQa8SQi8ysPQz2k4B-e4ffpGaWZD4zFm+9VyyRGRu+y92UQ@HIDDEN>
 <83o7peho9b.fsf@HIDDEN>
 <CAEzzQa8X==vi-_tJV+-n7BTmo4b0-HdjSBrpkayJoqX7et-JtA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61849
Cc: 61849 <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: Misha Zharov <mishazharov1@HIDDEN>
> Date: Mon, 27 Feb 2023 19:13:59 -0800
> Cc: 61849 <at> debbugs.gnu.org
> 
> Thanks for getting back to me
> 
> > (Btw, why not use https://github.com/DerekStride/tree-sitter-sql
> > instead?)
> 
> I just landed on the other one first, no particular reason.  Initially it
> worked until they removed the autogenerated code that was in
> the repo.  As a workaround I can switch to the sql grammar that you
> have recommended, but the problem might occur again in other
> repos.
> 
> > I'm not sure we should incorporate in Emacs so much of this
> > specialized stuff.
> 
> That's fair, but I fear that more repos will remove the autogenerated
> parser code, which will make treesit-install-language-grammar
> much less useful.

If that starts to happen too much, we'll need to rethink this feature.
It is supposed to be extremely reliable, and this should not rely on
tools that might not be installed, because giving clueless users a
tool that fails unless one "tinkers" is not a good idea, IMO.

I'll leave this bug open for now.




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

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


Received: (at 61849) by debbugs.gnu.org; 28 Feb 2023 05:30:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 28 00:30:16 2023
Received: from localhost ([127.0.0.1]:49481 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pWsZ5-0008TA-CW
	for submit <at> debbugs.gnu.org; Tue, 28 Feb 2023 00:30:15 -0500
Received: from mail-ua1-f45.google.com ([209.85.222.45]:43985)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mishazharov1@HIDDEN>) id 1pWqRt-0004p9-Ix
 for 61849 <at> debbugs.gnu.org; Mon, 27 Feb 2023 22:14:42 -0500
Received: by mail-ua1-f45.google.com with SMTP id d12so177740uak.10
 for <61849 <at> debbugs.gnu.org>; Mon, 27 Feb 2023 19:14:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20210112; t=1677554076;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=l5yz+VBzdPYfUNc+IXInQTt3J+Sih/RakvD7vkW/H+Y=;
 b=Z8ztuPssHYTYKTlCd2zmv1De2LGWK2zuJLo+YyoJGD8UsCUPuwsjroIi8NK70EBJ8Y
 2Pf1Y0nT51fkdPZgYcikV0IoH22voUjxzDQslEakED+OsBTaK/ZuTDNzCmvZ+YvvmYEc
 HZ3gpAbgANCOkCKk5/NilCBf0zh+38neSqg6VxqY7TeB8YKkOY+F0pjV/ni5QGIsfefU
 hiis+SkT9DWewi2c+Rj/51mpEb/exq7AIor75MqUzYJZ4TinxBCZm+H+DEnwcv6G/iH8
 txTTLegVmdtcbzYMRJcUyJSpnXWmZBHa0x268c/zjzFtTA+p88eD4XmTsK29Ao4SLyq1
 laAw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112; t=1677554076;
 h=content-transfer-encoding:cc:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=l5yz+VBzdPYfUNc+IXInQTt3J+Sih/RakvD7vkW/H+Y=;
 b=W3knVoHm9+pRfhMjVz21JGooyzD6Q55RUWk7xIyh2j8iWBHXexDTqzpbE29Ev94hmb
 R64aoxznTGPwBnEOchaQfyLjr06h4f1fUG9VLEXg+R7iFEPofDh2UbSNKjp459cKv5Mb
 5NceOuIZOFJDNuERLZWUje/NqsmD7bWSMpOLp+51eCrhnMxOUce7yi9aBJoTfPxfwwz+
 nQRgZ6bG+rgK7QknmOFID+UXbst66XI9XYUjMSZQsLv3JejesL/nkyBh/XgOsXKOcq5P
 MBmkFprgZLCy8ggdYasMt8/zAJceufjiJ70vnuQV5IS2OGKrhS8nGN7jc+3eF87fOVm3
 qmog==
X-Gm-Message-State: AO0yUKUaxFuTOBGIlz5jNtrEtFdSjgOqj0F3hfz/TBIAdpkx8qtKpSM1
 8lFYMZ0EcnfBHbjQlILcOfFxFWNv0sBORh1v9hA=
X-Google-Smtp-Source: AK7set+4pemCQ9/tOHukPKxJvMrEW5Kq/JHtEG0mt3L0hD1gPf/4r7ILsgRls/LBRGYGVA2Onuqon2A2awYBdoHXabc=
X-Received: by 2002:a05:6122:21a4:b0:3ea:b7e1:fb29 with SMTP id
 j36-20020a05612221a400b003eab7e1fb29mr1627476vkd.0.1677554075723; Mon, 27 Feb
 2023 19:14:35 -0800 (PST)
MIME-Version: 1.0
References: <CAEzzQa8SQi8ysPQz2k4B-e4ffpGaWZD4zFm+9VyyRGRu+y92UQ@HIDDEN>
 <83o7peho9b.fsf@HIDDEN>
In-Reply-To: <83o7peho9b.fsf@HIDDEN>
From: Misha Zharov <mishazharov1@HIDDEN>
Date: Mon, 27 Feb 2023 19:13:59 -0800
Message-ID: <CAEzzQa8X==vi-_tJV+-n7BTmo4b0-HdjSBrpkayJoqX7et-JtA@HIDDEN>
Subject: Re: bug#61849: 29.0.60; Unable to use treesit-install-language-grammar
 because repo doesn't have parser.c
To: Eli Zaretskii <eliz@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.2 (/)
X-Debbugs-Envelope-To: 61849
X-Mailman-Approved-At: Tue, 28 Feb 2023 00:30:10 -0500
Cc: 61849 <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: -0.8 (/)

Thanks for getting back to me

> (Btw, why not use https://github.com/DerekStride/tree-sitter-sql
> instead?)

I just landed on the other one first, no particular reason.  Initially it
worked until they removed the autogenerated code that was in
the repo.  As a workaround I can switch to the sql grammar that you
have recommended, but the problem might occur again in other
repos.

> I'm not sure we should incorporate in Emacs so much of this
> specialized stuff.

That's fair, but I fear that more repos will remove the autogenerated
parser code, which will make treesit-install-language-grammar
much less useful.  Perhaps this won't occur often, but I wanted to
consult on a possible solution.  However, since this appears to be
working as intended, then that is okay as well.

Thanks for taking the time to look into this.

On Mon, Feb 27, 2023 at 12:00=E2=80=AFPM Eli Zaretskii <eliz@HIDDEN> wrote=
:
>
> > From: Misha Zharov <mishazharov1@HIDDEN>
> > Date: Sun, 26 Feb 2023 23:34:57 -0800
> >
> > Add (sql "https://github.com/m-novikov/tree-sitter-sql") to
> > treesit-language-source-alist. Then use
> > treesit-install-language-grammar. The following error occurs:
> >
> >     Error encountered when installing language grammar: (treesit-error
> >     Command: cc -fPIC -c -I. parser.c Error output: cc1: fatal error:
> >     parser.c: No such file or directory compilation terminated.)
> >
> > This error occurs because we need to run a configuration step on the
> > repo to generate parser.c. I believe this is because we need to either
> > run `npm run generate` or `tree-sitter generate` to generate the
> > `src/parser.c` file. It would be nice if we could implement a patch to:
> >
> >   1. Allow users to specify a configuration step to configure the repo
> >      before searching for parser.c (like passing a lambda into
> >      `treesit-language-source-alist`)
> >   2. Allow users to specify a git hash that should be checked out befor=
e
> >      the configuration step is run. I know currently different branches
> >      are supported, but not all projects have release branches.
> >   3. Alternatively this function can be split into 2 function, the firs=
t one
> >       would clone and configure the repository, and well as find the
> >       required files. The second function would simply compile the requ=
ired
> >       files into the shared libraries, and move them to the appropriate=
 location
>
> I'm not sure we should incorporate in Emacs so much of this
> specialized stuff.  treesit-install-language-grammar is meant for
> doing the simple steps of compiling C/C++ sources in a boilerplate
> repository into a shared library.  Anything significantly more complex
> should IMO be left to manual procedures by people who know what they
> are doing, especially if that requires to have specialized tools
> installed.
>
> (Btw, why not use https://github.com/DerekStride/tree-sitter-sql
> instead?)




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

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


Received: (at 61849) by debbugs.gnu.org; 27 Feb 2023 20:00:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 27 15:00:50 2023
Received: from localhost ([127.0.0.1]:48886 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pWjg1-0001ac-OC
	for submit <at> debbugs.gnu.org; Mon, 27 Feb 2023 15:00:50 -0500
Received: from eggs.gnu.org ([209.51.188.92]:39324)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1pWjfy-0001aN-9T
 for 61849 <at> debbugs.gnu.org; Mon, 27 Feb 2023 15:00:48 -0500
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 1pWjft-0001f8-2j; Mon, 27 Feb 2023 15:00:41 -0500
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=BIxTiD3no6DEtTmQeZBKer8wqW0Rrb8KbvaktaDcC/U=; b=U+nfCi2zpoaG
 CGMVSET0GF/cBU9jeEYYNvf8vkCVHil8MAz0W9uEy3U/A1QjuA53+KouPF25lmteRtHNra681sL1M
 YwY60UGpl5PRN6aQjXfpzGxz/qCjS8Jr5oiyjP+G1f43Yg7fzXjWIBUkZZxAeMt/k+uymRpeIumoK
 /yw/TqP1wphI+FhmGlbtDE2xv39R7pIWgkSSbhU8JLZ1ugK+tSHpF5TtBIpW+CfaXCo/WzDlzmibk
 rS6bsJfGmxNS+fbZqlqcVNhI5LgU2J36J/9suSg4hgqnwrF8UTPsJYq/P/2kHp9T8ap2q3+JwrZXo
 Opq6qn08hhh8c6KyP9PuVg==;
Received: from [87.69.77.57] (helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1pWjfr-0002dj-KN; Mon, 27 Feb 2023 15:00:40 -0500
Date: Mon, 27 Feb 2023 22:00:48 +0200
Message-Id: <83o7peho9b.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Misha Zharov <mishazharov1@HIDDEN>
In-Reply-To: <CAEzzQa8SQi8ysPQz2k4B-e4ffpGaWZD4zFm+9VyyRGRu+y92UQ@HIDDEN>
 (message from Misha Zharov on Sun, 26 Feb 2023 23:34:57 -0800)
Subject: Re: bug#61849: 29.0.60;
 Unable to use treesit-install-language-grammar because repo doesn't
 have parser.c
References: <CAEzzQa8SQi8ysPQz2k4B-e4ffpGaWZD4zFm+9VyyRGRu+y92UQ@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 61849
Cc: 61849 <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: Misha Zharov <mishazharov1@HIDDEN>
> Date: Sun, 26 Feb 2023 23:34:57 -0800
> 
> Add (sql "https://github.com/m-novikov/tree-sitter-sql") to
> treesit-language-source-alist. Then use
> treesit-install-language-grammar. The following error occurs:
> 
>     Error encountered when installing language grammar: (treesit-error
>     Command: cc -fPIC -c -I. parser.c Error output: cc1: fatal error:
>     parser.c: No such file or directory compilation terminated.)
> 
> This error occurs because we need to run a configuration step on the
> repo to generate parser.c. I believe this is because we need to either
> run `npm run generate` or `tree-sitter generate` to generate the
> `src/parser.c` file. It would be nice if we could implement a patch to:
> 
>   1. Allow users to specify a configuration step to configure the repo
>      before searching for parser.c (like passing a lambda into
>      `treesit-language-source-alist`)
>   2. Allow users to specify a git hash that should be checked out before
>      the configuration step is run. I know currently different branches
>      are supported, but not all projects have release branches.
>   3. Alternatively this function can be split into 2 function, the first one
>       would clone and configure the repository, and well as find the
>       required files. The second function would simply compile the required
>       files into the shared libraries, and move them to the appropriate location

I'm not sure we should incorporate in Emacs so much of this
specialized stuff.  treesit-install-language-grammar is meant for
doing the simple steps of compiling C/C++ sources in a boilerplate
repository into a shared library.  Anything significantly more complex
should IMO be left to manual procedures by people who know what they
are doing, especially if that requires to have specialized tools
installed.

(Btw, why not use https://github.com/DerekStride/tree-sitter-sql
instead?)




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

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


Received: (at submit) by debbugs.gnu.org; 27 Feb 2023 19:47:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 27 14:47:42 2023
Received: from localhost ([127.0.0.1]:48871 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pWjTG-00019P-Fk
	for submit <at> debbugs.gnu.org; Mon, 27 Feb 2023 14:47:42 -0500
Received: from lists.gnu.org ([209.51.188.17]:51128)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <mishazharov1@HIDDEN>) id 1pWY3R-0002p3-UG
 for submit <at> debbugs.gnu.org; Mon, 27 Feb 2023 02:36:17 -0500
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 <mishazharov1@HIDDEN>)
 id 1pWY3Q-0006GS-1V
 for bug-gnu-emacs@HIDDEN; Mon, 27 Feb 2023 02:36:13 -0500
Received: from mail-vs1-xe2c.google.com ([2607:f8b0:4864:20::e2c])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <mishazharov1@HIDDEN>)
 id 1pWY3I-0008Iv-6n
 for bug-gnu-emacs@HIDDEN; Mon, 27 Feb 2023 02:36:11 -0500
Received: by mail-vs1-xe2c.google.com with SMTP id d7so9569298vsj.2
 for <bug-gnu-emacs@HIDDEN>; Sun, 26 Feb 2023 23:35:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=2gBNvSWAGR1Wop+Tu1vCAUoovD3JPD3uqCdNabS5ERo=;
 b=p0Blx9OCYmYJrPOIOBN1pp80SnsZswtbu/zLY9GuJp2Gskv+x4r1T5i2vVftrT1frL
 Y9RRo2cAE2LjSAL83TUPW9yp53gBe2HxcYOypgMsJRzFRsTQ9p95qQ7OiiFQA1GmtzP1
 oX2PqWmP6WfPJWPDzYzdsmEvOSVQiYefNMPkAMCxQ2RuQjH9QWh3hK/WXA7s+OaMobzH
 Q9QlgeKiBiz2M+LI/4lbDumJC3XXCM6XYHUCK5H879Y2yhPIxQXa6aFSafb8x96t2wkG
 MjHztOD2FTEfnF1X5ATBE8/1Mxk2oHSS878ktqys6Z4QQM5U95yCvWe6zQD1O/ut1J6L
 Pz8A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=2gBNvSWAGR1Wop+Tu1vCAUoovD3JPD3uqCdNabS5ERo=;
 b=pBsuv5FZQFxwCGJHYdDVC2wFP8OmqxOg0tvo1jc5NsppTpLZY+9tkCFlgB7DTa964D
 lLpj7CCkqIRUtmvhzLv5toxO+8dSQyFzxJDcZ4+I6zU1lWxefi+Q3P0A8XayCrE5mIDz
 DxEyFEBclmKZ0CwO0inyjHTxIDoqqQkFQ//gHzwd72MdVkgLprV6F33WHH5n2q107sfi
 zdnQy0qBiHPdW6I1lFEWc7FY5ry/vf0kSGPuIBjJc6rwNb/49VqpZHv7LoptGZoet8wT
 bVwPw2boc3Va9yOcdSeRsBTe5t/WPPQ0G8Ak/kzmzX5wmzRdVFRZmJWrpmNwgeO7FH3F
 xprg==
X-Gm-Message-State: AO0yUKXPYG1eTBEpYBdTBDE11NWE3qRmG4iLDDelUs3Bkht+Ud0tVm/s
 +RYoJN2UFRl39s0uS2GNv/RXXZDL2HqFQC+EselucK9sZ/g=
X-Google-Smtp-Source: AK7set/LgTsmetrpuyaImteWa3RzPNXvQm2GGuH+AQSTJAkHzsEOoLZwgmh1/vXQ8KnX29xkBbj98dIxrJfNmRvN/68=
X-Received: by 2002:a05:6122:e29:b0:406:6b94:c4fe with SMTP id
 bk41-20020a0561220e2900b004066b94c4femr6462283vkb.0.1677483333788; Sun, 26
 Feb 2023 23:35:33 -0800 (PST)
MIME-Version: 1.0
From: Misha Zharov <mishazharov1@HIDDEN>
Date: Sun, 26 Feb 2023 23:34:57 -0800
Message-ID: <CAEzzQa8SQi8ysPQz2k4B-e4ffpGaWZD4zFm+9VyyRGRu+y92UQ@HIDDEN>
Subject: 29.0.60; Unable to use treesit-install-language-grammar because repo
 doesn't have parser.c
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::e2c;
 envelope-from=mishazharov1@HIDDEN; helo=mail-vs1-xe2c.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 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,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 27 Feb 2023 14:47:37 -0500
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: -2.1 (--)

Add (sql "https://github.com/m-novikov/tree-sitter-sql") to
treesit-language-source-alist. Then use
treesit-install-language-grammar. The following error occurs:

    Error encountered when installing language grammar: (treesit-error
    Command: cc -fPIC -c -I. parser.c Error output: cc1: fatal error:
    parser.c: No such file or directory compilation terminated.)

This error occurs because we need to run a configuration step on the
repo to generate parser.c. I believe this is because we need to either
run `npm run generate` or `tree-sitter generate` to generate the
`src/parser.c` file. It would be nice if we could implement a patch to:

  1. Allow users to specify a configuration step to configure the repo
     before searching for parser.c (like passing a lambda into
     `treesit-language-source-alist`)
  2. Allow users to specify a git hash that should be checked out before
     the configuration step is run. I know currently different branches
     are supported, but not all projects have release branches.
  3. Alternatively this function can be split into 2 function, the first one
      would clone and configure the repository, and well as find the
      required files. The second function would simply compile the required
      files into the shared libraries, and move them to the appropriate location

I can have a go at implementing some of the above if those changes are
welcome. The reason this is important is because it seems like more
repos in the future will move away from providing the autogenerated
files in their repos, so this function might be on borrowed time in its
current incarnation.


In GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.33, cairo version 1.16.0) of 2023-02-24 built on misha-N552VX
Repository revision: 5cf50d60041c82deccc4b32a8ecdb1a28b6e8f91
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: Ubuntu 22.04.2 LTS

Configured using:
 'configure --with-json --with-cairo --with-xwidgets
 --prefix=/opt/emacs/ --with-x-toolkit=gtk3 --with-tree-sitter
 --with-native-compilation'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LIBSELINUX LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER X11
XDBE XIM XINPUT2 XPM XWIDGETS GTK3 ZLIB

Important settings:
  value of $LANG: en_CA.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Help

Minor modes in effect:
  global-git-commit-mode: t
  magit-auto-revert-mode: t
  shell-dirtrack-mode: t
  server-mode: t
  windmove-mode: t
  marginalia-mode: t
  global-display-line-numbers-mode: t
  display-line-numbers-mode: t
  override-global-mode: t
  global-company-mode: t
  company-mode: t
  savehist-mode: t
  vertico-mode: t
  straight-use-package-mode: t
  straight-package-neutering-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  isearch-fold-quotes-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  buffer-read-only: t
  column-number-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/misha/.emacs.d/straight/build/transient/transient hides
/opt/emacs/share/emacs/29.0.60/lisp/transient
/home/misha/.emacs.d/straight/build/xref/xref hides
/opt/emacs/share/emacs/29.0.60/lisp/progmodes/xref
/home/misha/.emacs.d/straight/build/project/project hides
/opt/emacs/share/emacs/29.0.60/lisp/progmodes/project
/home/misha/.emacs.d/straight/build/let-alist/let-alist hides
/opt/emacs/share/emacs/29.0.60/lisp/emacs-lisp/let-alist

Features:
(shadow sort mail-extr emacsbug treesit pulse jka-compr consult-xref
cl-print debug backtrace cus-start cus-load misearch multi-isearch
wid-edit lee-ho-fook shortdoc help-fns radix-tree vc-hg vc-bzr vc-src
vc-sccs vc-svn vc-cvs vc-rcs log-view vc bug-reference face-remap
magit-bookmark magit-submodule magit-obsolete magit-blame magit-stash
magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone
magit-remote magit-commit magit-sequence magit-notes magit-worktree
magit-tag magit-merge magit-branch magit-reset magit-files magit-refs
magit-status magit package browse-url url-handlers magit-repos
magit-apply magit-wip magit-log which-func imenu magit-diff smerge-mode
diff git-commit log-edit message sendmail yank-media puny dired
dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config
gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047
rfc2045 mm-util ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils
mailheader pcvs-util add-log magit-core magit-autorevert autorevert
filenotify magit-margin magit-transient magit-process with-editor shell
magit-mode transient magit-git magit-base magit-section crm
embark-consult consult-vertico consult bookmark embark-org embark ffap
vc-git diff-mode vc-dispatcher mule-util pp comp comp-cstr server
checkdoc lisp-mnt flymake-proc flymake warnings init windmove
rustic-spellcheck rustic-expand rustic-lsp rustic-playground
rustic-rustfix rustic-racer rustic-babel rustic-rustfmt org-element
org-persist org-id org-refile avl-tree org ob ob-tangle ob-ref ob-lob
ob-table ob-exp org-macro org-src ob-comint org-pcomplete pcomplete
org-list org-footnote org-faces org-entities time-date ob-emacs-lisp
ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys
oc org-loaddefs find-func cal-menu calendar cal-loaddefs org-version
org-compat org-macs format-spec rustic-comint rustic-clippy rustic-doc
xdg f f-shortdoc url url-proxy url-privacy url-expand url-methods
url-history url-cookie generate-lisp-file url-domsuf url-util mailcap
rustic-popup rustic-cargo rustic-compile spinner compile
text-property-search comint ansi-osc ansi-color s xterm-color
markdown-mode color url-parse auth-source eieio eieio-core
password-cache json map url-vars noutline outline icons
rustic-interaction rustic rust-utils thingatpt rust-mode rx dash
rustic-autoloads xterm-color-autoloads spinner-autoloads
project-autoloads xref-autoloads let-alist-autoloads f-autoloads
s-autoloads rust-mode-autoloads embark-consult-autoloads
embark-autoloads consult-autoloads marginalia marginalia-autoloads
orderless orderless-autoloads flyspell ispell display-line-numbers
edmacro kmacro use-package-bind-key bind-key easy-mmode company-oddmuse
company-keywords company-etags etags fileloop generator xref project
byte-opt ring company-gtags company-dabbrev-code company-dabbrev
company-files company-clang company-capf company-cmake company-semantic
company-template company-bbdb company pcase company-autoloads savehist
vertico compat vertico-autoloads exec-path-from-shell
exec-path-from-shell-autoloads use-package-core magit-autoloads
magit-section-autoloads git-commit-autoloads with-editor-autoloads
transient-autoloads dash-autoloads compat-autoloads info finder-inf
markdown-mode-autoloads straight-autoloads cl-seq cl-extra help-mode
straight subr-x cl-macs gv cl-loaddefs cl-lib bytecomp byte-compile
wombat-theme rmc iso-transl tooltip cconv eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads xwidget-internal dbusbind inotify dynamic-setting
system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit
xinput2 x multi-tty make-network-process native-compile emacs)

Memory information:
((conses 16 401016 69034)
 (symbols 48 29231 0)
 (strings 32 116731 2681)
 (string-bytes 1 5343184)
 (vectors 16 68498)
 (vector-slots 8 1875280 195634)
 (floats 8 416 486)
 (intervals 56 2213 217)
 (buffers 984 30))




Acknowledgement sent to Misha Zharov <mishazharov1@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#61849; 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: Mon, 31 Mar 2025 16:45:03 UTC

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