• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Line-number references wrong by several lines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Line-number references wrong by several lines


  • Subject: Re: Line-number references wrong by several lines
  • From: Michael Rice <email@hidden>
  • Date: Thu, 31 Jan 2008 22:09:10 -0600

On Jan 30, 2008, at 10:45 PM, 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.


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


I suffer from this problem too. It amazes me that this problem, which has been around forever, still plagues development environments and editors in general. On the plus side, at least Xcode (gcc) can compile the sources; the Microsoft compiler refuses to even compile files with Mac line endings.


Can't this just get fixed?

Michael _______________________________________________
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


References: 
 >Line-number references wrong by several lines (From: Jerry Krinock <email@hidden>)
 >Re: Line-number references wrong by several lines (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: Debugging threads and hanging issue
  • Next by Date: Re: Help with help
  • Previous by thread: Re: Line-number references wrong by several lines
  • Next by thread: bug in gcc 4.0.1? ld: duplicate symbol typeinfo
  • Index(es):
    • Date
    • Thread