Crash when edit category name with code completion on
Crash when edit category name with code completion on
- Subject: Crash when edit category name with code completion on
- From: Bill Cheeseman <email@hidden>
- Date: Sun, 12 Apr 2009 12:08:52 -0400
I'm trying to edit an Objective C header file that I've been using for
a long time, under Xcode 3.1.2. I can't remember if I previously tried
to edit this particular file in 3.1.2, but I think not -- the last
edit was probably made under 3.1.1 or earlier.
Xcode repeatably crashes every time I click in the name of a category
in parentheses in a particular category interface declaration in this
file, and also if I move the text insertion caret into the category
name from either end using the arrow keys. The error is (Uncaught
Exception: *** -[NSCFString substringWithRange:]: Range or index out
of bounds". I can click anywhere else in the file, including in other
category names, and edit the file without difficulty.
I've tried everything I can think of: Delete a block of text around
the offending line and type the text anew from the keyboard (on the
theory that there might have been a bad character there). Rebuild the
code sense index. Shut down and reboot.
Finally I decided to change my code sense settings in Preferences, by
setting Automatically Suggest to Never and Automatically Highlight to
Never -- and the problem went away! But when I turn either of those
settings back on, to a With Delay setting, the problem reappears.
Is this a known bug in Xcode 3.1.2, or should I really worry that this
is a corrupt file?
--
Bill Cheeseman
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