Skip to content
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

Loading the same module multiple times is probably broken #2004

Closed
p6rt opened this issue Aug 3, 2010 · 5 comments
Closed

Loading the same module multiple times is probably broken #2004

p6rt opened this issue Aug 3, 2010 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Aug 3, 2010

Migrated from rt.perl.org#76948 (status was 'resolved')

Searchable as RT76948$

@p6rt
Copy link
Author

p6rt commented Aug 3, 2010

From netprobe@gmail.com

mulander@​bunkier_mysli​:~/rakudo/rakudo-star-2010.07$ ./perl6 --version

This is Rakudo Perl 6, version 2010.07-47-g9fd5eaa built on parrot 2.6.0

Copyright 2008-2010, The Perl Foundation

Tests run from pwd​: /home/full/mulander/rakudo/rakudo-star-2010.07

In the provided rakudo interactive session I tried to use the Test module.
I succeeded running a simple test on line 8 (count including the prompt
./perl6).
Further tests I tried failed with the message​:
  get_attr_str() not implemented in class 'Sub'

I consulted this issue on the IRC #perl6 channel - providing the saved log​:
13​:52 < mulander> can someone explain this to me​:
http://pastebin.com/d6eyqg2v
13​:52 < mulander> why did it work on line 8 and crashed later on?
13​:53 < moritz_> mulander​: it seems that loading the same module multiple
times is broken
13​:53 < moritz_> mulander​: please send a bug report to rakudobug@​perl.org

The following snippet is also available online​: http://pastebin.com/d6eyqg2v

mulander@​bunkier_mysli​:~/rakudo/rakudo-star-2010.07$ ./perl6

use Test;
_block64
is 1,1, 'Is one eual one?';
Could not find sub &is
Test.is 1,1, 'Is one eual one?';
Confused at line 1, near "Test.is 1,"
use Test; is 1,1,'Is one equal one?';
ok 1 - Is one equal one?
use Test; is 1,1,'Is one equal one?'; is 2,2, 'Is two equal two'; is 2,3,
'Is two equal three?';
get_attr_str() not implemented in class 'Sub'
use Test; is 1,1,'Is one equal one?'; is 2,2,'Is two equal two'; is 2,3,
'Is two equal three?';
get_attr_str() not implemented in class 'Sub'
use Test; is 1,1,'Is one equal one?'; is 2,2,'Is two equal two';
get_attr_str() not implemented in class 'Sub'
use Test; is 1,1,'Is one equal one?'; is 2,2,'Is two equal two';
get_attr_str() not implemented in class 'Sub'
use Test; is 1,1,'Is one equal one?';
get_attr_str() not implemented in class 'Sub'
use Test; is 1,1,'Is one equal one?';
get_attr_str() not implemented in class 'Sub'

@p6rt
Copy link
Author

p6rt commented May 29, 2012

From @diakopter

different behavior on p6eval​:

13​:25 <p6eval> rakudo e2d876​: OUTPUT«===SORRY!===␤Cannot import symbol
'&plan' from package
  'Test', since it already exists in the lexpad␤»

@p6rt
Copy link
Author

p6rt commented May 29, 2012

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Aug 7, 2012

From @moritz

Works fine now. Closing ticket without spectests, since the REPL isn't
specced.

@p6rt
Copy link
Author

p6rt commented Aug 7, 2012

@moritz - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Aug 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant