Skip to content

Instantly share code, notes, and snippets.

@perlpunk
Last active June 25, 2018 20:12
Show Gist options
  • Save perlpunk/2d7853e56703affb30b9276a1536298e to your computer and use it in GitHub Desktop.
Save perlpunk/2d7853e56703affb30b9276a1536298e to your computer and use it in GitHub Desktop.
yaml-flow-colon-3
+STR
+DOC
+SEQ
+SEQ []
=VAL ::foo
-SEQ
-SEQ
-DOC
-STR
+STR
+DOC
+SEQ
+SEQ
=VAL ::foo
-SEQ
-SEQ
-DOC
-STR
Exception in thread "main" while parsing a flow node
in 'reader', line 1, column 4:
- [:foo]
^
expected the node content, but found ':'
in 'reader', line 1, column 4:
- [:foo]
^
at org.yaml.snakeyaml.parser.ParserImpl.parseNode(ParserImpl.java:482)
at org.yaml.snakeyaml.parser.ParserImpl.parseFlowNode(ParserImpl.java:364)
at org.yaml.snakeyaml.parser.ParserImpl.access$2400(ParserImpl.java:117)
at org.yaml.snakeyaml.parser.ParserImpl$ParseFlowSequenceEntry.produce(ParserImpl.java:648)
at org.yaml.snakeyaml.parser.ParserImpl$ParseFlowSequenceFirstEntry.produce(ParserImpl.java:617)
at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
at org.yaml.snakeyaml.Yaml$3.hasNext(Yaml.java:711)
at org.yaml.editor.Snake2Events.yamlToEvents(Snake2Events.java:110)
at org.yaml.editor.Snake2Events.main(Snake2Events.java:118)
Parse error: did not find expected node content
+STR
+DOC
+SEQ
+SEQ
Parse error: did not find expected node content
+STR
+DOC
+SEQ
+SEQ
+STR
+DOC
+SEQ
+SEQ
=VAL ::foo
-SEQ
-SEQ
-DOC
-STR
+STR
+DOC
+SEQ
+SEQ
Traceback (most recent call last):
File "/bin/pyyaml-event", line 7, in <module>
for event in yaml.parse(sys.stdin.read()):
File "/lib/python2.7/site-packages/yaml/__init__.py", line 36, in parse
while loader.check_event():
File "/lib/python2.7/site-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/lib/python2.7/site-packages/yaml/parser.py", line 474, in parse_flow_sequence_first_entry
return self.parse_flow_sequence_entry(first=True)
File "/lib/python2.7/site-packages/yaml/parser.py", line 495, in parse_flow_sequence_entry
return self.parse_flow_node()
File "/lib/python2.7/site-packages/yaml/parser.py", line 268, in parse_flow_node
return self.parse_node()
File "/lib/python2.7/site-packages/yaml/parser.py", line 371, in parse_node
token.start_mark)
yaml.parser.ParserError: while parsing a flow node
expected the node content, but found ':'
in "<string>", line 1, column 4:
- [:foo]
^
+STR
+DOC
+SEQ
+SEQ
=VAL ::foo
-SEQ
-SEQ
-DOC
-STR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment