LGhassen / cosmographia

Automatically exported from code.google.com/p/cosmographia
0 stars 0 forks source link

Line numbers in json error messages don't correspond to actual line numbers #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. insert an extra comma somewhere in a valid json catalog
2. load the catalog
3. observe the line number
4. go to that line in a text editor
5. observe no error at that location

A workaround is to use another json interpreter to read the erroneous catalog 
and provide an accurate line and character count.
e.g. 
python -mjson.tool < test.json > test_out.json
(which requires python v2.6 or later)

What version of the product are you using? 
r231
On what operating system?
win7 pro sp1 x64

Original issue reported on code.google.com by s...@cornell.edu on 30 Apr 2011 at 7:39

GoogleCodeExporter commented 8 years ago
This appears to be a bug in the QJson library: http://qjson.sourceforge.net/

Original comment by clau...@gmail.com on 30 Apr 2011 at 7:47

GoogleCodeExporter commented 8 years ago
Unfortunately, I'm not sure how to go about submitting a problem report
myuself, since I don't really program in C++ and am not at all familiar
with Qt. I.e. it'd difficult for me to provide them with a repeatable
failing example.

s.

Original comment by s...@cornell.edu on 1 May 2011 at 11:17