all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#62066: 29.0.60; go-ts-mode: Couldn't enable go-ts-mode
@ 2023-03-09  7:06 Mohammed Sadiq
       [not found] ` <handler.62066.B.16783455831993.ack@debbugs.gnu.org>
  2023-03-09  8:10 ` bug#62066: 29.0.60; go-ts-mode: Couldn't enable go-ts-mode Eli Zaretskii
  0 siblings, 2 replies; 4+ messages in thread
From: Mohammed Sadiq @ 2023-03-09  7:06 UTC (permalink / raw)
  To: 62066

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#62066: Acknowledgement (29.0.60; go-ts-mode: Couldn't enable go-ts-mode)
       [not found] ` <handler.62066.B.16783455831993.ack@debbugs.gnu.org>
@ 2023-03-09  7:20   ` Mohammed Sadiq
  2023-03-09  8:11     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: Mohammed Sadiq @ 2023-03-09  7:20 UTC (permalink / raw)
  To: 62066

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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#62066: 29.0.60; go-ts-mode: Couldn't enable go-ts-mode
  2023-03-09  7:06 bug#62066: 29.0.60; go-ts-mode: Couldn't enable go-ts-mode Mohammed Sadiq
       [not found] ` <handler.62066.B.16783455831993.ack@debbugs.gnu.org>
@ 2023-03-09  8:10 ` Eli Zaretskii
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2023-03-09  8:10 UTC (permalink / raw)
  To: Mohammed Sadiq; +Cc: 62066

tags 62066 notabug
thanks

> Date: Thu, 09 Mar 2023 12:36:11 +0530
> From: Mohammed Sadiq <sadiq@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.)





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#62066: Acknowledgement (29.0.60; go-ts-mode: Couldn't enable go-ts-mode)
  2023-03-09  7:20   ` bug#62066: Acknowledgement (29.0.60; go-ts-mode: Couldn't enable go-ts-mode) Mohammed Sadiq
@ 2023-03-09  8:11     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2023-03-09  8:11 UTC (permalink / raw)
  To: Mohammed Sadiq; +Cc: 62066-done

> Date: Thu, 09 Mar 2023 12:50:55 +0530
> From: Mohammed Sadiq <sadiq@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.





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-09  8:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-09  7:06 bug#62066: 29.0.60; go-ts-mode: Couldn't enable go-ts-mode Mohammed Sadiq
     [not found] ` <handler.62066.B.16783455831993.ack@debbugs.gnu.org>
2023-03-09  7:20   ` bug#62066: Acknowledgement (29.0.60; go-ts-mode: Couldn't enable go-ts-mode) Mohammed Sadiq
2023-03-09  8:11     ` Eli Zaretskii
2023-03-09  8:10 ` bug#62066: 29.0.60; go-ts-mode: Couldn't enable go-ts-mode Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.