GNU bug report logs -
#62155
30.0.50; elixir-ts-mode.elc warning
Previous Next
Reported by: Po Lu <luangruo <at> yahoo.com>
Date: Mon, 13 Mar 2023 02:08:01 UTC
Severity: normal
Found in version 30.0.50
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 62155 in the body.
You can then email your comments to 62155 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#62155
; Package
emacs
.
(Mon, 13 Mar 2023 02:08:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Po Lu <luangruo <at> yahoo.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Mon, 13 Mar 2023 02:08:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I get this building elixir-ts-mode:
ELC progmodes/elixir-ts-mode.elc
Warning (treesit): Cannot activate tree-sitter, because tree-sitter library is not compiled with Emacs
Would someone please DTRT?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#62155
; Package
emacs
.
(Mon, 13 Mar 2023 11:07:01 GMT)
Full text and
rfc822 format available.
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org> writes:
> I get this building elixir-ts-mode:
>
> ELC progmodes/elixir-ts-mode.elc
> Warning (treesit): Cannot activate tree-sitter, because tree-sitter library is not compiled with Emacs
>
> Would someone please DTRT?
Have you checked mid:83sfeat1jy.fsf <at> gnu.org (the end of bug#61996
thread)? It seems that there has since been a fix to your problem. If
even after the fix you still observe the problem, maybe Eli and Wilhelm
can chime in to help.
--
Best,
RY
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#62155
; Package
emacs
.
(Mon, 13 Mar 2023 11:07:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#62155
; Package
emacs
.
(Mon, 13 Mar 2023 13:17:01 GMT)
Full text and
rfc822 format available.
Message #14 received at submit <at> debbugs.gnu.org (full text, mbox):
Ruijie Yu via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:
> Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of
> text editors" <bug-gnu-emacs <at> gnu.org> writes:
>
>> I get this building elixir-ts-mode:
>>
>> ELC progmodes/elixir-ts-mode.elc
>> Warning (treesit): Cannot activate tree-sitter, because
>> tree-sitter library is not compiled with Emacs
>>
>> Would someone please DTRT?
>
> Have you checked mid:83sfeat1jy.fsf <at> gnu.org (the end of
> bug#61996
> thread)? It seems that there has since been a fix to your
> problem. If
> even after the fix you still observe the problem, maybe Eli and
> Wilhelm
> can chime in to help.
I can see there is still an issue with loading heex-ts-mode from
elixir-ts-mode, but not quite sure how to
immediately resolve it. I will have a look in a couple of hours.
The problem is in the top of elixir-ts-mode.el: (require
'heex-ts-mode) and then we call
(treesit-ready-p 'heex) in heex-ts-mode. I guess the intention
with the
convention here was to only load the -ts-mode when the user
explicitly requires, but it
breaks the way I called (require 'heex-ts-mode) from
elixir-ts-mode.el.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#62155
; Package
emacs
.
(Mon, 13 Mar 2023 13:17:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#62155
; Package
emacs
.
(Mon, 13 Mar 2023 14:34:02 GMT)
Full text and
rfc822 format available.
Message #20 received at 62155 <at> debbugs.gnu.org (full text, mbox):
> Cc: luangruo <at> yahoo.com, 62155 <at> debbugs.gnu.org
> From: Wilhelm Kirschbaum <wkirschbaum <at> gmail.com>
> Date: Mon, 13 Mar 2023 15:08:10 +0200
>
> I can see there is still an issue with loading heex-ts-mode from
> elixir-ts-mode, but not quite sure how to
> immediately resolve it. I will have a look in a couple of hours.
One possibility is to add defvar for each variable defined by
heex-ts-mode that elixir-ts-mode needs to use, and remove the require
of heex-ts-mode. Since heex-ts-mode is loaded at run time, I think
this should be enough.
> The problem is in the top of elixir-ts-mode.el: (require
> 'heex-ts-mode) and then we call
> (treesit-ready-p 'heex) in heex-ts-mode.
Yes.
> I guess the intention with the convention here was to only load the
> -ts-mode when the user explicitly requires, but it breaks the way I
> called (require 'heex-ts-mode) from elixir-ts-mode.el.
Yes.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#62155
; Package
emacs
.
(Mon, 13 Mar 2023 20:18:02 GMT)
Full text and
rfc822 format available.
Message #23 received at 62155 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>> Cc: luangruo <at> yahoo.com, 62155 <at> debbugs.gnu.org
>> From: Wilhelm Kirschbaum <wkirschbaum <at> gmail.com>
>> Date: Mon, 13 Mar 2023 15:08:10 +0200
>>
>> I can see there is still an issue with loading heex-ts-mode
>> from
>> elixir-ts-mode, but not quite sure how to
>> immediately resolve it. I will have a look in a couple of
>> hours.
>
> One possibility is to add defvar for each variable defined by
> heex-ts-mode that elixir-ts-mode needs to use, and remove the
> require
> of heex-ts-mode. Since heex-ts-mode is loaded at run time, I
> think
> this should be enough.
>
Thank you, this seems to work well.
[0001-Fix-elixir-ts-mode.elc-warning-bug-62155.patch (text/x-patch, attachment)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Thu, 16 Mar 2023 07:54:01 GMT)
Full text and
rfc822 format available.
Notification sent
to
Po Lu <luangruo <at> yahoo.com>
:
bug acknowledged by developer.
(Thu, 16 Mar 2023 07:54:01 GMT)
Full text and
rfc822 format available.
Message #28 received at 62155-done <at> debbugs.gnu.org (full text, mbox):
> From: Wilhelm Kirschbaum <wkirschbaum <at> gmail.com>
> Cc: ruijie <at> netyu.xyz, luangruo <at> yahoo.com, 62155 <at> debbugs.gnu.org
> Date: Mon, 13 Mar 2023 22:07:27 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> Cc: luangruo <at> yahoo.com, 62155 <at> debbugs.gnu.org
> >> From: Wilhelm Kirschbaum <wkirschbaum <at> gmail.com>
> >> Date: Mon, 13 Mar 2023 15:08:10 +0200
> >>
> >> I can see there is still an issue with loading heex-ts-mode
> >> from
> >> elixir-ts-mode, but not quite sure how to
> >> immediately resolve it. I will have a look in a couple of
> >> hours.
> >
> > One possibility is to add defvar for each variable defined by
> > heex-ts-mode that elixir-ts-mode needs to use, and remove the
> > require
> > of heex-ts-mode. Since heex-ts-mode is loaded at run time, I
> > think
> > this should be enough.
> >
>
> Thank you, this seems to work well.
Thanks, installed on the master branch.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 13 Apr 2023 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 31 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.