26 Dec 2020 |
mesajor | [zzamboni(telegram)] š | 14:52:16 |
mesajor | [Ian(telegram)] Like I said, it is technically experimental so we canāt complain too much š | 15:42:46 |
mesajor | [zzamboni(telegram)] Maybe itās a good opportunity to rewrite alias in terms of eval instead of -source | 15:44:40 |
mesajor | [zzamboni(telegram)] Actually that was not too hard a change. Only disadvantage is that things within eval run within their own scope, so alias:new no longer can define the new function on the fly, always has to be done on startup | 16:31:10 |
mesajor | [zzamboni(telegram)] Question: is there some way to determine we are running interactively or from within rc.elv? | 16:31:37 |
mesajor | [zzamboni(telegram)] Done - alias is now upgraded to use eval instead of -source, so it works with the latest Elvish. It wasnāt even much of a change. I also cleaned up the code a bit :) | 16:51:07 |
mesajor | [Ian(telegram)] That was fast | 16:55:31 |
mesajor | [zzamboni(telegram)] It was a really simple change, only one function, and in fact the change made it simpler. Only downside is that it can no longer load the new alias in the current session, since eval works only within its own scope. | 17:00:34 |
mesajor | [Ian(telegram)] Generally pretty easy to just exec though | 17:01:21 |
mesajor | [zzamboni(telegram)] Indeed | 17:01:35 |
mesajor | [zzamboni(telegram)] Also cleaned up the code a bit, this was one of my first Elvish modules so parts of it were a bit wonky :) | 17:05:24 |
mesajor | [Ian(telegram)] I know that feeling. | 17:06:25 |
mesajor | [Ian(telegram)] Just did a bit of that at work this past week, lots of cursing the idiot who wrote the original code š. | 17:07:08 |
mesajor | [zzamboni(telegram)] š | 17:07:17 |
mesajor | [xiaqqaix(telegram)] I found the repro condition for b.elv.sh/1202. Itāsā¦ quite interesting. | 22:06:26 |
mesajor | [krader1961(gitter)] FWIW, I donāt use -source ; not even indirectly since I donāt use zzamboniās alias module. So itās not obvious the scenario you outlined in your update accounts for the panic Iām seeing. | 22:12:54 |
mesajor | [xiaqqaix(telegram)] @krader1961 do you mind filing another issue for the panic you saw? judging from the stack trace, itās almost certainty a different issue | 22:15:45 |
mesajor | [krader1961(gitter)] Sure. On the other hand perhaps what you found does account for the panic Iām seeing. I do use @zzamboniās āutilā module for its electric-delimiters function. And that module uses -source . Yet if I remove that from my rc.elv I still see a panic. Iāll try to narrow it down to a small reproduction and open an issue if itās clear itās not related to -source . | 22:21:46 |
mesajor | [xiaqqaix(telegram)] sounds good, thanks! | 22:22:35 |
28 Dec 2020 |
mesajor | [krader1961(gitter)] The panic Iām seeing from recent changes to the namespace code is related, but not due, to the -source command. See https://github.com/elves/elvish/issues/1204. Specifically, the panic Iām seeing is due to the conditional import trick popularized by @hhanche; e.g., nop (and $platform:is-unix (use unix)) . | 03:57:21 |
mesajor | [krader1961(gitter)] While this is technically a bug in the implementation it illustrates why using ātricksā of that nature tend to be problematic. | 03:58:38 |
29 Dec 2020 |
mesajor | [xiaqqaix(telegram)] thanks for filing this bug. iāll try to fix it before 2021 :) | 14:24:29 |
mesajor | [xiaqqaix(telegram)] isnāt raku (formerly perl6) lovely: | 14:26:01 |
mesajor | [xiaqqaix(telegram)] ~> perl6
To exit type āexitā or ā^Dā
my $name = āfile1.txtā
file1.txt
++$name
file2.txt
| 14:26:04 |
mesajor | [xiaqqaix(telegram)] i've been reading āusing rakuā btw: https://andrewshitov.com/using-raku/ | 14:26:57 |
| @xiaq:matrix.org changed the room topic to "Deprecated Elvish chatroom, use the native Gitter bridge instead: #elves_elvish:gitter.im" from "Elvish user group https://elv.sh/". | 14:36:09 |
@xiaq:matrix.org | This room is no longer synchronized with other Elvish chatrooms. Use #elves_elvish:gitter.im instead | 14:36:43 |
30 Dec 2020 |
| @josh:klar.sh joined the room. | 05:07:55 |
| @josh:klar.sh left the room. | 05:08:22 |
| @notramo:grin.hu joined the room. | 14:48:36 |