|
Fire is step THREE! | github.com/perl6/toolchain-bikeshed | Channel logs: irclog.perlgeek.de/perl6-toolchain/today | useful prior art: metacpan.org/pod/CPAN::Meta::Spec Set by moderator on 24 April 2016. |
|||
|
00:35
lizmat joined
01:00
lizmat joined
05:07
cognominal joined
06:09
domidumont joined
06:15
domidumont joined
|
|||
| nine_ | ::Installation v1 format also uses \\0 for delimiting | 06:44 | |
| MadcapJake | nine_: any idea why my test code is just freezing? Any way to test? the gdb bt doesn't seem to really tell me what's going on | 06:49 | |
| perl6-debug-m doesn't get past `>>> LOADING example.pl6` | 06:50 | ||
| nine_ | MadcapJake: you can get a Perl 6 backtrace from gdb by entering: call MVM_dump_backtrace(tc) | 06:54 | |
| MadcapJake | sweet thanks for the tip! | ||
| nine_ | You may have to "up" a couple of times if MoarVM is currently inside system libraries | ||
| MadcapJake | up? like enter that in the gdb prompt? | ||
| nine_ | yes | ||
| MadcapJake | ok (gdb n00b here) | 06:55 | |
| nine_ | to go up a stack frame until you are in a MoarVM function and tc is visible | ||
| Also "thread apply all bt" can give you a hint as "bt" only shows the currently active thread | 06:56 | ||
| MadcapJake | looks like I'm creating an infinite repo-chain loop :P | 06:58 | |
| but if that was the case, my say statements would be logged to the console and they aren't | 06:59 | ||
| nine_ | use note instead of say | ||
| Does it precompile in your example? | 07:00 | ||
| MadcapJake | nope it doesn't make it that far | ||
| ok hanging solved now more errors to work through! thanks again! Now I *really* need to go to bed :) | 07:28 | ||
| nine_ | You're welcome :) | ||
|
07:51
lizmat joined
11:10
leont_ joined
12:40
perlpilot joined
13:10
ribasushi joined
14:07
leont_ joined
14:34
cognominal joined
14:57
domidumont joined
|
|||
| MadcapJake | Now it dies in short-id2class saying "No CompUnit::Repository known by 'gx'" | 15:02 | |
| short-id2class tries ::($short-id) but then if it's an available type it takes the short-id and puts it in the internal hash of short-ids. | 15:05 | ||
| So is my short-id method supposed to return the class or a string? | |||
| ugexe | you have to hard code the short names right now | 15:09 | |
| ah im wrong, im thinking of the repo's name like site/home | 15:11 | ||
| MadcapJake | I think short-id2class needs to be exposed as a method | 15:13 | |
| ugexe | you have to call `BEGIN { short-id2class('gx') = 'CompUnit::Repository::GX'; }` I think | ||
| MadcapJake | will that work? it's not exported | ||
| ugexe | oh yeah, i think i had this problem too | ||
| it *used* to work | |||
| but now yeah, you have to copy that subroutine | 15:14 | ||
| MadcapJake | what do you mean by that? | ||
| ugexe | i meant having your own copy of short-id2class in your CUR, but looking at it now I see that won't work well because of the state | 15:15 | |
|
15:15
leont_ joined
|
|||
| ugexe | you could patch it to be an our sub and access via CompUnit::Repostory::short-id2class(...) perhaps | 15:16 | |
| github.com/rakudo/rakudo/blob/1037...ry.pm#L210 | |||
| MadcapJake | yeah that's probably what needs to be done | 15:17 | |
| nine_ | The plan is that Rakudo automatically loads installed Repository implementations instead of having a hard coded list | 16:11 | |
| MadcapJake | how would that work? | 16:13 | |
| nine_: also, can short-id2class be changed to an `our` sub until that work is completed? | 16:14 | ||
| ugexe | you just have a location (or CUR) specifically for CURs so that they can be discovered instead of the CUR having to register themselves (short-id2class) | 16:15 | |
| MadcapJake | ahh | 16:18 | |
| ugexe: I tried installing CUR::GX using zef and your install-to argument: | |||
| "zef --install-to="/home/jrusso/github/rakudo/install/share/perl6/site" install /home/jrusso/github/CompUnit-Repository-GX/" | |||
| and I get this error: "Method 'IO' not found for invocant of class 'Any'" | |||
| ugexe | --install-to=site | ||
| try that | 16:19 | ||
| MadcapJake | but I want to make sure it uses my rakudo install and not rakudobrew's | ||
| ugexe | hmm, maybe --install-to='inst#$path' | 16:20 | |
| MadcapJake | same error | 16:21 | |
| nine_ | MadcapJake: then make sure it uses your rakudo install's perl6 | ||
| MadcapJake | how? | 16:22 | |
| ugexe | /path/to/perl6/to/use/perl6 /path/to/zef/bin/zef install $path-or-name ? | ||
| i just tried the custom install location test in xt/ and it passed at least | 16:23 | ||
| (zef doesn't have to be installed, so you can invoke the `git clone` directory of it with whatever perl6 you want) | 16:25 | ||
| MadcapJake | ugexe: thanks. installing failed (got an unboxing error) but using the uninstalled script with rakudo works (fish shell functions makes this relatively painless) | 16:32 | |
| I submitted a PR with that patch to short-id2class | 16:43 | ||
|
16:59
Kassandry joined
18:51
hankache joined
22:23
lizmat joined
|
|||
| MadcapJake | ugexe, nine_: I found something that seems to work: github.com/MadcapJake/gx-perl6/blo...GX.pm6#L11 | 22:47 | |
| Still not fully working but the errors are becoming more and more promising! :) | |||
|
23:27
cognominal joined
23:55
cognominal joined
|
|||