Add line number to .plist errors

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

Post Reply
User avatar
Nemoricus
---- E L I T E ----
---- E L I T E ----
Posts: 388
Joined: Mon May 18, 2009 8:51 pm

Add line number to .plist errors

Post by Nemoricus »

Exactly as the topic says.

I'm currently trying to hunt down an error in a .plist file, here, but without the line number, finding it is proving to be an exercise in futility.

For .js errors, the line number and the text in that line is given, which makes finding and fixing typos and syntax errors much easier. .plist doesn't have that.
Dream as if you'll live forever
Live as if you'll die tomorrow
User avatar
Lestradae
---- E L I T E ----
---- E L I T E ----
Posts: 3095
Joined: Tue Apr 17, 2007 10:30 pm
Location: Vienna, Austria

.

Post by Lestradae »

Oh yes, please, seconded.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

The bad news is that this isn’t under our control. The parsing of plists is handled by the Foundation framework – part of the system on Mac OS X, part of GNUstep on other platforms. The Mac implementation reports line numbers, but the GNUstep version does not.

The good news is that the current version of GNUstep appears to report line numbers.

The question, then, is why you have an old version of GNUstep. If you’re using Linux, it’s because Linux distros tend to distribute old versions by default. If you’re using Windows, it’s because Oolite is built against slightly hacked versions of GNUstep libraries and upgrading has been problematic. I don’t know the details of that, though; you’ll have to ask another_commander.
Post Reply