Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Unhelpful error message when having duplicate classnames
use v6;
use JSON::Tiny::Actions;
class META::Lint is JSON::Tiny::Actions {
}
use v6;
use JSON::Tiny::Grammar;
## ERROR - classname below should be "grammar META::Lint::Grammar is JSON::Tiny::Grammar"
class META::Lint is JSON::Tiny::Grammar {
}
use v6;
unit module META::Lint;
use META::Lint::Grammar;
use META::Lint::Actions;
$ perl6 --ll-exception t/meta.t
P6M Merging GLOBAL symbols failed: duplicate definition of symbol Lint
at gen/moar/m-CORE.setting:20096 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:throw:215)
from gen/moar/m-CORE.setting:34471 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::15)
from gen/moar/m-CORE.setting:34469 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::47)
from <unknown>:1 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::18)
from gen/moar/m-ModuleLoader.nqp:170 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/ModuleLoader.moarvm:merge_globals:280)
from gen/moar/m-ModuleLoader.nqp:158 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/ModuleLoader.moarvm:merge_globals:210)
from gen/moar/m-CORE.setting:18054 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:merge-symbols:63)
from src/Perl6/World.nqp:979 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/World.moarvm:load_module:187)
from src/Perl6/World.nqp:909 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/World.moarvm:do_pragma_or_load_module:151)
from src/Perl6/Grammar.nqp:1530 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:statement_control:sym<use>:1281)
from gen/moar/stage2/QRegex.nqp:1379 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/QRegex.moarvm:!protoregex:109)
from <unknown>:1 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:statement_control:10)
from src/Perl6/Grammar.nqp:1225 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:statement:371)
from src/Perl6/Grammar.nqp:1154 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:statementlist:241)
from src/Perl6/Grammar.nqp:2331 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:package_def:2816)
from <unknown>:1 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:package_declarator:sym<module>:175)
from gen/moar/stage2/QRegex.nqp:1379 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/QRegex.moarvm:!protoregex:109)
from <unknown>:1 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:package_declarator:10)
from src/Perl6/Grammar.nqp:2417 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:scoped:378)
from <unknown>:1 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:scope_declarator:sym<unit>:107)
from gen/moar/stage2/QRegex.nqp:1379 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/QRegex.moarvm:!protoregex:109)
from <unknown>:1 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:scope_declarator:10)
from <unknown>:1 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:term:sym<scope_declarator>:57)
from gen/moar/stage2/QRegex.nqp:1379 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/QRegex.moarvm:!protoregex:109)
from <unknown>:1 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:term:10)
from src/Perl6/Grammar.nqp:3733 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:termish:410)
from gen/moar/stage2/NQPHLL.nqp:683 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:EXPR:74)
from src/Perl6/Grammar.nqp:3768 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:EXPR:28)
from src/Perl6/Grammar.nqp:1225 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:statement:401)
from src/Perl6/Grammar.nqp:1154 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:statementlist:241)
from gen/moar/stage2/NQPHLL.nqp:907 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:LANG:146)
from src/Perl6/Grammar.nqp:1544 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:FOREIGN_LANG:67)
from src/Perl6/Grammar.nqp:1138 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:comp_unit:1029)
from src/Perl6/Grammar.nqp:441 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:TOP:524)
from gen/moar/stage2/QRegex.nqp:2093 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/QRegex.moarvm:parse:44)
from gen/moar/stage2/NQPHLL.nqp:1594 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:parse:80)
from gen/moar/stage2/NQPHLL.nqp:1550 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:compile:200)
from gen/moar/m-CORE.setting:34461 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:load-source:68)
from gen/moar/m-CORE.setting:34453 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:load-source-file:51)
from gen/moar/m-CORE.setting:35307 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::10)
from gen/moar/m-CORE.setting:29461 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:METAOP_TEST_ASSIGN:<||>:36)
from gen/moar/m-CORE.setting:35307 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::242)
from gen/moar/m-CORE.setting:35288 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm::220)
from gen/moar/m-CORE.setting:35249 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm:need:72)
from src/Perl6/World.nqp:978 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/World.moarvm:load_module:166)
from src/Perl6/World.nqp:909 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/World.moarvm:do_pragma_or_load_module:151)
from src/Perl6/Grammar.nqp:1530 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:statement_control:sym<use>:1281)
from gen/moar/stage2/QRegex.nqp:1379 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/QRegex.moarvm:!protoregex:109)
from <unknown>:1 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:statement_control:10)
from src/Perl6/Grammar.nqp:1225 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:statement:371)
from src/Perl6/Grammar.nqp:1154 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:statementlist:241)
from gen/moar/stage2/NQPHLL.nqp:907 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:LANG:146)
from src/Perl6/Grammar.nqp:1544 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:FOREIGN_LANG:67)
from src/Perl6/Grammar.nqp:1138 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:comp_unit:1029)
from src/Perl6/Grammar.nqp:441 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Grammar.moarvm:TOP:524)
from gen/moar/stage2/QRegex.nqp:2093 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/QRegex.moarvm:parse:44)
from gen/moar/stage2/NQPHLL.nqp:1594 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:parse:80)
from gen/moar/stage2/NQPHLL.nqp:1550 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:compile:200)
from gen/moar/stage2/NQPHLL.nqp:1287 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:eval:62)
from gen/moar/stage2/NQPHLL.nqp:1507 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:evalfiles:91)
from gen/moar/stage2/NQPHLL.nqp:1401 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:command_eval:214)
from src/Perl6/Compiler.nqp:69 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Compiler.moarvm:command_eval:93)
from gen/moar/stage2/NQPHLL.nqp:1375 (/home/sjn/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm:command_line:114)
from gen/moar/m-main.nqp:37 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:MAIN:18)
from gen/moar/m-main.nqp:33 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:<mainline>:189)
from <unknown>:1 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:<main>:8)
from <unknown>:1 (/home/sjn/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm:<entry>:9)
use v6;
use Test;
use lib 'lib';
use META::Lint;
subtest {
my $p = META::Lint.new;
isa-ok $p, 'META::Lint';
}
done-testing;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.