GNU bug report logs - #62066
29.0.60; go-ts-mode: Couldn't enable go-ts-mode

Previous Next

Package: emacs;

Reported by: Mohammed Sadiq <sadiq <at> sadiqpk.org>

Date: Thu, 9 Mar 2023 07:07:01 UTC

Severity: normal

Tags: notabug

Found in version 29.0.60

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #13 received at control <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 62066 <at> debbugs.gnu.org
Subject: Re: bug#62066: 29.0.60; go-ts-mode: Couldn't enable go-ts-mode
Date: Thu, 09 Mar 2023 10:10:53 +0200
tags 62066 notabug
thanks

> Date: Thu, 09 Mar 2023 12:36:11 +0530
> From: Mohammed Sadiq <sadiq <at> sadiqpk.org>
> 
> When I try to M-x go-ts-mode in some file buffer, it fails with the
> following error:
> 
> ⛔ Warning (treesit): Cannot activate tree-sitter, because language
> grammar for gomod is unavailable (not-found): (libtree-sitter-gomod
> libtree-sitter-gomod.so) No such file or directory
> 
> I have installed all the required libraries running batch.sh script from
> https://github.com/casouri/tree-sitter-module
> 
> In the dist directory, I see a libtree-sitter-go-mod.so but not
> libtree-sitter-gomod.so.

The correct name is libtree-sitter-gomod.so.  So this is your local
system configuration issue, not a bug in Emacs.

Please don't use the outdated script from
https://github.com/casouri/tree-sitter-module, use the one in
admin/notes/tree-sitter/build-module directory in the Emacs Git
repository instead.  (Actually, the command
treesit-install-language-grammar should be even better.)




This bug report was last modified 2 years and 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.