-
Notifications
You must be signed in to change notification settings - Fork 62
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
AttributeError: type object 'JSONGenerator' has no attribute '<INVALID>' #80
Comments
renatahodovan
added a commit
that referenced
this issue
Mar 3, 2023
Inline tokens are named as `<INVALID>` by ANTLR. When such a node was chosen to be mutated then Grammarinator tried to regenerate them according to a rule definition called `<INVALID>` which did not exist, of course. The patch disables the mutation of such nodes since inline tokens are constants, hence mutating them would not have any importance either. Fixes #80.
renatahodovan
added a commit
that referenced
this issue
Mar 3, 2023
Inline tokens are named as `<INVALID>` by ANTLR. When such a node was chosen to be mutated then Grammarinator tried to regenerate them according to a rule definition called `<INVALID>` which did not exist, of course. The patch disables the mutation of such nodes since inline tokens are constants, hence mutating them would not have any importance either. Fixes #80.
akosthekiss
pushed a commit
that referenced
this issue
Mar 3, 2023
Inline tokens are named as `<INVALID>` by ANTLR. When such a node was chosen to be mutated then Grammarinator tried to regenerate them according to a rule definition called `<INVALID>` which did not exist, of course. The patch disables the mutation of such nodes since inline tokens are constants, hence mutating them would not have any importance either. Fixes #80.
@bendrissou Thanks for the report! Hopefully it is fixed now. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was trying to generate json files using the
--population
option and the antlr json grammar. The grt files have been prepared with no problem. But I get an error when I run the following command:grammarinator-generate JSONGenerator.JSONGenerator -r json -o tests/test_%d.json -d 20 -n 1 --population ../seeds/grts --no-generate --sys-path .
The error output:
The error does not occur if option
--population
is omitted. In addition, the seed inputs have been successfully parsed into grt files. The error occurs with any provided grt file.Any idea what could be the cause of this?
The text was updated successfully, but these errors were encountered: