--- &test-U99R
Title: Invalid comma in tag
Tags: [ error, tag ]
invalid_incorrect
+STR
+DOC
+SEQ
=VAL <tag:yaml.org,2002:str> :, xxx
-SEQ
-DOC
-STR
invalid_incorrect
+STR
+DOC
+SEQ
=VAL <tag:yaml.org,2002:str,> :xxx
-SEQ
-DOC
-STR
invalid_incorrect
["xxx"]
invalid_incorrect
Line Col Char Byte Token|Content
1 0 0 0 +DOC |
1 0 0 0 +NODE|
1 0 0 0 +SEQ |
1 0 0 0 =SYNX|-
1 1 1 1 +NODE|
1 1 1 1 +VAL |
1 1 1 1 -VAL |
1 1 1 1 -NODE|
1 1 1 1 =REST|.!!str,.xxx
1 12 12 12 =REST|\x0a
2 0 13 13 -SEQ |
2 0 13 13 -NODE|
2 0 13 13 -DOC |
invalid_incorrect
[
"xxx"
]
invalid_incorrect
[
'xxx'
]
invalid_incorrect
[
"xxx"
]
invalid_incorrect
[
'xxx'
]
invalid_incorrect
+STR
+DOC
+SEQ
=VAL <tag:yaml.org,2002:str,> :xxx
-SEQ
-DOC
-STR
invalid_incorrect
[
"xxx"
]
invalid_incorrect
[GenericScalar(tag='tag:yaml.org,2002:str,', content='xxx')]
invalid_incorrect
+STR
+DOC
+SEQ
=VAL <tag:yaml.org,2002:str,> :xxx
-SEQ
-DOC
-STR
invalid_incorrect
[
"xxx"
]
invalid_incorrect
[GenericScalar(tag='tag:yaml.org,2002:str,', content='xxx')]
invalid_incorrect
+STR
+DOC
+SEQ
=VAL <tag:yaml.org,2002:str,> :xxx
-SEQ
-DOC
-STR
invalid_correct
stdin:1:8: error: did not find expected '-' indicator
- !!str, xxx
^
+STR
+DOC
+SEQ
=VAL <tag:yaml.org,2002:str> :
invalid_correct
stdin:1:8: error: did not find expected '-' indicator
- !!str, xxx
^
invalid_correct
Parse error: did not find expected whitespace or line break
+STR
+DOC
+SEQ
invalid_correct
Exception:
yaml-cpp: error at line 1, column 8: end of sequence not found
+STR
+DOC
+SEQ
=VAL <tag:yaml.org,2002:str> :
invalid_correct
Unhandled exception. YamlDotNet.Core.YamlException: (Line: 1, Col: 3, Idx: 2) - (Line: 1, Col: 13, Idx: 12): Encountered an unresolved tag 'tag:yaml.org,2002:str,'
at YamlDotNet.Serialization.NodeTypeResolvers.PreventUnknownTagsNodeTypeResolver.YamlDotNet.Serialization.INodeTypeResolver.Resolve(NodeEvent nodeEvent, Type& currentType)
at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.GetTypeFromEvent(NodeEvent nodeEvent, Type currentType)
at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.<>c__DisplayClass3_0.<DeserializeValue>b__0(IParser r, Type t)
at YamlDotNet.Serialization.NodeDeserializers.CollectionNodeDeserializer.DeserializeHelper(Type tItem, IParser parser, Func`3 nestedObjectDeserializer, IList result, Boolean canUpdate)
at YamlDotNet.Serialization.NodeDeserializers.CollectionNodeDeserializer.YamlDotNet.Serialization.INodeDeserializer.Deserialize(IParser parser, Type expectedType, Func`3 nestedObjectDeserializer, Object& value)
at YamlDotNet.Serialization.ValueDeserializers.NodeValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.ValueDeserializers.AliasValueDeserializer.DeserializeValue(IParser parser, Type expectedType, SerializerState state, IValueDeserializer nestedObjectDeserializer)
at YamlDotNet.Serialization.Deserializer.Deserialize(IParser parser, Type type)
at YamlDotNet.Serialization.Deserializer.Deserialize(TextReader input, Type type)
at YamlDotNet.Serialization.Deserializer.Deserialize(TextReader input)
at Program.Main(String[] commandLineArguments)
Aborted (core dumped)
invalid_correct
Parsing error near byte offset Pos {posByteOffset = 1, posCharOffset = 1, posLine = 1, posColumn = 1} (Lexical error near " !!str, xxx")
+STR
+DOC
+SEQ
=VAL :
invalid_correct
hsyaml-parser: user error (Lexical error near " !!str, xxx")
invalid_correct
/node/node_modules/js-yaml/lib/loader.js:187
throw generateError(state, message);
^
YAMLException: tag suffix cannot contain flow indicator characters (1:9)
1 | - !!str, xxx
-------------^
at generateError (/node/node_modules/js-yaml/lib/loader.js:183:10)
at throwError (/node/node_modules/js-yaml/lib/loader.js:187:9)
at readTagProperty (/node/node_modules/js-yaml/lib/loader.js:1275:7)
at composeNode (/node/node_modules/js-yaml/lib/loader.js:1407:12)
at readBlockSequence (/node/node_modules/js-yaml/lib/loader.js:1008:5)
at composeNode (/node/node_modules/js-yaml/lib/loader.js:1440:12)
at readDocument (/node/node_modules/js-yaml/lib/loader.js:1625:3)
at loadDocuments (/node/node_modules/js-yaml/lib/loader.js:1688:5)
at Object.loadAll (/node/node_modules/js-yaml/lib/loader.js:1701:19)
at Object.<anonymous> (/yaml/bin/js-jsyaml-json:7:13) {
reason: 'tag suffix cannot contain flow indicator characters',
mark: {
name: null,
buffer: '- !!str, xxx\n',
position: 8,
line: 0,
column: 8,
snippet: ' 1 | - !!str, xxx\n-------------^'
}
}
Node.js v20.13.1
invalid_correct
Tags and anchors must be separated from the next token by white space at line 1, column 8:
- !!str, xxx
^
+STR
+DOC
+SEQ
invalid_correct
/yaml/bin/js-yaml-json:9
if (doc.errors.length !== 0) throw doc.errors[0]
^
YAMLParseError: Tags and anchors must be separated from the next token by white space at line 1, column 8:
- !!str, xxx
^
at Composer.onError (/node/node_modules/yaml/dist/compose/composer.js:69:34)
at Object.resolveProps (/node/node_modules/yaml/dist/compose/resolve-props.js:129:9)
at Object.resolveBlockSeq (/node/node_modules/yaml/dist/compose/resolve-block-seq.js:15:36)
at resolveCollection (/node/node_modules/yaml/dist/compose/compose-collection.js:15:31)
at Object.composeCollection (/node/node_modules/yaml/dist/compose/compose-collection.js:47:16)
at Object.composeNode (/node/node_modules/yaml/dist/compose/compose-node.js:31:38)
at Object.composeDoc (/node/node_modules/yaml/dist/compose/compose-doc.js:34:23)
at Composer.next (/node/node_modules/yaml/dist/compose/composer.js:149:40)
at next (<anonymous>)
at Composer.compose (/node/node_modules/yaml/dist/compose/composer.js:131:25) {
code: 'MISSING_CHAR',
pos: [ 7, 8 ],
linePos: [ { line: 1, col: 8 }, { line: 1, col: 9 } ]
}
Node.js v20.13.1
invalid_correct
luajit: 1:1: did not find expected whitespace or line break
stack traceback:
[C]: in function 'error'
/usr/local/share/lua/5.1/lyaml/init.lua:306: in function 'error'
/usr/local/share/lua/5.1/lyaml/init.lua:325: in function 'parse'
/usr/local/share/lua/5.1/lyaml/init.lua:443: in function 'load_node'
/usr/local/share/lua/5.1/lyaml/init.lua:393: in function 'load_node'
/usr/local/share/lua/5.1/lyaml/init.lua:497: in function 'load'
/yaml/bin/lua-lyaml-json:6: in main chunk
[C]: at 0x56304e42aed0
invalid_correct
/tmp/NimYAML-0.16.0/yaml/stream.nim(134) nimyaml_event
/tmp/NimYAML-0.16.0/yaml/stream.nim(106) next
Error: unhandled exception: Unexpected token (expected newline or flow item start: SeqSep [YamlStreamError]
+STR
+DOC
+SEQ
invalid_correct
Line : 1
Column : 8
Expected : EOL WS
Got : FLOW_COMMA
Where : /perl5/lib/perl5/YAML/PP/Parser.pm line 392
YAML : ", xxx\n"
at /yaml/bin/perl-pp-event line 46.
+STR
+DOC
+SEQ
invalid_correct
Line : 1
Column : 8
Expected : EOL WS
Got : FLOW_COMMA
Where : /perl5/lib/perl5/YAML/PP/Parser.pm line 392
YAML : ", xxx\n"
at /perl5/lib/perl5/YAML/PP/Loader.pm line 94.
invalid_correct
Line : 1
Column : 8
Expected : EOL WS
Got : FLOW_COMMA
Where : /perl5/lib/perl5/YAML/PP/Parser.pm line 392
YAML : ", xxx\n"
at /perl5/lib/perl5/YAML/PP/Loader.pm line 94.
invalid_correct
YAML::PP::LibYAML Error: The problem:
did not find expected whitespace or line break
was found at , line: 1, column: 8
while scanning a tag at line: 1, column: 3
invalid_correct
YAML::PP::LibYAML Error: The problem:
did not find expected whitespace or line break
was found at , line: 1, column: 8
while scanning a tag at line: 1, column: 3
invalid_correct
Parser finished before end of input at /perl5/lib/perl5/YAML/Parser.pm line 4056, <> line 1.
invalid_correct
YAML::Tiny does not support a feature in line '!!str, xxx' at /yaml/bin/perl-tiny-json line 12.
invalid_correct
YAML::Tiny does not support a feature in line '!!str, xxx' at /yaml/bin/perl-tiny-perl line 15.
invalid_correct
YAML::XS Error: bad tag found for scalar: 'tag:yaml.org,2002:str,' at /yaml/bin/perl-xs-json line 14, <> line 1.
invalid_correct
YAML::XS Error: bad tag found for scalar: 'tag:yaml.org,2002:str,' at /yaml/bin/perl-xs-perl line 16, <> line 1.
invalid_correct
/ruby/gems/psych/lib/psych.rb:458:in `parse': (<unknown>): did not find expected whitespace or line break while scanning a tag at line 1 column 3 (Psych::SyntaxError)
from /ruby/gems/psych/lib/psych.rb:458:in `parse_stream'
from /ruby/gems/psych/lib/psych.rb:632:in `load_stream'
from /yaml/bin/ruby-psych-json:6:in `<main>'