From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mprodrigues@posteo.net Newsgroups: gmane.emacs.devel Subject: Treesit says grammar is unavailable when it Date: Fri, 10 Mar 2023 09:24:25 +0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35536"; mail-complaints-to="usenet@ciao.gmane.io" To: Emacs devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Mar 10 12:52:35 2023 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 1pabIY-00093V-TS for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Mar 2023 12:52:35 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pabI2-0000BQ-Um; Fri, 10 Mar 2023 06:52:02 -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 1paYzH-0006MJ-9Q for emacs-devel@gnu.org; Fri, 10 Mar 2023 04:24:31 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paYzF-0005bi-F3 for emacs-devel@gnu.org; Fri, 10 Mar 2023 04:24:31 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0FEEF2405ED for ; Fri, 10 Mar 2023 10:24:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1678440266; bh=zQcoMlcns6cGGMV297pz8qhAZk32obssRUfKZfZWH6c=; h=Date:From:To:Subject:From; b=MY/3R8ILnXmnKMLafNXBkDwSPgRj9z4ze1hDfw4tkHh8q1uGmka7mViXeBh4Bb+0B fDq92/QOGQ/BX9llM05zi6L3wkh1nFRY4F30lohwe90qQ/LOZT2nFmWXxmd3aFydkk DJu9NRVjGQ7GZ1B1HoIi8yqzZ+LZeGCxUyGEJUpJWgUY61u2Z7W74jEinpAamjxnIs ZAF4DKCDz/V7feZgvEpaUyriFq/xiyyNgruDWC0T+BHArXKEf/ZPRuujXH6rKEGvx2 /fS8YAejrRFYhG+kz6vOTKNRDZ2v8Jgx3eSU+WP9co6Oyn2N9UXUWAmFvtwZaSRwLW 7uuxOEZZWTOHw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PY0xP2vLFz9rxN for ; Fri, 10 Mar 2023 10:24:25 +0100 (CET) Received-SPF: pass client-ip=185.67.36.66; envelope-from=mprodrigues@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 10 Mar 2023 06:52:02 -0500 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:304237 Archived-At: Hello, I've been trying to test the new tree-sitter modes, but I'm having some difficulties and would like to debug this. I have tried dockerfile-ts-mode, python-ts-mode and yaml-ts-mode, of these only dockerfile worked, for the other two I get: Warning (treesit): Cannot activate tree-sitter, because language grammar for python is unavailable (not-found): (libtree-sitter-python libtree-sitter-python.so) No such file or directory but I have yaml and python's grammar under ~/.emacs.d/tree-sitter I tried compiling the grammars myself and use emacs's own treesit-install-language-grammar to no avail. How can I debug this? My emacs version is 30.0.50 Best regards, Mateus Rodrigues