Open Phrogz opened 6 years ago
Since I've just patched my gem to avoid this bug, the simpler repro is:
ruby -e "require 'parslet'; p Parslet::Parser.new"
…but it will happen when trying to inspect any parser that doesn't have a root
rule.
Good catch. I'll work on this as soon as I get around to it. Thank you for the report!
I have a web app using my Flooph gem, which is a class inheriting from
Parslet::Parser
. When I get certain web app errors, it tries toinspect
my class, resulting in a new error (that masks my web app's error). Here's a simple repro:This happens because my class does not define a
root
rule before it gets inspected.