Re: Why Oh Why does the XCode 4 Apple LLVM 4.1 compiler still flag compile errors on the wrong line ???
Re: Why Oh Why does the XCode 4 Apple LLVM 4.1 compiler still flag compile errors on the wrong line ???
- Subject: Re: Why Oh Why does the XCode 4 Apple LLVM 4.1 compiler still flag compile errors on the wrong line ???
- From: Fritz Anderson <email@hidden>
- Date: Mon, 10 Dec 2012 14:28:02 -0600
[Slightly altered from off-list reply]
On 10 Dec 2012, at 2:12 PM, Dan Stenning <email@hidden> wrote:
> > Have you checked your line endings?
>
> Just to recap - what is permissible ? CR+LF ? CR ? LF ?
>
> I ask because the C++ source is actually generated by another program ( wot i wrote ) - A cross-translator.
Anything's permissible, so long as you stick to only one per file.
> But having said that - surely if it works ok in GCC it should be ok in Apple LLVM 4.1 ?
It would be nice to think so, but given human nature, it wouldn't be surprising if it did not work that way. The Xcode indexer and syntax coloring have historically given up when they found line-ending conflicts. I don't know if they still do. If I'm right about the line endings, it's a matter of the editor not counting lines the same way the compiler does, and it might not be a compiler problem at all.
> > Also, can all instances of the problem be matched to putting the banner on the line after an error line that takes up too much width to display the banner properly?
> >
> > Does the red caret/underline appear in the right place? Does the badge appear at the right place in the margin?
> >
> NO
Select the file, open the Utility (right) area, and look at the File (first) inspector. Under Text Settings, manually set the line endings to OS X/Unix (LF). See if that helps.
— F
--
Fritz Anderson -- Xcode 4 Unleashed: 4.5 supplement in the works -- <http://x4u.manoverboard.org/>
_______________________________________________
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