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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62066 in the body.
You can then email your comments to 62066 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#62066; Package emacs. (Thu, 09 Mar 2023 07:07:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mohammed Sadiq <sadiq <at> sadiqpk.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 09 Mar 2023 07:07:01 GMT) Full text and rfc822 format available.

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

From: Mohammed Sadiq <sadiq <at> sadiqpk.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.60; go-ts-mode: Couldn't enable go-ts-mode
Date: Thu, 09 Mar 2023 12:36:11 +0530
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.



In GNU Emacs 29.0.60 (build 26, x86_64-pc-linux-gnu, GTK+ Version
 3.24.36, cairo version 1.16.0) of 2023-03-09 built on purism
Repository revision: 7e1012765c40a10a8a051c39566778913dc7e224
Repository branch: emacs-29
Windowing system distributor 'The X.Org Foundation', version 
11.0.12101007
System Description: Debian GNU/Linux bookworm/sid




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62066; Package emacs. (Thu, 09 Mar 2023 07:22:01 GMT) Full text and rfc822 format available.

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

From: Mohammed Sadiq <sadiq <at> sadiqpk.org>
To: 62066 <at> debbugs.gnu.org
Subject: Re: bug#62066: Acknowledgement (29.0.60; go-ts-mode: Couldn't enable
 go-ts-mode)
Date: Thu, 09 Mar 2023 12:50:55 +0530
Hm... Reading the source at 
https://github.com/casouri/tree-sitter-module
and https://github.com/camdencheek/tree-sitter-go-mod/blob/main/Makefile
this looks like an issue with the build script in
https://github.com/casouri/tree-sitter-module, renaming the go-mod.so 
file
fixed the issue.

I shouldn't have assumed the tree-sitter-module was doing the right 
thing.
Please close the issue.

cheers,
Mohammed Sadiq




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62066; Package emacs. (Thu, 09 Mar 2023 08:12:02 GMT) Full text and rfc822 format available.

Message #11 received at 62066 <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.)




Added tag(s) notabug. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 09 Mar 2023 08:12:02 GMT) Full text and rfc822 format available.

Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 09 Mar 2023 08:12:03 GMT) Full text and rfc822 format available.

Notification sent to Mohammed Sadiq <sadiq <at> sadiqpk.org>:
bug acknowledged by developer. (Thu, 09 Mar 2023 08:12:03 GMT) Full text and rfc822 format available.

Message #18 received at 62066-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mohammed Sadiq <sadiq <at> sadiqpk.org>
Cc: 62066-done <at> debbugs.gnu.org
Subject: Re: bug#62066: Acknowledgement (29.0.60;
 go-ts-mode: Couldn't enable go-ts-mode)
Date: Thu, 09 Mar 2023 10:11:50 +0200
> Date: Thu, 09 Mar 2023 12:50:55 +0530
> From: Mohammed Sadiq <sadiq <at> sadiqpk.org>
> 
> Hm... Reading the source at 
> https://github.com/casouri/tree-sitter-module
> and https://github.com/camdencheek/tree-sitter-go-mod/blob/main/Makefile
> this looks like an issue with the build script in
> https://github.com/casouri/tree-sitter-module, renaming the go-mod.so 
> file
> fixed the issue.
> 
> I shouldn't have assumed the tree-sitter-module was doing the right 
> thing.
> Please close the issue.

Done.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 06 Apr 2023 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 21 days ago.

Previous Next


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