From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: tree-sitter version? Date: Wed, 23 Nov 2022 21:02:23 -0800 Message-ID: <70973BD9-26D2-4833-A429-8434FC03026B@gmail.com> References: Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) 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="10661"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "T.V Raman" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 24 06:03:01 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 1oy4O4-0002cc-NL for ged-emacs-devel@m.gmane-mx.org; Thu, 24 Nov 2022 06:03:00 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oy4Nc-0000de-Ve; Thu, 24 Nov 2022 00:02:33 -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 1oy4NZ-0000d6-VX for emacs-devel@gnu.org; Thu, 24 Nov 2022 00:02:30 -0500 Original-Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oy4NW-0006Sd-KD for emacs-devel@gnu.org; Thu, 24 Nov 2022 00:02:28 -0500 Original-Received: by mail-pj1-x102f.google.com with SMTP id b1-20020a17090a7ac100b00213fde52d49so622889pjl.3 for ; Wed, 23 Nov 2022 21:02:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=sSYWaVHr/T8G8Mi2R6EZ7GAm+L1aLOCJu58STI6Hxxg=; b=liSTDl/b3YBEeUz9AgQ+DXlHXO5TdT3eJKeR2cn4zuRT6F++FlkVpC6fTtZgd+vA8w Vol2BRQNLAJLyoqvdGUoJ6/3Bf62vqH3ZNj/QHYTFNs0n559rJjUxCU052BqXUTFC259 HmxETBkipgOoqPLmmeZMsdtiQ4+texFFrXs+P/x/qStX9mIKcJEz1JYaO70x9mA/B1g6 /LDl2aXIsM8k4Q0UdINQ4rDmhaVwvYjVKmkiX2WFl7DYU9grqpQsieIgxgXUiljg8JXm Ga/60Zs7Swx/ZLKcnz46arCc/nl5M3cXEVpjSFNI1Ssx/BQ7442l3xPLluCbcbMoQPm/ Mz+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=sSYWaVHr/T8G8Mi2R6EZ7GAm+L1aLOCJu58STI6Hxxg=; b=CsMX0W53dlsnODOiz7UgrLBpL8PZMSCH3Aka1SGnyIA1RECrK8xJjawMvwmc9/RE92 7IB0t4ks3AR/6rBY8Zfevj+jG8T1Go6LLzJ0Sw2tFap1lRIGkZrWsuU41BGIJlzEUgFk amV3E7mytVV4Uk9StrfqKYDAUfywuvOpYl6ZkdHU7Bwbx2Xwka5jcypUG/7z7JbvWpBQ ZqGLMCef4NeUidBAu3huSol3TjapaPnaZqsBCsKt2ukZkVnCbhwDDELJrJvXQbqsbC/B 8mJsfza+PEhPcP/gVSMfmTQ4taN8Geqcj7snS3zENIjdCBhE3oixo0dfzaAwlAjDFpyU 3fgw== X-Gm-Message-State: ANoB5pkcwrxv07TUMW3VCFqCw2k572Se5zfq29NQkgw3HGsNYAIm6LZb i0p2HsneG409xb2bNRCRiiUPcYUQto22tg== X-Google-Smtp-Source: AA0mqf5bxofOiEPS1Mz/7kdiCxXL2DAJ4qvRQlJny+FeGNb94dIaXo4e5+CMIF4g4AluCSmG1OSL1w== X-Received: by 2002:a17:902:8e81:b0:188:4f86:e4d5 with SMTP id bg1-20020a1709028e8100b001884f86e4d5mr13687199plb.16.1669266145087; Wed, 23 Nov 2022 21:02:25 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id n1-20020a170902e54100b00188ef3ea2b6sm58686plf.262.2022.11.23.21.02.24 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 23 Nov 2022 21:02:24 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=casouri@gmail.com; helo=mail-pj1-x102f.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, 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:300424 Archived-At: > On Nov 23, 2022, at 8:57 PM, T.V Raman wrote: >=20 > Yuan Fu writes: >=20 >=20 > Confusing times ahead! >=20 > So: am I supposed to install tree-sitter from github or from debian's > package manager? Either should be fine. > 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? Most likely you = don=E2=80=99t have the relevant language definition/grammar for those = modes. You can probably find them on package managers, or you can build = with the script here: https://github.com/casouri/tree-sitter-module Do you think the error message could be improved? IIRC the error = reporting tells you you need language definitions, but maybe it should = explicitly say language definition !=3D tree-sitter library. Yuan=