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 and language support Date: Thu, 24 Nov 2022 22:51:51 -0800 Message-ID: <6C4C266A-BC65-4486-80D1-1337A07CD6CF@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="6186"; 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 Fri Nov 25 07:52:36 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 1oySZg-0001RC-7x for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Nov 2022 07:52:36 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oySZ4-0006K0-66; Fri, 25 Nov 2022 01:51: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 1oySZ2-0006Jc-9k for emacs-devel@gnu.org; Fri, 25 Nov 2022 01:51:56 -0500 Original-Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oySZ0-0001nx-7g for emacs-devel@gnu.org; Fri, 25 Nov 2022 01:51:55 -0500 Original-Received: by mail-pf1-x432.google.com with SMTP id l7so874144pfl.7 for ; Thu, 24 Nov 2022 22:51:53 -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=Yt7RhixpGqzmp7AWDPy0HplDPZh3KUodrH7HIwmr0EY=; b=cq6fp24ABYor3fXALx+IEAnjhDLC8I4gcfxoUlT5jSI2QiHwDhxkiO+wAGm2C9lF+a 8v/l8qLdhKZiqetwzOPdHGUcYijgYHu7LHu/mN+laCbS0VFM6rWyInLTLL7G7ovr0ona +gc10rO9YmKtXXD3huwuq+HDi6SkAZZ2Ci1pA2SUQKF56+Pvfxi4IrUJmINHns7u1Avm S6E0at5Hl9DVCg7CnDen3U9S43qbPgxpm6YZT8xSrqMTvFwwKUutYuQoGsCx1BRMi4xr 9qm3+TE+9eOcCXzo5/HmmeDEvmWQb666DuXtGV7LpvsKpnuAY6ZL3b/Eq1hQpDgE0SzA hoyg== 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=Yt7RhixpGqzmp7AWDPy0HplDPZh3KUodrH7HIwmr0EY=; b=Am+7APfF2kstgCn8JsVi4eCQDpcLVuUDBvlo1ACLKXssnpwb953xa3yJ9Y78EmPFRx FxhKWaGcEfUekXFeRxHtzeY7AbPd49OCmWNcYGURINrKwDcw5juii9VgF671fHiM9JWH dK4YDWjk4GWNDSMqH+hkdrc0+zbhdAy/IBTMhGAWY4eETI1T7oZSW7+u9oWovMYU1LND TjPa55BzU5BnqD3FR+av3QZdv8diz7YqTReVY9LwxkqiEC+lOs7sFjwMFJZTfaJeCrIn QCye7Vr44SvshQ3U9LOlV2uY/kor/mzUElYZ3YIJmSZhKLsGoWA4N4ei8mahCAWGhYEf fVLw== X-Gm-Message-State: ANoB5pl790YHtp2C/57osDrcI6NSZGdBUj8H5Y8dr30SIvZs6UmIoF2K ENUBfhpvLHDQGSUltfOgjts= X-Google-Smtp-Source: AA0mqf5AIuk1qLvYR54Y21PK0w2H8NyHIV7UKnWe3Ilv4ofIuJWdvgMjrmgWt38RLMKCZj5ihQujyQ== X-Received: by 2002:a05:6a00:1d21:b0:574:a486:cb with SMTP id a33-20020a056a001d2100b00574a48600cbmr3978708pfx.11.1669359112824; Thu, 24 Nov 2022 22:51:52 -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 v7-20020a1709029a0700b0017fe9b038fdsm2532855plp.14.2022.11.24.22.51.52 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 24 Nov 2022 22:51:52 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::432; envelope-from=casouri@gmail.com; helo=mail-pf1-x432.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:300462 Archived-At: > On Nov 24, 2022, at 9:20 PM, T.V Raman wrote: >=20 > I installed from elpa/melpa: >=20 > ls -1 -d tree-sitter-* > tree-sitter-20220212.1632/ > tree-sitter-langs-20221122.645/ > 21:18:06 elpa $=20 >=20 > but emacs compiled from latest Git Head still produces the completely > unhelpful message=20 > tree-support for language is unavailable if I invoke c-ts-mode or > c++-ts-mode >=20 > A note in the News file detailing what bits one needs to install might > be the shoes we need to help us walk the final mile on this long road > to tree-sitter integration. We are just starting to work on tree-sitter=E2=80=99s user-facing = documentation, including the (emacs) manual and NEWS file. I=E2=80=99ll = definitely improve the error message. In the meantime, find files that = looks like libtree-sitter-xxx.so and put them under = ~/.emacs.d/tree-sitter (or a standard library location like = /usr/local/lib), and Emacs should be able to find them. Yuan=