Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Line-number references wrong by several lines



On 30 Jan 2008, at 10:27 PM, Jerry Krinock wrote:

In Xcode 3.0, my Message Bubbles (warnings and errors), error annunciations in the Build Transcript, and cmd-clicking to symbols usually land several lines above the actual target. I understand that sometimes statements span more than one line, and sometimes the context of an error involves an entire scope of curly brackets. But that's not the trouble.

In the debugger, off-by-lines errors occur when a source file has inconsistent line endings (\n for some lines, \r\n for others, maybe \r for others still) from being exposed to editors on more than one platform. The errors you see may have the same cause.


Try opening an Info window on a problem file and explicitly setting the line endings. (I believe this will work with inconsistent files.) See if that corrects the off-by-lines problems.

	— F

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >Line-number references wrong by several lines (From: Jerry Krinock <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.