Skip to content

Instantly share code, notes, and snippets.

@Xliff
Last active March 23, 2021 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Xliff/06a93b02d82f994c84215522454b9be8 to your computer and use it in GitHub Desktop.
Save Xliff/06a93b02d82f994c84215522454b9be8 to your computer and use it in GitHub Desktop.
Booting a BootHASH

I'm getting this error in Raku in code from my latest project. I have no idea how to solve this one. Can someone help?

Cannot stringify this object of type VMHash (BOOTHash)
   at gen/moar/stage2/NQPCORE.setting:965  (/home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/nqp/lib/NQPCORE.setting.moarvm:print)
 from gen/moar/stage2/NQPHLL.nqp:2111  (/home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/nqp/lib/NQPHLL.moarvm:command_eval)
 from gen/moar/Compiler.nqp:109  (/home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/lib/Perl6/Compiler.moarvm:command_eval)
 from gen/moar/stage2/NQPHLL.nqp:2036  (/home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/nqp/lib/NQPHLL.moarvm:command_line)
 from gen/moar/rakudo.nqp:127  (/home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/runtime/perl6.moarvm:MAIN)
 from gen/moar/rakudo.nqp:1  (/home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/runtime/perl6.moarvm:<mainline>)
 from <unknown>:1  (/home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/runtime/perl6.moarvm:<main>)
 from <unknown>:1  (/home/cbwood/Projects/rakudobrew/versions/moar-blead/install/share/perl6/runtime/perl6.moarvm:<entry>)

To see this error, clone p6-ICal and checkout the 'boothashcrash' branch, and execute the following from the project directory:

raku -Ilib -e 'use ICal::Raw::Definitions

No other projects needed! :)

@Xliff
Copy link
Author

Xliff commented Mar 22, 2021

Things I've tried:

  1. Nuking rakudo (I should never need to take this step.... ever...)
  2. Removing lib/.precomp
  3. Removing META6.json
  4. Removing all added references to %?RESOURCES

I don't know how I ran into this. I started by writing code...particularly messing with %?RESOURCES. One second the code was compiling fine, 5 minutes of changes later, this happened.

@Xliff
Copy link
Author

Xliff commented Mar 23, 2021

Turned out the error was a '\' at the end of the file. This error is definitely LTA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment