Skip to content

Instantly share code, notes, and snippets.

@perlpunk
Last active June 25, 2018 20:13
Show Gist options
  • Save perlpunk/89ddacc551446547ad6a95f2c806fce0 to your computer and use it in GitHub Desktop.
Save perlpunk/89ddacc551446547ad6a95f2c806fce0 to your computer and use it in GitHub Desktop.
yaml-flow-colon-9
terminate called after throwing an instance of 'YAML::ParserException'
what(): yaml-cpp: error at line 1, column 6: end of map flow not found
+STR
+DOC
+SEQ
+MAP {}
=VAL :a:
=VAL :
+STR
+DOC
+SEQ
+MAP
=VAL :a:
=VAL :
-MAP
parsing error near byte offset Pos {posByteOffset = 5, posCharOffset = 5, posLine = 1, posColumn = 5} (Unexpected '{')
+STR
+DOC
+SEQ
+MAP {}
=VAL :a
+MAP {}
-MAP
-MAP
-SEQ
-DOC
-STR
Parse error: found unexpected ':'
+STR
+DOC
+SEQ
Parse error: found unexpected ':'
+STR
+DOC
+SEQ
+STR
+DOC
+SEQ
+MAP
=VAL :a
+MAP
-MAP
-MAP
-SEQ
-DOC
-STR
+STR
+DOC
+SEQ
+MAP
=VAL :a
+MAP
-MAP
-MAP
-SEQ
-DOC
-STR
+STR
+DOC
+SEQ
+MAP
=VAL :a:
=VAL :
Traceback (most recent call last):
File "/bin/ruamel-event", line 7, in <module>
for event in ruamel.yaml.parse(sys.stdin.read()):
File "/usr/local/lib/python2.7/dist-packages/ruamel/yaml/main.py", line 595, in parse
while loader._parser.check_event():
File "/usr/local/lib/python2.7/dist-packages/ruamel/yaml/parser.py", line 144, in check_event
self.current_event = self.state()
File "/usr/local/lib/python2.7/dist-packages/ruamel/yaml/parser.py", line 699, in parse_flow_mapping_key
token.start_mark)
ruamel.yaml.parser.ParserError: while parsing a flow mapping
in "<byte string>", line 1, column 3:
- {a:{}}
^ (line: 1)
expected ',' or '}', but got '{'
in "<byte string>", line 1, column 6:
- {a:{}}
^ (line: 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment