Re: Xcode 4.3 fails to auto-format
Re: Xcode 4.3 fails to auto-format
- Subject: Re: Xcode 4.3 fails to auto-format
- From: John Michael Zorko <email@hidden>
- Date: Fri, 20 Apr 2012 10:55:38 -0700
Curt,
It happens on all files i've tried, and there aren't any nasty preprocessor -- just #defines for common strings, a few UUIDS, etc. I'll try deleting the derived data ...
Regards,
John
On Apr 20, 2012, at 10:49 AM, Curt Clifton wrote:
> (Taking this back to the list, since I failed to reply-all originally.)
>
> John,
>
> I've seen preprocessor issues that affect indexing, auto-completion, syntax coloration, etc., but that still allow the code to compile. For example, I have an implementation file where the entire contents, apart from the header import, is wrapped in:
>
> #if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
> // nothing here
> #else // !iPhone
> // ... entire contents ...
> #endif
>
> The Xcode editor is basically just a dumb text editor inside the #else block. (You've motivated me to try to fix that anyway. So, thanks.)
>
> Have you tried deleting the derived data? And again, does this happen in all files or just some?
>
> Cheers,
>
> Curt
>
>
> On Apr 20, 2012, at 10:42 AM, John Michael Zorko wrote:
>
>>
>> Curt,
>>
>> There aren't any errors, because the project builds and runs fine. It just doesn't auto-format, and actually seems hostile to tabs I enter unless I go back and re-indent. Also, it no longer auto-completes on any new method / message / macro that i've added since yesterday. Apparently Xcode 4.3 thinks it's vi ... but a version of vi that dislikes tabs :-/
>>
>> Regards,
>>
>> John
>>
>> On Apr 20, 2012, at 10:25 AM, Curt Clifton wrote:
>>
>>> On Apr 20, 2012, at 10:19 AM, John Michael Zorko wrote:
>>>
>>>> [snip] Today, Xcode 4.3 has suddenly forgotten how to auto-format. I enter code (with tabs) into an ObjC method, and it insists on left-justifying all of it (without indents) after I press Enter, making me re-insert the correct # of tabs afterwards. It also fails to colorize the text. Quitting and restarting doesn't help. Cleaning the project doesn't help. This happens on both my 1.8ghz i7 MacBook Air, and my 2.53ghz C2D Mac Mini. [snip]
>>>
>>> I've seen this when I have a syntax error or something wonky with macros or preprocessor directives.
>>>
>>> Is this happening in all files or just some? If just some, do those files share a common import that might have some syntax or preprocessor issues?
>>>
>>> Cheers,
>>>
>>> Curt
>>> -----------------------------------------------------------------------------
>>> Curt Clifton, PhD
>>> Software Engineer
>>> The Omni Group
>>> www.curtclifton.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