New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug detecting circular dependencies #4767
Comments
From @MARTIMMCircular dependencies on modules are not detected anymore. Golfed code; File 1 use v6; File 2 (Circ1.pm6) use v6; File 3 (Circ2.pm6) use v6; This will bring the computer to its knees! When installing the new version it seems that the bug is there for a Greetings, |
From @autarchI can confirm that this is still happening as of today's rakudo. It seems like an important bug to fix, but maybe more importantly, how are we supposed to handle circular deps? Consider a pair of classes, Tree and Node, which both need to refer to each other. Tree.pm6 unit class Tree; use Node; has Node $top; Node.pm6 unit class Node; use Tree; has Tree $tree; Given that I have to use a module in order to refer to its type, this seems like a problem that will occur _way_ more often in Perl 6 than in Perl 5. |
The RT System itself - Status changed from 'new' to 'open' |
From @MARTIMMOn 12/31/2015 06:58 AM, Dave Rolsky via RT wrote:
Often you can cope by not typing them in both modules . Then e.g. the |
From @SkarsnikUsing https://gist.github.com/Skarsnik/df17adee07c18fa52c00 as a test Perl6 just go on forever. Tested with a recent Rakudo skarsnik@testperl6:~/devel/tmp$ ../rakudo/install/bin/perl6 --version |
From @MARTIMMOn 01/12/2016 02:26 PM, Sylvain Colinet (via RT) wrote:
|
From @MadcapJake1. have a `lib` directory with a circularly dependent files (such as these To elaborate on said inferno, my machine locks up in less than a minute. So I restart and tried again this time with a process monitor open to see |
From @masak<RabidGravy> I like to (possibly superstitiously) have a test file with just use-ok in it to catch any weird dependency issues |
From @MARTIMMThere should be already several bug reports mentioning this. I and someone Marcel Timmerman On March 27, 2016 6:47:08 PM Carl Mäsak via RT
|
From @smlsWhen two modules `use` each other, Rakudo does not throw a compile-time error as it should. Minimalist test case to reproduce the problem: $ echo "use B;" > A.pm Insight from IRC discussion: psch: we did have circular module loading detection at some point... lizmat: before, the detection lived in the nqp code, if I recall This is Rakudo version 2016.05-26-g7500ea2 built on MoarVM version 2016.05 |
From @zoffixznetThis is fixed per https://irclog.perlgeek.de/perl6/2017-09-05#i_15118699 Marking as TESTNEEDED |
From @zoffixznetTests added Raku/roast@5685050756 |
@zoffixznet - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#126688 (status was 'resolved')
Searchable as RT126688$
The text was updated successfully, but these errors were encountered: