RussellSpitzer/snakeyaml

scanner exception detail message

GoogleCodeExporter opened this issue · 5 comments

What steps will reproduce the problem?
1.create a syntax error in the Yaml file E.g 
ode_templates:
  master:
    type: alu.nodes.Compute : invalid123


What is the expected output? What do you see instead?
i see a "null;" at the begging of the ScannerException detail message
null; mapping values are not allowed here;  in 'reader', line 5, column 29:
        type: alu.nodes.Compute : invalid123
                                ^

the string "null;" shouldnt be part of the message
What version of SnakeYAML are you using? On what Java version?
java 6, snakeyaml 1.13

Please provide any additional information below. (Often a failing test is
the best way to describe the problem.)

Very easy to reproduce
thank you in advance


Original issue reported on code.google.com by shtil...@gmail.com on 26 Mar 2014 at 8:30

Many thanks

Original comment by shtil...@gmail.com on 3 Apr 2014 at 4:59

Original comment by py4fun@gmail.com on 26 Mar 2014 at 1:34

  • Changed state: Accepted
Fixed.
Feel free to build and test.
http://code.google.com/p/snakeyaml/source/list

Unfortunately, I cannot immediately upload the SNAPSHOT to Sonatype as I 
usually do.
It will take some time (probably weeks)

Original comment by py4fun@gmail.com on 26 Mar 2014 at 3:26

  • Changed state: Started
Issue 189 has been merged into this issue.

Original comment by aso...@gmail.com on 27 Mar 2014 at 12:54

Fixed.
SNAPSHOT contains the fix.
It will be delivered in version 1.14

Original comment by py4fun@gmail.com on 3 Apr 2014 at 4:44

  • Changed state: Fixed