Last active
September 29, 2021 12:21
-
-
Save whatnext/87c22a266f05d6f799ab5d2b01b610d3 to your computer and use it in GitHub Desktop.
cant-find-EXISTS-KEY
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Error occurs in following loop: | |
for self.options.kv -> $opt_i, $option { | |
say "option: $option"; | |
my $idr_class = "Scorecard_Sheet_" ~ $option.tclc; | |
require ::($idr_class); | |
my $scorecard = ::($idr_class).new; | |
# .... some stuff | |
} | |
unit class Scorecard_Sheet_Balance is Scorecard_Sheet; | |
has @.dictionary = [ | |
'Balance Sheet', | |
'Balance Statement', | |
'Statement of Balance', | |
'Balance', | |
'BS' | |
]; | |
unit class Scorecard_Sheet_Cashflow is Scorecard_Sheet; | |
has @.dictionary = [ | |
'Cashflow Sheet', | |
'Cashflow Statement', | |
'Cashflow', | |
'CF' | |
]; | |
# Output | |
option: balance | |
option: cashflow | |
===SORRY!=== Error while compiling Scorecard_Sheet_Cashflow.rakumod (ComRate::Extractor::Scorecard_Sheet_Cashflow) | |
Cannot find method 'EXISTS-KEY' on 'BOOTHash': no method cache and no .^find_method | |
at Scorecard_Sheet_Cashflow.rakumod (ComRate::Extractor::Scorecard_Sheet_Cashflow):2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cannot find method 'EXISTS-KEY' on 'BOOTHash': no method cache and no .^find_method
)at SETTING::src/core.c/operators.pm6:218 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:INDIRECT_NAME_LOOKUP)
from SETTING::src/core.c/CompUnit/RepositoryRegistry.pm6:394 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Lock.pm6:30 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:protect)
from SETTING::src/core.c/CompUnit/RepositoryRegistry.pm6:393 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:)
from gen/moar/BOOTSTRAP/v6c.nqp:1758 (/opt/rakudo-pkg/share/perl6/lib/Perl6/BOOTSTRAP/v6c.moarvm:)
from SETTING::src/core.c/CompUnit/RepositoryRegistry.pm6:32 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:repository-for-spec)
from SETTING::src/core.c/CompUnit/RepositoryRegistry.pm6:24 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:repository-for-spec)
from SETTING::src/core.c/CompUnit/RepositoryRegistry.pm6:200 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:setup-repositories)
from SETTING::src/core.c/Process.pm6:50 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Rakudo/Internals.pm6:1064 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:INITIALIZE-DYNAMIC)
from SETTING::src/core.c/stubs.pm6:38 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:DYNAMIC)
from SETTING::src/core.c/CompUnit/RepositoryRegistry.pm6:320 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:head)
from gen/moar/World.nqp:1496 (/opt/rakudo-pkg/bin/../share/perl6/lib/Perl6/World.moarvm:load_module)
from gen/moar/World.nqp:1446 (/opt/rakudo-pkg/bin/../share/perl6/lib/Perl6/World.moarvm:do_pragma_or_load_module)
from gen/moar/Grammar.nqp:1314 (/opt/rakudo-pkg/bin/../share/perl6/lib/Perl6/Grammar.moarvm:statement_control:sym)
from gen/moar/stage2/QRegex.nqp:1695 (/opt/rakudo-pkg/bin/../share/nqp/lib/QRegex.moarvm:!protoregex)
from :1 (/opt/rakudo-pkg/bin/../share/perl6/lib/Perl6/Grammar.moarvm:statement_control)
from gen/moar/Grammar.nqp:962 (/opt/rakudo-pkg/bin/../share/perl6/lib/Perl6/Grammar.moarvm:statement)
from gen/moar/Grammar.nqp:890 (/opt/rakudo-pkg/bin/../share/perl6/lib/Perl6/Grammar.moarvm:statementlist)
from gen/moar/stage2/NQPHLL.nqp:1465 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:LANG)
from gen/moar/Grammar.nqp:1342 (/opt/rakudo-pkg/bin/../share/perl6/lib/Perl6/Grammar.moarvm:FOREIGN_LANG)
from gen/moar/Grammar.nqp:838 (/opt/rakudo-pkg/bin/../share/perl6/lib/Perl6/Grammar.moarvm:comp_unit)
from gen/moar/Grammar.nqp:553 (/opt/rakudo-pkg/bin/../share/perl6/lib/Perl6/Grammar.moarvm:TOP)
from gen/moar/stage2/QRegex.nqp:2258 (/opt/rakudo-pkg/bin/../share/nqp/lib/QRegex.moarvm:parse)
from gen/moar/stage2/NQPHLL.nqp:2298 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:parse)
from gen/moar/stage2/NQPHLL.nqp:2214 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:execute_stage)
from gen/moar/stage2/NQPHLL.nqp:2249 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:run)
from gen/moar/stage2/NQPHLL.nqp:2245 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:)
from gen/moar/stage2/NQPHLL.nqp:2241 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:compile)
from gen/moar/stage2/NQPHLL.nqp:1916 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:eval)
from gen/moar/stage2/NQPHLL.nqp:2151 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:evalfiles)
from gen/moar/stage2/NQPHLL.nqp:2111 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:command_eval)
from gen/moar/Compiler.nqp:109 (/opt/rakudo-pkg/bin/../share/perl6/lib/Perl6/Compiler.moarvm:command_eval)
from gen/moar/stage2/NQPHLL.nqp:2036 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:command_line)
from gen/moar/rakudo.nqp:127 (/opt/rakudo-pkg/bin/../share/perl6/runtime/perl6.moarvm:MAIN)
from gen/moar/rakudo.nqp:1 (/opt/rakudo-pkg/bin/../share/perl6/runtime/perl6.moarvm:)
from :1 (/opt/rakudo-pkg/bin/../share/perl6/runtime/perl6.moarvm:
from :1 (/opt/rakudo-pkg/bin/../share/perl6/runtime/perl6.moarvm:)
at SETTING::src/core.c/Exception.pm6:54 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:throw)
)from SETTING::src/core.c/control.pm6:216 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:die)
from SETTING::src/core.c/control.pm6:204 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:die)
from SETTING::src/core.c/CompUnit/PrecompilationRepository.pm6:456 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:precompile)
from SETTING::src/core.c/CompUnit/PrecompilationRepository.pm6:316 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:precompile)
from SETTING::src/core.c/CompUnit/PrecompilationRepository.pm6:59 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:try-load)
from SETTING::src/core.c/CompUnit/Repository/FileSystem.pm6:82 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/CompUnit/Repository/FileSystem.pm6:76 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:need)
from site#sources/37653EDB728A26F20B16AF45FDA81F139277FD9B (Inline::Python):677 (/opt/rakudo-pkg/share/perl6/site/precomp/88D1CD0463B494396F450CB7C5B34387DD580D26/37/37653EDB728A26F20B16AF45FDA81F139277FD9B:need)
from /sdb/company/clients/comrate/extractor/script/../lib/ComRate/Extractor/Identifier_Sheet.rakumod (ComRate::Extractor::Identifier_Sheet):16 (/sdb/company/clients/comrate/extractor/script/../lib/.precomp/88D1CD0463B494396F450CB7C5B34387DD580D26/59/59E309643205142B9C9396437E7F648403C598CD:)
from SETTING::src/core.c/Any-iterable-methods.pm6:628 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:sink-all)
from SETTING::src/core.c/Seq.pm6:149 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:sink)
from /sdb/company/clients/comrate/extractor/script/../lib/ComRate/Extractor/Identifier_Sheet.rakumod (ComRate::Extractor::Identifier_Sheet):12 (/sdb/company/clients/comrate/extractor/script/../lib/.precomp/88D1CD0463B494396F450CB7C5B34387DD580D26/59/59E309643205142B9C9396437E7F648403C598CD:identify)
from /sdb/company/clients/comrate/extractor/script/../lib/ComRate/Extractor.rakumod (ComRate::Extractor):22 (/sdb/company/clients/comrate/extractor/script/../lib/.precomp/88D1CD0463B494396F450CB7C5B34387DD580D26/09/0930028C6208EDE3A42966B5FA6F5B2AEF4766C7:extract)
from extract.raku:23 (:MAIN)
from SETTING::src/core.c/Main.pm6:380 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Main.pm6:376 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:)
from SETTING::src/core.c/Main.pm6:375 (/opt/rakudo-pkg/bin/../share/perl6/runtime/CORE.c.setting.moarvm:RUN-MAIN)
from extract.raku:9 (:)
from extract.raku:1 (:)
from gen/moar/stage2/NQPHLL.nqp:1946 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:eval)
from gen/moar/stage2/NQPHLL.nqp:2151 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:evalfiles)
from gen/moar/stage2/NQPHLL.nqp:2111 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:command_eval)
from gen/moar/Compiler.nqp:109 (/opt/rakudo-pkg/bin/../share/perl6/lib/Perl6/Compiler.moarvm:command_eval)
from gen/moar/stage2/NQPHLL.nqp:2036 (/opt/rakudo-pkg/bin/../share/nqp/lib/NQPHLL.moarvm:command_line)
from gen/moar/rakudo.nqp:127 (/opt/rakudo-pkg/bin/../share/perl6/runtime/perl6.moarvm:MAIN)
from gen/moar/rakudo.nqp:1 (/opt/rakudo-pkg/bin/../share/perl6/runtime/perl6.moarvm:)
from :1 (/opt/rakudo-pkg/bin/../share/perl6/runtime/perl6.moarvm:
from :1 (/opt/rakudo-pkg/bin/../share/perl6/runtime/perl6.moarvm:)