From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: tree-sitter and language support Date: Fri, 25 Nov 2022 14:28:24 +0200 Message-ID: <83cz9busk7.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8991"; 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 13:29:12 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 1oyXpP-00029L-Vf for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Nov 2022 13:29:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyXon-00041o-31; Fri, 25 Nov 2022 07:28: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 1oyXog-0003v2-6q for emacs-devel@gnu.org; Fri, 25 Nov 2022 07:28:27 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyXoK-0006Hi-37; Fri, 25 Nov 2022 07:28:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=HYxooutHY5fsOFZU4yriynheQidJseVkkx4ku1SoeW4=; b=RgmQfhFZvZZo AMo6VrplM9Qb3ypA6DbzmOfM+nMAtmV2D2jRHYGkSv34TDDTQgL5GBHu6L2iUR8PKJZNYrdO+yraE 2iQzXjGevSIDBpV7X1UgbWFS/X2vziNc99ofAQ027RDgK+/hE1QchyorcmO5v/z24fBG2HwounyWI D98a1zszjQGSvWX4nIdAzZ1Y/0DeSzkeD/+4X2AiC6MtJ9NC5qe4QV1Kd33Y10Glxo8hNJ9lSar54 jUaPuDKDxRSXTO5ZAlE4BlCo0GRmXrWYxHRVPa+6VqflLsJh8SYGMrplPjytAr2u7GCzlRkF65jtS 2WoaC8hV7y+pM02snul7aQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyXoJ-0006n8-9U; Fri, 25 Nov 2022 07:28:03 -0500 In-Reply-To: (raman@google.com) 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:300478 Archived-At: > Date: Thu, 24 Nov 2022 21:20:29 -0800 > From: "T.V Raman" > > I installed from elpa/melpa: > > ls -1 -d tree-sitter-* > tree-sitter-20220212.1632/ > tree-sitter-langs-20221122.645/ > 21:18:06 elpa $ > > but emacs compiled from latest Git Head still produces the completely > unhelpful message > tree-support for language is unavailable if I invoke c-ts-mode or > c++-ts-mode The tree-sitter-20220212 package is an external Emacs module, so it is incompatible with the tree-sitter enabled modes you see on the master branch. Instead, you should simply install the tree-sitter library using whatever distro you use to update your system. Or build the tree-sitter library yourself, from its Git repository, and then install it. And the tree-sitter-langs-20221122 package requires you to run procedures to download, compile, and install the language support libraries. Did you run those procedures? If not, you won't have the language support libraries where Emacs looks for them.