unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48383: [native-compile] Debugging external package powerline.el
@ 2021-05-12 19:11 Arash Esbati
  2021-05-12 19:49 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 3+ messages in thread
From: Arash Esbati @ 2021-05-12 19:11 UTC (permalink / raw)
  To: 48383

Hi all,

I have successfully built Emacs with native-compile support on Win10[1]
and it works fine -- many thanks for this.

I've also installed powerline package from MELPA and Emacs fails to
compile the package with this error:

    x:/pathto/.emacs.d/elpa/powerline-20210428.1229/powerline.el:
    Error: List contains a loop ("22", . #0)
    Compilation finished.

How can I get more info about the error from the compiler?  Currently
Emacs tries to compile the package each time it starts (and fails) and
that makes the start slower.

TIA for any hint.

Best, Arash

Footnotes:
[1]  emacs-repository-version is 8b7495a722a57071cb2a978665f95f8227db2863





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

* bug#48383: [native-compile] Debugging external package powerline.el
  2021-05-12 19:11 bug#48383: [native-compile] Debugging external package powerline.el Arash Esbati
@ 2021-05-12 19:49 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-05-17 12:20   ` Arash Esbati
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-05-12 19:49 UTC (permalink / raw)
  To: Arash Esbati; +Cc: 48383

Arash Esbati <arash@gnu.org> writes:

> Hi all,
>
> I have successfully built Emacs with native-compile support on Win10[1]
> and it works fine -- many thanks for this.
>
> I've also installed powerline package from MELPA and Emacs fails to
> compile the package with this error:
>
>     x:/pathto/.emacs.d/elpa/powerline-20210428.1229/powerline.el:
>     Error: List contains a loop ("22", . #0)
>     Compilation finished.
>
> How can I get more info about the error from the compiler?  Currently
> Emacs tries to compile the package each time it starts (and fails) and
> that makes the start slower.
>
> TIA for any hint.
>
> Best, Arash
>
> Footnotes:
> [1]  emacs-repository-version is 8b7495a722a57071cb2a978665f95f8227db2863

Hi Arash,

if the compiler crashes I guess the next step is to debug it.  But
before doing that would be nice to isolate what's the function that is
causing the issue and create a reproducer.

Thanks

  Andrea

PS you can work around the issue of the startup adding powerline.el to
`native-comp-deferred-compilation-deny-list'.






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

* bug#48383: [native-compile] Debugging external package powerline.el
  2021-05-12 19:49 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-05-17 12:20   ` Arash Esbati
  0 siblings, 0 replies; 3+ messages in thread
From: Arash Esbati @ 2021-05-17 12:20 UTC (permalink / raw)
  To: Andrea Corallo; +Cc: 48383

Andrea Corallo <akrl@sdf.org> writes:

> if the compiler crashes I guess the next step is to debug it.

Thanks for your response.  In this case, the compiler doesn't crash.

> But before doing that would be nice to isolate what's the function
> that is causing the issue and create a reproducer.

From the discussion here[1], the problem seems to be the last line in
this function provided by powerline.el[2]:

    (defun pl/pattern (lst)
      "Turn LST into an infinite pattern."
      (when lst
        (let ((pattern (cl-copy-list lst)))
          (setcdr (last pattern) pattern)))) ;; <== Problematic form

Not being an Emacs issue, my question was if the native compiler could
be more verbose about the error.

> PS you can work around the issue of the startup adding powerline.el to
> `native-comp-deferred-compilation-deny-list'.

Thanks, this is what I did for now.

Best, Arash

Footnotes:
[1]  https://github.com/milkypostman/powerline/issues/187

[2]  https://github.com/milkypostman/powerline/issues/187#issuecomment-836582479





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

end of thread, other threads:[~2021-05-17 12:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-12 19:11 bug#48383: [native-compile] Debugging external package powerline.el Arash Esbati
2021-05-12 19:49 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-05-17 12:20   ` Arash Esbati

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).