2025-07-20 00:51 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0003666Spring enginepublic2013-04-01 20:16
Reportermsafwan 
Assigned TojK 
PrioritynormalSeverityminorReproducibilityalways
StatusresolvedResolutionfixed 
Product Version94.1.1+git 
Target VersionFixed in Version 
Summary0003666: spring --list-config doesn't output valid json (it includes version & compile info)
DescriptionThere seem to be random changes to the config list output from Spring.exe for each new version, causing repeated issue with auto-generating Springsetting using ZKlobby.

JSON deserializer fail again in github version (currently 94- xxx -gee093af58) after it was fixed to work for Spring 94.1.

The problem is... how do we know what changes (so we could fix)? there's no way to know except trial-n-error!
Tagsjson
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0010341

msafwan (reporter)

Last edited: 2013-04-01 05:57

View 10 revisions

OKAY, I know now what has changes (after printing out the output). Now it outputed more info.

But I was just complaining why it keep changing. This should be notified in Changelog in future so that it help to fix bug.

UPDATE:
OKAY, it work again by getting the index of first "{". IMO future changes should add marker like "thisIsConfig" or "thisEndConfig" (to mark different segment of the output), would be cool!

(I would like this to be a feature request I think)

~0010347

abma (administrator)

can you provide details whats wrong with the output?

the output of spring --list-config is valid json:

http://paste.springfiles.com/view/3bf48d11

~0010348

abma (administrator)

Last edited: 2013-04-01 15:47

View 2 revisions

ouch: (next time please add this to your bug-report, this safes a lot of time)

spring --list-config
Spring 94.1.1-82-g3675845 develop (OMP)
Build date/time: Mar 31 2013 18:49:47
Build environment: boost-104601, GNU libstdc++ version 20120301
Compiler: gcc-4.6.3
OS: Linux 3.2.0-39-generic 0000062-Ubuntu SMP Thu Feb 28 00:28:53 UTC 2013 x86_64
OS: 64bit native mode
[CMyMath::Init] CPU SSE mask: 127, flags:
        SSE 1.0: 1, SSE 2.0: 1
        SSE 3.0: 1, SSSE 3.0: 1
        SSE 4.1: 1, SSE 4.2: 1
        SSE 4.0A: 0, SSE 5.0A: 0
        using streflop SSE FP-math mode, CPU supports SSE instructions
{
  "3DTrees": {
    "declarationFile": "/home/abma/tmp/spring/rts/Rendering/Env/ITreeDrawer.cpp",
    "declarationLine": 22,
    "defaultValue": 1,
    "safemodeValue": 0,
    "type": "bool"
  },

~0010349

abma (administrator)

https://github.com/spring/spring/commit/1a10bcb60c7f5fbe1f81373da027063c4abff264
+Notes

-Issue History
Date Modified Username Field Change
2013-04-01 05:22 msafwan New Issue
2013-04-01 05:25 msafwan Note Added: 0010341
2013-04-01 05:25 msafwan Note Edited: 0010341 View Revisions
2013-04-01 05:34 msafwan Note Edited: 0010341 View Revisions
2013-04-01 05:35 msafwan Note Edited: 0010341 View Revisions
2013-04-01 05:43 msafwan Note Edited: 0010341 View Revisions
2013-04-01 05:44 msafwan Note Edited: 0010341 View Revisions
2013-04-01 05:54 msafwan Note Edited: 0010341 View Revisions
2013-04-01 05:55 msafwan Note Edited: 0010341 View Revisions
2013-04-01 05:56 msafwan Note Edited: 0010341 View Revisions
2013-04-01 05:57 msafwan Note Edited: 0010341 View Revisions
2013-04-01 05:58 msafwan Tag Attached: json
2013-04-01 15:45 abma Note Added: 0010347
2013-04-01 15:45 abma Assigned To => abma
2013-04-01 15:45 abma Status new => feedback
2013-04-01 15:47 abma Note Added: 0010348
2013-04-01 15:47 abma Note Edited: 0010348 View Revisions
2013-04-01 15:49 abma Assigned To abma =>
2013-04-01 15:49 abma Status feedback => new
2013-04-01 15:51 abma Product Version 94.1 => 94.1.1+git
2013-04-01 15:52 abma Summary ZKL (again) cannot read Springsetting generated by Spring in github version! => spring --list-config doesn't output valid json (it includes version & compile info)
2013-04-01 18:08 jK Assigned To => jK
2013-04-01 18:08 jK Status new => assigned
2013-04-01 19:16 abma Note Added: 0010349
2013-04-01 19:16 abma Status assigned => resolved
2013-04-01 19:16 abma Resolution open => fixed
2013-04-01 20:16 jK Changeset attached => spring develop 1a10bcb6
+Issue History