From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "T.V Raman" Newsgroups: gmane.emacs.devel Subject: Re: tree-sitter version? Date: Fri, 25 Nov 2022 07:06:24 -0800 Message-ID: <25472.55792.901376.139039@retriever.mtv.corp.google.com> References: <70973BD9-26D2-4833-A429-8434FC03026B@gmail.com> <87cz9cevns.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29835"; mail-complaints-to="usenet@ciao.gmane.io" Cc: casouri@gmail.com, raman@google.com, emacs-devel@gnu.org To: tsdh@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 25 16:07:37 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 1oyaIj-0007Ww-3G for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Nov 2022 16:07:37 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyaI5-0007eu-QK; Fri, 25 Nov 2022 10:06:58 -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 1oyaI1-0007al-D2 for emacs-devel@gnu.org; Fri, 25 Nov 2022 10:06:53 -0500 Original-Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oyaHv-0006fi-DU for emacs-devel@gnu.org; Fri, 25 Nov 2022 10:06:53 -0500 Original-Received: by mail-pl1-x633.google.com with SMTP id b21so4219184plc.9 for ; Fri, 25 Nov 2022 07:06:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:from:to:cc:subject:date :message-id:reply-to; bh=clq5KV2M4yaFCCSMEU5Aj88AnWH0BIzw164BTfBpdsI=; b=Vr+rbwzsURL0u9FBQSMPyqLRM5UNY57r+U60Z3SjFD9GEPh4V4qqcGJENX+NSC7cWW /cnSYncyv2czyKgq1lqy0GNSxRJU2M1HssnbNzilZ/QLlAMNKxN4nbI8/FvHh+9zXdOJ MBmwNE08iIF9R3BXbQOWKYNhFsL6RLuhRmRXEp5qdYP0uBk0OuBe7TkmSqd0x808VWw8 MKe62SKTQflNyb/cYfMFWoETk2RPXolbHoI1l0Yag4/77KfqjbjNYmr+oHrazOmwnUZu CqnHUkX99jrZNKonDzKQ8L/js1N/qhNK21WhRD+jxOfYb3fPGzBIycYj8V61b9HgibYL pkXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:subject:cc:to:date:message-id :content-transfer-encoding:mime-version:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=clq5KV2M4yaFCCSMEU5Aj88AnWH0BIzw164BTfBpdsI=; b=jpgxdvA0IZpISzz6cZ1mljKl/i+JpgENTCDQYqUQwdQnpJnMNl/1yF0v4OYzhbGexR xNLFkHurx/Biqyzr6+BorubwW+5xRQVQiesdP6j7jsMJFqYGOFsLx9KgjRNjFLXIleHP GcrP80Gkn7GrGSrXLxxtpn/nSDMCNeNFQ/7f2Ya+lRglLKovWsQPEvUKR+UGpy8NkkGf NoFwHHYdBlLdg7Phrw35L+/h3EBmSNIQii4kSUuCMVQoxMnDmGVW4Iekcc0HgKPH6uki kzwEnzF2TQKTCA9z/n1ZKzgTM0AC/CncC0oOfG2sBYQ/0LTUvCfmurNOuZXP+Ez6vx1D EqbA== X-Gm-Message-State: ANoB5plrV/NjvYRFF0XY8gGiSqnOLpMRfOJeOsy8PgtUdIHwvdpx9/e2 gU4WlGw0HXM/3QAUNn70GK6WumNrdRluew== X-Google-Smtp-Source: AA0mqf7l0Of7rLeftz50d4Ek6fwVMNikUXnRlJ081zYiiKWrW7eSO689brhWOiJMkIB81DC32jMYyQ== X-Received: by 2002:a17:902:b107:b0:189:6071:9ddc with SMTP id q7-20020a170902b10700b0018960719ddcmr5705638plr.35.1669388792676; Fri, 25 Nov 2022 07:06:32 -0800 (PST) Original-Received: from retriever.mtv.corp.google.com ([2620:0:1000:1612:edea:9bda:be07:3ba7]) by smtp.gmail.com with ESMTPSA id g12-20020a1709026b4c00b001782f94f8ebsm3565425plt.3.2022.11.25.07.06.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 07:06:30 -0800 (PST) In-Reply-To: <87cz9cevns.fsf@gnu.org> X-Mailer: VM 8.1.1 under 29.0.50 (x86_64-pc-linux-gnu) Received-SPF: pass client-ip=2607:f8b0:4864:20::633; envelope-from=raman@google.com; helo=mail-pl1-x633.google.com X-Spam_score_int: -95 X-Spam_score: -9.6 X-Spam_bar: --------- X-Spam_report: (-9.6 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01, USER_IN_DEF_DKIM_WL=-7.5 autolearn=unavailable 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:300484 Archived-At: So I built the lang-specific modules from the script cited earlier in the thread and copied the .so files to /usr/local/lib emacs seems happy, but at least it doesn't complain about not knowing about C. But for this to be usable, those modules need to be bundled with Emacs=3F= Tassilo Horn writes: > Yuan Fu writes: >=20 > Hi Yuan, >=20 > >> So: am I supposed to install tree-sitter from github or from debi= an's > >> package manager=3F > > > > Either should be fine. >=20 > Ah, I was wondering the same when I wanted to give tree-sitter a try= . I > have tree-sitter 0.20.7 installed but the configure output said > ">=3D0.20.2 no" but only reported a >=3D 0.6.x version. It still wo= rks > fine. :-) >=20 > >> I first did the package-manager version, then pulled from github = and > >> installed that -- configure shows that tree-sitter is detected --= but > >> calling any of the tree-sitter modes, eg c-ts-mode barfs with an > >> error saying that support is not available. > > > > If you call tree-sitter-available-p, what do you get=3F Most likel= y you > > don=E2=80=99t have the relevant language definition/grammar for th= ose > > modes. You can probably find them on package managers, or you can > > build with the script here: >=20 > Indeed, that was the next trap I fell in. On Arch, tree-sitter is i= n > the community repository (so basically almost official) whereas the > language definitions are only on the AUR. Maybe the NEWS entry shou= ld > tell more clearly that tree-sitter needs to be system-installed and = also > the language definitions need to be grabbed somewhere. >=20 > BTW, how can a user decide that tree-sitter modes should be used=3F = For > example, when I open a json file I get js-json-mode, not json-ts-mod= e, > which also works, so support is available. Should user's augment > auto-mode-alist=3F Or is there some "enable TS whenever possible an= d the > devs think its support is in a usable state for that language" toggl= e=3F >=20 > Bye, > Tassilo --=20 Thanks, --Raman(I Search, I Find, I Misplace, I Research) =E2=99=89 Id: kg:/m/0285kf1 =F0=9F=A6=AE -- Thanks, --Raman(I Search, I Find, I Misplace, I Research) ♉ Id: kg:/m/0285kf1 🦮