[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: nativecomp and throw/catch across files
From: |
Aaron Jensen |
Subject: |
Re: nativecomp and throw/catch across files |
Date: |
Thu, 18 Feb 2021 02:36:50 -0600 |
On Thu, Feb 18, 2021 at 2:06 AM Andrea Corallo <akrl@sdf.org> wrote:
>
> Hi Aaron,
>
> is there a corresponding issue open in straight? Perhaps straight
> developers can narrow down the issue and suggest a minimal reproducer in
> case this is a real issue on our side.
Reported here: https://github.com/raxod502/straight.el/issues/697
I believe the issue is that in the case that the version changes, the
throw works and the catch works. However, immediately after that, they
byte-compile straight.el and then attempt to load the elc. However,
because there's an eln, the eln is preferred and it throws again
because it wasn't rebuilt. If I rebuild the eln as well, it works as
expected.
https://github.com/raxod502/straight.el/blob/2d407bccd9378f1d5218f8ba2ae85c6be73fbaf1/bootstrap.el#L62-L65
Would it make sense to somehow invalidate the eln if the elc is
recompiled on the emacs side? Or should straight detect native-compile
and run it as well as byte-compile-file in this scenario?
Thanks,
Aaron