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: Tree-sitter integration in python.el Date: Tue, 04 Oct 2022 09:13:29 +0300 Message-ID: <83sfk4w1yu.fsf@gnu.org> References: <3A68545C-2E40-4BB4-8563-8041A5452634@gmail.com> <87y1twlr0v.fsf@gmail.com> <83czb8ycpo.fsf@gnu.org> <87tu4klfcw.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12773"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, emacs-devel@gnu.org To: Matthias Meulien Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 04 08:21:59 2022 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 1ofbJX-0003Bw-9U for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Oct 2022 08:21:59 +0200 Original-Received: from localhost ([::1]:45322 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofbJW-0004N3-5z for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Oct 2022 02:21:58 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofbBY-00021m-Io for emacs-devel@gnu.org; Tue, 04 Oct 2022 02:13:44 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:38396) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofbBY-00062h-9h; Tue, 04 Oct 2022 02:13:44 -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=YTl08E2nBH3iLdbziTG66c6w/bDtSFDCIyyfb3ummrk=; b=SBn/3v1aKUdD NLoUodaUOFbcE+knniWEWeQ+H53XHk5TXvS/4Bj/Aa7zpMqy5wv7j7HnyzeqNJ2Xs1o7JF4lER/FO WExmxl91B1Ub/o0KBDFN+u2tRc2K6qQWQAUUm1XO2+32OdKd7opsCjm/qTX4z/k303i8DScuArYG8 W1Oao6ydWG51rfsFc0ppCIaTtBk2lo6u452ulWNWzbvF/ADvTpEvMDKLzjytZ/vOGFY9KnPNofVzN l+elchDNkII+cPyGkAXiNndSj5iJalEHRaF75eeyAj1sHczojHL+nj7g89kQbT8JI5XogsPnmxc7j ZCAD4Ym096Ax1CyLAoZy9w==; Original-Received: from [87.69.77.57] (port=4411 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 1ofbBM-0006qF-Uf; Tue, 04 Oct 2022 02:13:43 -0400 In-Reply-To: <87tu4klfcw.fsf@gmail.com> (message from Matthias Meulien on Tue, 04 Oct 2022 00:19:43 +0200) 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" Xref: news.gmane.io gmane.emacs.devel:296839 Archived-At: > From: Matthias Meulien > Cc: casouri@gmail.com, emacs-devel@gnu.org > Date: Tue, 04 Oct 2022 00:19:43 +0200 > > > Some of these lack the Makefile. But the Makefile is standard and can > > be taken from any other language module, for example I see on in > > tree-sitter-ruby. So just clone that as well, copy its Makefile into > > tree-sitter-python, and run "make". > > Thank you, Eli. It wasn't as easy as you said but I managed to compile > a shared object using a modified version of the Makefile found in the > tree-sitter-ruby (using the file as is fails when building > tree-sitter-{ruby,python} due to a missing -Wl, before -soname usage). Would you please share the changes you made, FTR? Then others who face the same problem could easily find the solution. TIA. > I'll keep using this branch and collect unexpected behaviors. Thanks!