Re: Syntax-aware indenting inexplicably broken in some projects.
Re: Syntax-aware indenting inexplicably broken in some projects.
- Subject: Re: Syntax-aware indenting inexplicably broken in some projects.
- From: Damian Carrillo <email@hidden>
- Date: Tue, 25 Sep 2012 16:46:05 -0500
Hi Gavin,
I may have seen something similar, although it is hard to characterize precisely. To the best of my knowledge, Xcode failed to fully index my project which is large and contains Objective-C++. One of the symptoms of this was that the code completion popups failed to show a lot of the symbols I expected to see. Another was that syntax awareness was off. On top of that, my unit testing scheme failed to list some of the tests in my project.
What I did to alleviate the problem was delete the derived data for my project. I did this by deleting the relevant data from the Finder (~/Library/Developer/Xcode/DerivedData/<project data>). However, I recently discovered an easier solution on these forums. From the Organizer, go to the Projects tab and find your project. To the right of the Derived Data entry, there is a delete button. If you click it, your data will be deleted, and Xcode will reindex the project. You can see this happening in the HUD view in the top-center area of the Xcode window.
I do this every so often, but it seems like I need to do it less frequently as Xcode keeps being updated. Hopefully this will help in your situation as well.
Damian
On Sep 25, 2012, at 3:59 PM, Gavin Stokes wrote:
> Has anyone found that syntax-aware indenting just doesn't work in some
> projects? I have two projects open. In one, indenting works. For
> example, braces are indented and lined up automatically in a sequence
> of "else if" statements. In the other project, a brace after an "else
> if" is all the way to the left.
> _______________________________________________
> 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
_______________________________________________
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