Re: Line-number references wrong by several lines
Re: Line-number references wrong by several lines
- Subject: Re: Line-number references wrong by several lines
- From: Alastair Houghton <email@hidden>
- Date: Sun, 3 Feb 2008 17:33:08 +0000
On 31 Jan 2008, at 04:45, Fritz Anderson wrote:
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.
Most decent editors don't cause this problem; if you are seeing this,
even using editors on multiple platforms, either you need to
reconfigure your text editor(s), or you should get a decent editor.
A more unpleasant way to get the problem is to use version control
systems that try to be smart about line endings, in conjunction with a
network home directory that's mounted on more than one platform.
AFAIK both CVS and Subversion have this "smart" line ending mis-
feature. The problem occurs when you e.g. check code out on Windows,
go to a UNIX machine (such as a Mac) and check-in a change; the daft
source control system then checks-in the ^M characters that were added
by the Windows version on check-out.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden