Open MatthewScholefield opened 2 years ago
The UnhandledEventError
is for unknown unknowns, so to speak. I didn't remember that anchors were a thing and never tested them. If you've got an idea for how to handle generic errors in a friendlier way, though, I'm interested.
The YAML parsing library that I'm using seems to handle anchors (it's not giving an error, it's giving me an event that I'm not handling). Presumably, it'd be pretty easy to add anchors. If I get some time, I'll try adding it.
When parsing a yaml file with an anchor,
yaml2jsonnet
generates a traceback:Instead it'd be nice to show an error like "Yaml anchors are not supported. Please remove them and try again."