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
The functionality of Lark standalone parser generator breaks if lark codebase is run through the black formatter tool.
This error is produced:
jaclang/vendor/lark/tools/standalone.py:217: in main
gen_standalone(lark_inst, out=out, compress=ns.compress)
jaclang/vendor/lark/tools/standalone.py:170: in gen_standalone
code = extract_sections(f)["standalone"]
E KeyError: 'standalone'
The culpret comes from the extract_sections function on line 96 (post black formatting):
Describe the bug
The functionality of Lark standalone parser generator breaks if lark codebase is run through the black formatter tool.
This error is produced:
The culpret comes from the extract_sections function on line 96 (post black formatting):
A fixed version is
Will make a pr.
To Reproduce
Run lark code base through black formatter, then try to create a standalone parser.
The text was updated successfully, but these errors were encountered: