From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pedro Andres Aranda Gutierrez Newsgroups: gmane.emacs.devel Subject: Re: Tree-sitter doc question Date: Sun, 11 Dec 2022 09:31:32 +0100 Message-ID: References: <83y1rgzsk4.fsf@gnu.org> <83h6y3y7bj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000061413f05ef89383a" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3756"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: =?UTF-8?Q?Jo=C3=A3o_Paulo_Labegalini_de_Carvalho?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 11 09:32:27 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 1p4Hl5-0000oa-Mb for ged-emacs-devel@m.gmane-mx.org; Sun, 11 Dec 2022 09:32:27 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4Hkj-0005vZ-0x; Sun, 11 Dec 2022 03:32:05 -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 1p4Hkg-0005vM-8y for emacs-devel@gnu.org; Sun, 11 Dec 2022 03:32:02 -0500 Original-Received: from mail-oi1-x22f.google.com ([2607:f8b0:4864:20::22f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4Hke-0007gW-DX for emacs-devel@gnu.org; Sun, 11 Dec 2022 03:32:01 -0500 Original-Received: by mail-oi1-x22f.google.com with SMTP id k189so8537655oif.7 for ; Sun, 11 Dec 2022 00:31:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AeyHPPzlx+WUW7nQkvgkVBpDzohKQhEHw5CnOay3AG4=; b=pjjw6W5WifREKfjJpSVgmFDulefVUc13wMboxCGhUxiR8KQ9fYO+GS9bwssyB2hNUC 0IwWzyp7WQqtxpWSCvAXNb6xNlX6r3qkmDDrwqZ0+FDVdjZfdPBzLYXKVB4nUlCku71O LVRX9a218FkNyoGXULz8LIq9DznWEnubWxFMSl6g5gAN4t3v2RRxJYqnSKz8Ufwv05DZ 1X0Exf65VleIHHD4v/a58X9BiomH7+EJTMuM4fdv85Syj5NwlpOcVknGjhTK6tV0jbEk CFpagsL1aWPadV3qkz8T8MvijUffzlP94/yPV5Zzg8kKdF9xtBHJvrt3jfAdCX3efybw jSBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=AeyHPPzlx+WUW7nQkvgkVBpDzohKQhEHw5CnOay3AG4=; b=PGq4HslQjMoNqmRYdaDfG4yCs7k2HkfhnHbLjEmDjAY7THb3WJiqx83IlgND34Rvjh 9KEr8NA9tGlnlkE+j0eYpA5LwkOxViG58l4pkGnuBmNEOPdyFFNafTR/GF3RdDRFHswH 4lsvEf9uiSuaII1rJHYXCDA41lIzgBwyWYSye9f4Fbocdz6rV2j+xUr7bsspjFa9E+fR VYiK0bgJfTrPKNQLNblyGat/2eRR+medXuKZmF3jQyKrUgHyUcDiDS9GI1jnGBs3JtmF dAp8UHzuykwHgho0hBbOeecI4SvQFQL7i6ajiEl7oZYKmrJIm+eBE0Qm5+bT3vgB2oXl nCrQ== X-Gm-Message-State: ANoB5pk+IT4NrWySZIYM34TjaaRjE69+6Q5BtikyhFSl5vhvbccgqloF 2M+OglRwSA1xaIbhIlvUV8Z2w4E+ucVnj2162kM= X-Google-Smtp-Source: AA0mqf78vwzhO9DEjJl3eWNsDREPv1gbw6G6iqkzjdTR2SJjKkgIbK18aB0dt8zoG+K4CIJvzHE3LGezhh0RBQx3fDc= X-Received: by 2002:aca:41c1:0:b0:35b:740:7598 with SMTP id o184-20020aca41c1000000b0035b07407598mr32406215oia.216.1670747519007; Sun, 11 Dec 2022 00:31:59 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::22f; envelope-from=paaguti@gmail.com; helo=mail-oi1-x22f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=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-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:301147 Archived-At: --00000000000061413f05ef89383a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Obrigado, Jo=C3=A3o Paulo That's done :-) I now have an Emacs with tree-sitter and I have gone to the admin/... directory to compile the language support .so. Maybe the final step in that documentation would be to say a word on where to place those files when testing and how to "politely encourage" Emacs to load and use them ;-) /PA On Sat, 10 Dec 2022 at 16:37, Jo=C3=A3o Paulo Labegalini de Carvalho < jaopaulolc@gmail.com> wrote: > > I'm on Ubuntu 20.04 LTS and have little time to face a migration to 22.04 >> and I haven't >> found anyone providing a PPA to install tree-sitter on my system. Same >> might also >> be true for many Debian users... >> > > You can build tree-sitter from source by cloning the repo > https://github.com/tree-sitter/tree-sitter and running make && make > install PREFIX=3D. > > Alternatively, you can grab one of the pre-build releases here: > https://github.com/tree-sitter/tree-sitter/releases > > After that make sure to export PKG_CONFIG_PATH=3D dir>/lib/pkgconfig. > > Once that is done, emacs should build with tree-sitter smoothly. > > -- > Jo=C3=A3o Paulo L. de Carvalho > Ph.D Computer Science | IC-UNICAMP | Campinas , SP - Brazil > Postdoctoral Research Fellow | University of Alberta | Edmonton, AB - > Canada > joao.carvalho@ic.unicamp.br > joao.carvalho@ualberta.ca > --=20 Fragen sind nicht da um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: 09:17:36 WARNING juju.worker.uniter.operation we should run a leader-deposed hook here, but we can't yet --00000000000061413f05ef89383a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Obrigado,=C2=A0Jo=C3=A3o Paulo

That's= done :-) I now have an Emacs with tree-sitter and I have gone to the admin= /... directory to compile the language support .so.
Maybe the final step in that documentation would= be to say a word on where to place those files when testing and how to=C2= =A0
"politely encour= age" Emacs to load and use them ;-)

/P= A

On Sat, 10 Dec 2022 at 16:37, Jo=C3=A3o Paulo Labegalini de Carvalho= <jaopaulolc@gmail.com> w= rote:

I'm on Ubuntu 20.04 LTS and have little time to face= a migration to 22.04 and I haven't
found anyone providing a = PPA to install tree-sitter on my system. Same might also
be true = for many Debian users...

You can build tree-sitter from source by cloning the repo=C2=A0https://= github.com/tree-sitter/tree-sitter and running make && make ins= tall PREFIX=3D<installation directory>.

Alternatively, you can= grab one of the pre-build releases here:=C2=A0https://github.com/tr= ee-sitter/tree-sitter/releases

After that make sure to export PK= G_CONFIG_PATH=3D<tree-sitter install dir>/lib/pkgconfig.

Once = that is done, emacs should build with tree-sitter smoothly.

--
Jo=C3=A3o Paulo L. de Carvalho
Ph.D Computer Science | =C2=A0IC-UN= ICAMP | Campinas , SP - Brazil
Postdoctoral Research Fellow | University= of Alberta | Edmonton, AB - Canada


--
Fragen sind nicht da um beantwortet zu werden,
Fragen sind da um = gestellt zu werden
Georg Kreisler

Headach= es with a Juju log:
unit-basic-16: 09:17:36 WARNING juju.worker.u= niter.operation we should run a leader-deposed hook here, but we can't = yet

--00000000000061413f05ef89383a--