all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#62072: 29.0.60; tree-sitter interferes with Custom
       [not found] <87h6uujkjx.fsf.ref@yahoo.com>
@ 2023-03-09 10:17 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-09 12:44   ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-09 10:17 UTC (permalink / raw)
  To: 62072

On a build without some tree-sitter libraries, click:

  Options -> Customize Emacs -> Toplevel Customization Group

then click Programming -> Languages.  A warning about not being able to
find certain tree-sitter libraries will pop up.





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

* bug#62072: 29.0.60; tree-sitter interferes with Custom
  2023-03-09 10:17 ` bug#62072: 29.0.60; tree-sitter interferes with Custom Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-09 12:44   ` Eli Zaretskii
  2023-03-09 13:29     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2023-03-09 12:44 UTC (permalink / raw)
  To: Po Lu; +Cc: 62072

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Thu, 09 Mar 2023 20:06:51 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Which missing grammar libraries cause this?  I tried a few, but
> > couldn't see any warnings.
> 
> All you have to do is click on "Programming -> Languages".  Here's one
> warning message I got:
> 
>  ■  Warning (treesit): Cannot activate tree-sitter, because language grammar for ruby is unavailable (not-found): (libtree-sitter-ruby libtree-sitter-ruby.so) No such file or directory

I already tried with ruby: I renamed the grammar library to another
name, but I don't see any warnings.  That's why I asked.

> but IIRC I also saw another errors on builds without tree-sitter at all.

That's a different situation, I think (I do see that in a build
without tree-sitter).





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

* bug#62072: 29.0.60; tree-sitter interferes with Custom
  2023-03-09 12:44   ` Eli Zaretskii
@ 2023-03-09 13:29     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-09 15:40       ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-09 13:29 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 62072

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Po Lu <luangruo@yahoo.com>
>> Cc: emacs-devel@gnu.org
>> Date: Thu, 09 Mar 2023 20:06:51 +0800
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> > Which missing grammar libraries cause this?  I tried a few, but
>> > couldn't see any warnings.
>> 
>> All you have to do is click on "Programming -> Languages".  Here's one
>> warning message I got:
>> 
>>  ■  Warning (treesit): Cannot activate tree-sitter, because language grammar for ruby is unavailable (not-found): (libtree-sitter-ruby libtree-sitter-ruby.so) No such file or directory
>
> I already tried with ruby: I renamed the grammar library to another
> name, but I don't see any warnings.  That's why I asked.

That's odd... are you sure you don't have another Ruby library somewhere
else?

>> but IIRC I also saw another errors on builds without tree-sitter at all.
>
> That's a different situation, I think (I do see that in a build
> without tree-sitter).

Well, both have to be fixed.

Thanks.





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

* bug#62072: 29.0.60; tree-sitter interferes with Custom
  2023-03-09 13:29     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-09 15:40       ` Eli Zaretskii
  2023-03-10  0:32         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2023-03-09 15:40 UTC (permalink / raw)
  To: Po Lu; +Cc: 62072

> From: Po Lu <luangruo@yahoo.com>
> Cc: 62072@debbugs.gnu.org
> Date: Thu, 09 Mar 2023 21:29:50 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > I already tried with ruby: I renamed the grammar library to another
> > name, but I don't see any warnings.  That's why I asked.
> 
> That's odd... are you sure you don't have another Ruby library somewhere
> else?

Yes, because "M-x ruby-ts-mode RET" does complain aboiut the missing
library.

> >> but IIRC I also saw another errors on builds without tree-sitter at all.
> >
> > That's a different situation, I think (I do see that in a build
> > without tree-sitter).
> 
> Well, both have to be fixed.

No, not necessarily.





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

* bug#62072: 29.0.60; tree-sitter interferes with Custom
  2023-03-09 15:40       ` Eli Zaretskii
@ 2023-03-10  0:32         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-10  7:30           ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-10  0:32 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 62072

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Po Lu <luangruo@yahoo.com>
>> Cc: 62072@debbugs.gnu.org
>> Date: Thu, 09 Mar 2023 21:29:50 +0800
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> > I already tried with ruby: I renamed the grammar library to another
>> > name, but I don't see any warnings.  That's why I asked.
>> 
>> That's odd... are you sure you don't have another Ruby library somewhere
>> else?
>
> Yes, because "M-x ruby-ts-mode RET" does complain aboiut the missing
> library.

That's odd.  I will do a make bootstrap and ack.

> No, not necessarily.

Why?





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

* bug#62072: 29.0.60; tree-sitter interferes with Custom
  2023-03-10  0:32         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-10  7:30           ` Eli Zaretskii
  2023-03-10  8:33             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2023-03-10  7:30 UTC (permalink / raw)
  To: Po Lu; +Cc: 62072

