sudoblockio / tackle

Tackle is a programmable configuration language for building modular utilities, code generators, and CLIs with schema validation baked in.
Apache License 2.0
52 stars 2 forks source link

Ambiguous error for block with arrow #169

Open robcxyz opened 1 year ago

robcxyz commented 1 year ago

In this code

foo->: 
  ->: generate in out 

the error is

tackle.exceptions.UnknownInputArgumentException: Error parsing input_file='None' 
Key=items not in hook=generate. Possible values are templates: Union, output: str, copy_without_render: Union, overwrite_if_exists: bool, skip_if_file_exists: bool, skip_overwrite_files: list, render_context: dict, extra_context: Union, file_system_loader: Union, base_dir_: Path, file_path_separator_: str

Issue is the macro writes the items key without checking if there is an arrow in the dict which if there is, should throw a more helpful syntax error.