• Editor
  • Cmdline export version error and return code

Hi,

When exporting from the command line using the


update option set to an older version of spine then the project file. Spine correctly fails, but the return code i success(0). For better tooling support it would be helpful that any failed exports result in a non zero return code.

/Moberg

Example:

opt/Spine/Spine.sh


update 3.2.01


input media/skeletons/timemachine.spine


output /tmp


export TEMP/spine/SpineExport.settings
Spine Launcher 3.0.05
Linux amd64 4.2.0-36-generic
Java 1.7.0_06 Esoteric Software
64-bit Server VM
Starting: Spine 3.2.01
Spine 3.2.01 Essential, LWJGL
Licensed to: *****, *****
ERROR: Error loading project: media/skeletons/timemachine.spine
java.lang.RuntimeException: Not a valid project file: media/skeletons/timemachine.spine
at sZ.a(SourceFile:515)
at lP.a(SourceFile:64)
at com.esotericsoftware.spine.editor.Editor.a(SourceFile:1310)
at com.esotericsoftware.spine.editor.Editor.main(SourceFile:1288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at tzax.j.run(SourceFile:1261)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:711)
at java.awt.EventQueue.access$000(EventQueue.java:104)
at java.awt.EventQueue$3.run(EventQueue.java:672)
at java.awt.EventQueue$3.run(EventQueue.java:670)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:681)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Caused by: java.lang.RuntimeException: Unknown Spine project version: 5
at sZ.b(SourceFile:536)
at sZ.a(SourceFile:513)
... 22 more
echo $?
0

Related Discussions
...
  • 編集済み

That is a good point. We've fixed up the exit codes in the next version. Cheers! :beer: