FreeOrion

Forums for the FreeOrion project
It is currently Fri May 24, 2013 10:35 pm

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Help with Reading the FreeOrion logs
PostPosted: Fri Mar 23, 2012 1:58 am 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3693
Location: USA — midwest
So say i get an error message like this:

Code:
2012-03-22 20:49:55,035 ERROR Client : /Users/jbjerk/Desktop/FreeOrion.app/Contents/Resources/default/techs.txt:923:12: Parse error.  Expected Condition here:
              ]
              ^


What do these numbers mean? "923:12"

I tried line numbers, but that doesn't work.

_________________
—• Read this First before posting Game Design Ideas!
—• Design Philosophy

—•— My Ideas, Organized —•— Get an Avatar —•— Acronyms —•—


Top
 Profile  
 
 Post subject: Re: Help with Reading the FreeOrion logs
PostPosted: Fri Mar 23, 2012 2:08 am 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7898
Location: Vancouver, BC
eleazar wrote:
What do these numbers mean? "923:12"

I tried line numbers, but that doesn't work.
It means character 12 on line 923, after expanding all macros. This code was written before macro support existed, and the actual macro expansion happens before the parsing that generates such error messages, so the parsing code doesn't know anything about what line numbers were before macros expansion occurred.

I've considered this issue, but don't have any great ideas about how to deal with the problem. Outputting the whole macro-substituted file into the log would be a huge dump of text. I suppose there could be a way to output the substituted text in a separate file...


Top
 Profile  
 
 Post subject: Re: Help with Reading the FreeOrion logs
PostPosted: Fri Mar 23, 2012 2:16 am 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3693
Location: USA — midwest
What about giving a few more lines of context before and after the "Expected Condition"?

_________________
—• Read this First before posting Game Design Ideas!
—• Design Philosophy

—•— My Ideas, Organized —•— Get an Avatar —•— Acronyms —•—


Top
 Profile  
 
 Post subject: Re: Help with Reading the FreeOrion logs
PostPosted: Fri Mar 23, 2012 2:20 am 
Offline
Programming, Design, and De Facto Lead
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 7898
Location: Vancouver, BC
I was actually just looking into doing that...


Top
 Profile  
 
 Post subject: Re: Help with Reading the FreeOrion logs
PostPosted: Fri Mar 23, 2012 3:00 am 
Offline
Design & Graphics Lead
User avatar

Joined: Sat Sep 23, 2006 7:09 pm
Posts: 3693
Location: USA — midwest
Geoff the Medio wrote:
I was actually just looking into doing that...

I figured this one out, but that would be great.

_________________
—• Read this First before posting Game Design Ideas!
—• Design Philosophy

—•— My Ideas, Organized —•— Get an Avatar —•— Acronyms —•—


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group