From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Just a comment about tree-sitter Date: Fri, 27 Jan 2023 19:09:35 +0200 Message-ID: <83y1pnc3ao.fsf@gnu.org> References: <20230127165406.66d47bwk7coghngl.ref@Ergus> <20230127165406.66d47bwk7coghngl@Ergus> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22758"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ergus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 27 18:10:38 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pLSFK-0005iN-14 for ged-emacs-devel@m.gmane-mx.org; Fri, 27 Jan 2023 18:10:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLSEa-0007zU-JA; Fri, 27 Jan 2023 12:09:52 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pLSEZ-0007zF-44 for emacs-devel@gnu.org; Fri, 27 Jan 2023 12:09:51 -0500 Original-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 ) id 1pLSEY-0002Ya-RH; Fri, 27 Jan 2023 12:09:50 -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=gZs/huzNOthDdBu1NiBq16Kw7mJtGmiwJRJijOECFPA=; b=Mt5eTyYQQQ1/ fCbpPxpXJCFCsGf1ttxQdt8tFZMNSpwi4Az4VR4dD4Y5hbg7CoNEu2QHFZQRzO5gsUT++kOjwN8Gr kojnbZBorZNUJn5dUI7I5Zou2Xdvmks7xVEjDnLCkTfSWX/WaeSRwqS6R6pIAJlPUwmF4KZzC4BoC WWWN2FCb6eGN5aqQBCuJDFVbS6yL/+FJ6n4V6mtKvWIxhvVh5qEbxhDBj6ZoyTIgo7Wwmdl2L32bZ yxj51NSTkzFwKOkvl8+9VU/FNWgPEOmej5TUifHth5aOigK9P0DQCVXuRmrlmTeDWyS47ROu7bFxQ N0vgjpgqgvksEelBTc8XhQ==; Original-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 ) id 1pLSEY-0006en-1I; Fri, 27 Jan 2023 12:09:50 -0500 In-Reply-To: <20230127165406.66d47bwk7coghngl@Ergus> (message from Ergus on Fri, 27 Jan 2023 17:54:06 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:302688 Archived-At: > Date: Fri, 27 Jan 2023 17:54:06 +0100 > From: Ergus > > There was a problem because emacs requires version >= 0.20 in the > config. But the current tree-sitter release has an issue and it is not > updating the version in the tree-sitter.pc file for pkg-config > properly. So pkg-config knows there is a tree-sitter, but it thinks it is > version 0.6.1, too old for what emacs asks. > > This issue is fixed in the current tree-sitter master branch, but not in > the release 0.20.7 (current). It may take some months to be out. > > If this has been already discussed by someone here my apologizes, but I > didn't find any reference, so I decided to mention just in case anyone > has the same issue. The configure script requires version 0.6.3 of tree-sitter, which is the version declared by the pkg-config file that comes with tree-sitter 0.20.7. So I don't think I understand why you see 0.6.1. Are you sure you have tree-sitter 0.20.7 installed, not an earlier version? I can tell you that I build both the master and the emacs-29 branch with tree-sitter v0.20.7, and I have no problems like the ones you describe.