> From: Po Lu <luangruo@yahoo.com>
> Cc: 62072@debbugs.gnu.org
> Date: Fri, 10 Mar 2023 08:32:44 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > No, not necessarily.
> 
> Why?

Because it's a known issue for which there's no known way of fixing it
without causing worse problems.  And because the problem is not very
severe and happens in relatively rare use cases.





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

* bug#62072: 29.0.60; tree-sitter interferes with Custom
  2023-03-10  7:30           ` Eli Zaretskii
@ 2023-03-10  8:33             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-10 11:47               ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-10  8:33 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 62072

I don't see the problem with ruby-ts-mode on emacs-29 after doing `make
bootstrap', but I still see it on master.

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Po Lu <luangruo@yahoo.com>
>> Cc: 62072@debbugs.gnu.org
>> Date: Fri, 10 Mar 2023 08:32:44 +0800
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> > No, not necessarily.
>> 
>> Why?
>
> Because it's a known issue for which there's no known way of fixing it
> without causing worse problems.  And because the problem is not very
> severe and happens in relatively rare use cases.

Why is this?





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

* bug#62072: 29.0.60; tree-sitter interferes with Custom
  2023-03-10  8:33             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-10 11:47               ` Eli Zaretskii
  2023-03-10 12:19                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 10+ messages in thread
From: Eli Zaretskii @ 2023-03-10 11:47 UTC (permalink / raw)
  To: Po Lu; +Cc: 62072

> From: Po Lu <luangruo@yahoo.com>
> Cc: 62072@debbugs.gnu.org
> Date: Fri, 10 Mar 2023 16:33:43 +0800
> 
> I don't see the problem with ruby-ts-mode on emacs-29 after doing `make
> bootstrap', but I still see it on master.

Master could take a couple of days to get the changes from the branch.

> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Po Lu <luangruo@yahoo.com>
> >> Cc: 62072@debbugs.gnu.org
> >> Date: Fri, 10 Mar 2023 08:32:44 +0800
> >> 
> >> Eli Zaretskii <eliz@gnu.org> writes:
> >> 
> >> > No, not necessarily.
> >> 
> >> Why?
> >
> > Because it's a known issue for which there's no known way of fixing it
> > without causing worse problems.  And because the problem is not very
> > severe and happens in relatively rare use cases.
> 
> Why is this?

Why is what?





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

* bug#62072: 29.0.60; tree-sitter interferes with Custom
  2023-03-10 11:47               ` Eli Zaretskii
@ 2023-03-10 12:19                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-03-10 12:40                   ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-03-10 12:19 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 62072

Eli Zaretskii <eliz@gnu.org> writes:

> Why is what?

I mean, why can't we wrap whatever in Custom is generating the warning
inside `with-no-warnings' for now?





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

* bug#62072: 29.0.60; tree-sitter interferes with Custom
  2023-03-10 12:19                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2023-03-10 12:40                   ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2023-03-10 12:40 UTC (permalink / raw)
  To: Po Lu; +Cc: 62072

> From: Po Lu <luangruo@yahoo.com>
> Cc: 62072@debbugs.gnu.org
> Date: Fri, 10 Mar 2023 20:19:29 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Why is what?
> 
> I mean, why can't we wrap whatever in Custom is generating the warning
> inside `with-no-warnings' for now?

If you can suggest a patch which affects only the cases where these
options are evaluated as part of a large group, that's fine by me.
The problem is that we _do_ want the warning if the use customizes
specific options that require tree-sitter.  If Customize can
distinguish between those, I'm all for warning in one case, but not in
the other.





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

end of thread, other threads:[~2023-03-10 12:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <87h6uujkjx.fsf.ref@yahoo.com>
2023-03-09 10:17 ` bug#62072: 29.0.60; tree-sitter interferes with Custom Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-09 12:44   ` Eli Zaretskii
2023-03-09 13:29     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-09 15:40       ` Eli Zaretskii
2023-03-10  0:32         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10  7:30           ` Eli Zaretskii
2023-03-10  8:33             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 11:47               ` Eli Zaretskii
2023-03-10 12:19                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-10 12:40                   ` 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.