all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Demis Balbach <db@minikn.xyz>
To: Simon Tournier <zimon.toutoune@gmail.com>, guix-devel@gnu.org
Cc: andrew@trop.in
Subject: Re: Getting tree-sitter grammars in Guix
Date: Wed, 08 Feb 2023 18:50:00 +0100	[thread overview]
Message-ID: <87y1p8nj1z.fsf@minikn.xyz> (raw)
In-Reply-To: <87wn4uiu3m.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]

On 2023-02-06 18:25, Simon Tournier wrote:

> Hi,
>
> On sam., 04 févr. 2023 at 20:27, Demis Balbach <db@minikn.xyz> wrote:
>
>> My understanding is that I need to provide emacs with tree-sitter
>> support as an input for this to work, which I did, but it'll fail with
>>
>> --8<---------------cut here---------------start------------->8---
>> Debugger entered--Lisp error: (file-missing "Cannot open load file" "No such file or directory" "treesit")
>> --8<---------------cut here---------------end--------------->8---
>>
>> Maybe someone can help me here. I tried looking at other package
>> definitions, but I don't know if there are any emacs packages that
>> require tree-sitter packaged in Guix yet.
>
> Could you share your definition of Emacs variant allowing tree-sitter?
>
> Please note it is not clear for me if the tree-sitter parsers should be
> provided by Guix since 1. they are auto-generated and so it is against
> the effort to debootstrap and 2. they are often very large.
>
> Cheers,
> simon

Hello Simon,

as far as I understand emacs is already packaged with tree-sitter
support in Guix (I didn't know this when I wrote my last message).

Regarding packaging emacs packages that leverage tree-sitter, one just
has to provide the correct emacs version as an argument, like:

--8<---------------cut here---------------start------------->8---
;; ...
(arguments
`(#:emacs ,emacs-next-pgtk
 ;; ...
))
--8<---------------cut here---------------end--------------->8---

Thanks to Andrew Troping for showing me that.

-- 
Best regards / Mit freundlichen Grüßen,
Demis Balbach

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

  parent reply	other threads:[~2023-02-08 17:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-10 17:29 Getting tree-sitter grammars in Guix Demis Balbach
2023-01-21 16:43 ` Katherine Cox-Buday
2023-01-22 15:38 ` Simon Tournier
2023-02-04 19:27   ` Demis Balbach
2023-02-06 17:25     ` Simon Tournier
2023-02-06 21:01       ` Pierre Langlois
2023-02-07 11:27         ` zimoun
2023-02-08 17:50       ` Demis Balbach [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-02-04  4:52 Andrew Tropin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1p8nj1z.fsf@minikn.xyz \
    --to=db@minikn.xyz \
    --cc=andrew@trop.in \
    --cc=guix-devel@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.