Re: Xcode 1.5 indexing bug
Re: Xcode 1.5 indexing bug
- Subject: Re: Xcode 1.5 indexing bug
- From: SD <email@hidden>
- Date: Tue, 24 Aug 2004 13:33:08 -0700
Previous message on 8/11/04 at 10:13 AM -0700
**********************************************************************
>I upgraded to Xcode 1.5 over the weekend and my project I'm working
>with keeps giving me the following error whenever I save certain
>files.
>
>Warning
>An exception occurred while indexing "ReqControl": Unable to delete
>reference record 817 for NotificationManager (4629)
>
>This requires the index to be rebuilt.
____________________________________________________________________________
FYI: I've reproduced this in a simple project and have reported it to
Apple (#3773964).
The bug report:
---------------------------------------------------------------------------
I have a Java project that I'm working with and whenever I save
certain files I get the following Warning and then the project index
has to be rebuilt.
-------------
An exception occurred while indexing "testindex":
Unable to delete reference record 516 for EditingManager (1975)
This requires the index to be rebuilt.
--------------
This problem started with Xcode 1.5.
I've reproduced the problem in a simple project which I will e-mail to you too.
If you have a Java class that is part of a Java package (has the
package <package name> directive in it) and you create static class
variable that uses the class's constructor before the construtor is
declared in the file, the project indexer can't index the file and
causes the whole project be re-indexed.
To reproduce:
*Open the project and open the EditingManager.java file.
*Uncomment line 8. -- // private static final EditingManager
theEditingManager = new EditingManager();
*Save the file.
*Delete xx from line 10
*Save the file.
*You should now be given the warning and the index will have to be rebuilt.
NOTE: If you remove line 1 -- package com.Derman.Test;
then you will not get the index rebuild error.
BTW: For quick reproduction of the error I created a copy of the
project in my home folder (testindex copy) and opened a terminal with
the following command in it
rm -rf ~/testindex ; cp -R ~/testindex\ copy ~/testindex ; open
~/testindex/testindex.xcode
Then once I get the error, I quit Xcode and run the command.
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.