-
Notifications
You must be signed in to change notification settings - Fork 126
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
LivePreview problem with meta rules #254
Comments
Thanks, fixed. |
Thanks for the fix! It would be great if you could expand on how meta rules work in the README. I was playing around with them at one point, and had the impression that the variable names for multiple levels of meta rules had to be the same, which didn't make sense--but the rules didn't seem to work unless I did that. Take a look at the BNF for the Clojure-Kit plugin, which is what I started with (actually, just look at the example I submitted, which came straight from Clojure-Kit). |
Each meta rule is like a function with its own set of parameters. Parameters are uniquely identified by their names and enumerated in order of appearance, thus I've skipped the formal parameter list declaration, i.e. |
This BNF generates an OutOfBoundsException in LivePreview, given an input that starts with a left parenthesis.
This is the line of code that throws the exception, line 476 of LivePreviewParser.java:
metaParameters
is initialized toCollections.emptyList()
and not referenced beyond that until the offending line. It looks like this bug has been there for several years (the code that setmetaParameters
was commented out in 2013).Stack trace:
The text was updated successfully, but these errors were encountered: