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: Difficulty building tree-sitter grammars [was: Help sought from C++ expert: ....] Date: Fri, 20 Jan 2023 08:44:39 +0200 Message-ID: <83lelxogbs.fsf@gnu.org> References: <83y1pyo9hs.fsf@gnu.org> <83tu0mo1ft.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25240"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 20 07:45:33 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 1pIl9X-0006Fm-RS for ged-emacs-devel@m.gmane-mx.org; Fri, 20 Jan 2023 07:45:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pIl8l-0002KU-9J; Fri, 20 Jan 2023 01:44:43 -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 1pIl8j-0002KF-Dk for emacs-devel@gnu.org; Fri, 20 Jan 2023 01:44:41 -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 1pIl8i-0001JN-Hn; Fri, 20 Jan 2023 01:44:40 -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=g3D0tqmK+eRAS2QNgJP0N6KwIg3NvvWPlTWYs0LKC2c=; b=Nfnui6GfhdOl Mdr3QAJZe6TnlMFUVTMaqcI3ZovxJ1vh9GE+Hj7+fC+aw6SdHZ2oPj4C8W8z4h05Pki/+3rCF1VWA 2dHPtmdo+6UGq1x3p0SfODaQnu/1CMdGkjWYbgiCbTj7NxIgC2J6Z8wD8/Rnfc+Gg85oP52j5goGv t6fgBGuRp3lhdXHrNtLCNfzOy7KnwKzE0aW3Cy2Jm4arm3VirCsx/faJ1oWLZWh2J/oT3A18fBCUW lA7E8WDRnlyU7M4MHdSMJI/8dvWGrB75mT6ngekuu3IqMOCV1FTbKpRyqvRCIxa3yV7YmgXSXhw/j fwXY+DE+9RqGEVLi/Ag/Yg==; 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 1pIl8i-0008Cg-0K; Fri, 20 Jan 2023 01:44:40 -0500 In-Reply-To: (message from Alan Mackenzie on Thu, 19 Jan 2023 20:56:13 +0000) 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:302564 Archived-At: > Date: Thu, 19 Jan 2023 20:56:13 +0000 > Cc: emacs-devel@gnu.org > From: Alan Mackenzie > > > I'm not going to make NEWS a step-by-step tutorial for how to compile > > a bunch of files into a shared library. That is too much to expect > > from us. It is NOT our job to teach people how to do that. > > Believe it or not, I've never built a shared library in my life (aside > from invoking makefiles) and I'm sure I'm far from being alone. Like I said: then building the libraries is not something you should try on your own. > These libraries come with makefiles, so there is no need to get into the > details of how to build them. Only some of them come with Makefiles, the majority doesn't. Which is why those Makefiles aren't mentioned in NEWS: you cannot rely on their being there. > At Dmitry pointed out, it turns out there's a makefile-equivalent for > these grammar libraries, namely treesit-install-language-grammar. This > worked well for me. > > Why is it not mentioned first in NEWS, something like "Typically you can > build and install a grammar with ....." followed by "To build a grammar > outside of Emacs ..." and the description of compiling linking and so on? Isn't that already so? But that command cannot solve all the problems for users who have no experience in building from sources. So some of them will still need someone else to do this.