Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 25, 2006, 04:08 PM   #1
CookieMook
macrumors newbie
 
Join Date: Jan 2006
Xcode 2 Freezes in C++ Command line tool

Hi guys,

I have been programming in C++ for a while in VS and this term I must write code for linux stations, so I am using Mac's developper features for the first time. I have Xcode 2.2 on a G5 dual processor 1.8 GHz and I am stuck with a very frustrating experience: Xcode sometimes freezes on me after I type ">". For instance, writing a simple for loop: for (int ctr = 0; ctr < (Xcode freezes and I have to force quit and start from the last saved version).

Has anyone else experienced this? To get around this very frustrating behavior, I have to save my file as an unknown format (no extension), then Xcode does not recognize any key words but I no longer have Xcode crashing after typing a "<". What is really strange is that it is intermittent: some times I can type a few of these "<" without it crashing, and copy-pasting works fine.

I otherwise like using Xcode. Anyone know how to stop this? ( I am writing a command line C++ project in Xcode 2.2)

Thanks
CookieMook is offline   0 Reply With Quote
Old Feb 6, 2006, 02:24 PM   #2
wallsmd
macrumors newbie
 
Join Date: Feb 2006
I have been experiencing the very same problem on my iMac G5. I donít believe that it every happened with Xcode 2.1. Unfortunately I have not found a solution and I donít think version 2.1 is available for download. If you do happen to find a fix please post it.

Thanks
wallsmd is offline   0 Reply With Quote
Old Feb 6, 2006, 02:39 PM   #3
Fender2112
macrumors 6502a
 
Fender2112's Avatar
 
Join Date: Aug 2002
Location: Charlotte, NC
Send a message via AIM to Fender2112
I had the same problem where Xcode would freeze while I was actually typing the code for the loop. It, to was the < symbol that triggered the freeze. I trashed the project file, created a new project and added all the source files to the new project. All seems well for now.

Also, I've been learning Obj-C this past week and have not encountered this problem. Maybe it is a bug with C++ compiler.
__________________
Really? Really, really!
Fender2112 is offline   0 Reply With Quote
Old Feb 16, 2006, 01:10 PM   #4
wallsmd
macrumors newbie
 
Join Date: Feb 2006
Work Around

The problem seems to have something to do with how xcode looks at function blocks in the code. I have found that if I put both the starting and ending brackets on a function and then insert the code in between there is no problem. However, without the ending bracket it will freeze up as you have described.

Hopefully that helps.
wallsmd is offline   0 Reply With Quote
Old Feb 16, 2006, 01:57 PM   #5
HiRez
macrumors 601
 
HiRez's Avatar
 
Join Date: Jan 2004
Location: Western US
Wow, that's incredibly frustrating, but I have never encountered that with Objective-C development. What happens if you turn off code sensing/completion?
__________________
Go outside, the graphics are amazing!
HiRez is offline   0 Reply With Quote
Old Oct 1, 2006, 09:03 PM   #6
nunley0
macrumors newbie
 
Join Date: Oct 2006
Problem solved!!

Go to the xcode prefrences, and under the Code Sense section, turn off indexing. lol I don't know why this works, but it does.
nunley0 is offline   0 Reply With Quote
Old Oct 1, 2006, 09:26 PM   #7
nunley0
macrumors newbie
 
Join Date: Oct 2006
Renig my previous !!

It worked for a few moments, and then same ol same ol.

On a better note, I found that xcode 2.4 is free for download.
I'm betting that this bug will be handled, but we'll find out.
I'll be back.
nunley0 is offline   0 Reply With Quote
Old Oct 1, 2006, 10:39 PM   #8
nunley0
macrumors newbie
 
Join Date: Oct 2006
Finnally solved!!

Download Xcode 2.4 for free at Apple.com!

Now back to my homework lol.
nunley0 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Passing a text file into Xcode instead of using the command line (C language) hollabit Mac Programming 19 Mar 31, 2014 12:45 PM
better touch tool command anonymous4a Mac Applications and Mac App Store 0 Mar 11, 2014 11:38 AM
Command line tools & Xcode 5 & Mavericks ka-spot OS X Mavericks (10.9) 1 Oct 24, 2013 10:35 AM
Unable to download the Command Line Tools (Xcode 5 DP3) cili0 Mac Programming 4 Jul 25, 2013 02:01 PM
excecuting a command line tool from Terminal Mark FX Mac Programming 3 Dec 6, 2012 03:46 PM

Forum Jump

All times are GMT -5. The time now is 01:37 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC