You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/sergeyb/.local/bin/grammarinator-generate", line 8, in <module>
sys.exit(execute())
File "/home/sergeyb/.local/lib/python3.8/site-packages/grammarinator/generate.py", line 294, in execute
with Generator(generator=args.generator, rule=args.rule, out_format=args.out,
File "/home/sergeyb/.local/lib/python3.8/site-packages/grammarinator/generate.py", line 72, in __init__
self.generator_cls = import_object(generator) if generator else None
File "/home/sergeyb/.local/lib/python3.8/site-packages/inators/imp.py", line 24, in import_object
return getattr(importlib.import_module('.'.join(steps[0:-1])), steps[-1])
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 844, in exec_module
File "<frozen importlib._bootstrap_external>", line 981, in get_code
File "<frozen importlib._bootstrap_external>", line 911, in source_to_code
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/home/sergeyb/sources/MRG/tarantool/grammarinator/lua-fuzzer/LuaGenerator.py", line 988
elif choice == 1:
^
SyntaxError: invalid syntax
Seems indentation is wrong and patch below fixes a problem:
@ligurio Thanks for the report! It pointed out a real issue indeed which is hopefully fixed now. Please don't hesitate to reopen this ticket if the the issue still persist for you.
Steps to reproduce:
git clone https://github.com/renatahodovan/grammarinator
, f85b80ccd grammarinator && pip3 install .
mkdir lua-examples lua-fuzzer
curl -O https://raw.githubusercontent.com/antlr/grammars-v4/master/lua/Lua.g4
grammarinator-process Lua.g4 -o lua-fuzzer/ --pep8 -v
grammarinator-generate LuaGenerator.LuaGenerator -r chunk -d 20 -o lua-examples/test_%d.lua -n 100 -s grammarinator.runtime.simple_space_serializer --sys-path lua-fuzzer/
Syntax error in the generated file:
Seems indentation is wrong and patch below fixes a problem:
The text was updated successfully, but these errors were encountered: