Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Xcode 4 code sens (code completion) disappeared

I want to share with you a problem I encountered using Xcode 4 GM seed build 4A278. It was shocking 😉 to get no convenient code sense (code completion) in one of my classes inherited from NSObject. My .h file had no problem whatsoever, but the .m file didn't react to any of my gestures including the control command key combination.

All other files in the project the code sensing feature worked fine. This was my first couple of hours with Xcode 4 and the project was converted from Xcode 3. In the end, the solution was to copy the code into memory, delete the .m file, add a new .m file and finally pasting the code in to the .m file. Voila, there was the code sensing. You never know, you may experience a similar problem in the future.

I think I really going to like the new Xcode 4, good job Xcode team!

MacBook Pro 17, Mac OS X (10.6.6)

Posted on Feb 7, 2011 4:39 AM

Reply
23 replies

Feb 15, 2011 8:47 AM in response to AcidStuff

Removed the ~DerivedData did not work for me but AcidStuff's solution (copying the .m file, deleting the original, then creating a new .m file and pasting everything back in.....strangely enough works. Wonder what the problem is but....not worth the effort to chase it down. Just cut/paste .m files and code completion works wonderfully. THANKS ACIDSTUFF! 🙂

Feb 16, 2011 11:23 PM in response to AcidStuff

Unfortunately I have way too many files in my converted project (3->4) to recreate every file in this way, and unfortunately deleting the index does not work for me either.

Interestingly, when I have just rebuilt my project, Code Sense works, i.e. if I place the cursor in the middle of a function name and hit Esc I then see the completion list. But as soon as I start editing - it all disappears and I'm faced with "No Completions Found".

Aaaaaarghhhh! User uploaded file

Feb 18, 2011 7:45 AM in response to Lydster

I'm having this same problem as well:

Lydster wrote:
if I place the cursor in the middle of a function name and hit Esc I then see the completion list. But as soon as I start editing - it all disappears and I'm faced with "No Completions Found".


However, it only happens when my source code file is located above the project folder in the file system. When I move the files into the project folder or a sub folder of the project folder code completion works fine.

This appears to be a bug. Anyone else experiencing this?

Xcode 4 code sens (code completion) disappeared

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.