This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 206883 - IllegalStateException: Unknown status: [REMOVED_HEAD_INDEX]
Summary: IllegalStateException: Unknown status: [REMOVED_HEAD_INDEX]
Status: VERIFIED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
: 209012 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-03 20:42 UTC by musicalshore
Modified: 2012-03-01 08:51 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 184134


Attachments
stacktrace (1.00 KB, text/plain)
2012-01-03 20:42 UTC, musicalshore
Details

Note You need to log in before you can comment on or make changes to this bug.
Description musicalshore 2012-01-03 20:42:26 UTC
This bug was originally marked as duplicate of bug 197132, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.1 RC2 (Build 201111302200)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13
OS: Windows 7

User Comments:
GUEST: removing a folder recursively from git index

git rm -r --cache foldername/

merxbj: I did a simple line changes into a single java source file. Then I tried to revert it back, but this exception occured. Please see steps to recreate for more detail:
 1) Open a class library java project
 2) Open and edit a source file under one level package structure (package/SourceFile.java)
 3) Right click on the edited project file
 4) Left click on the Revert Modification
 5) No changes on the pop-up window and confirm

jglick: Clicked on gutter next to "$Id: ....$" in Maven 3 sources which was incorrectly marked as a modification (separately reported), and clicked the revert button. File now displayed as unmodified, but this exception thrown.

GUEST: attempting to use git plugin to revert changes to a file. the revert appears to have worked, but this exception was thrown




Stacktrace: 
java.lang.IllegalStateException: Unknown status: [REMOVED_HEAD_INDEX]
   at org.netbeans.modules.git.Annotator.annotateFileIcon(Annotator.java:346)
   at org.netbeans.modules.git.Annotator.annotateIcon(Annotator.java:259)
   at org.netbeans.modules.versioning.VersioningAnnotationProvider$Cache.annotate(VersioningAnnotationProvider.java:649)
   at org.netbeans.modules.versioning.VersioningAnnotationProvider$Cache.annotate(VersioningAnnotationProvider.java:680)
   at org.netbeans.modules.versioning.VersioningAnnotationProvider$Cache.access$1700(VersioningAnnotationProvider.java:502)
   at org.netbeans.modules.versioning.VersioningAnnotationProvider$Cache$AnnotationRefreshTask.run(VersioningAnnotationProvider.java:771)
Comment 1 musicalshore 2012-01-03 20:42:28 UTC
Created attachment 114595 [details]
stacktrace
Comment 2 Ondrej Vrabec 2012-01-04 09:34:38 UTC
fix: http://hg.netbeans.org/core-main/rev/abe727ec00cb
Comment 3 Quality Engineering 2012-01-05 15:50:23 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/abe727ec00cb
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #206883 - IllegalStateException: Unknown status: [REMOVED_HEAD_INDEX]
Comment 4 Stepan Zebra 2012-02-09 14:27:56 UTC
verified in trunk
Comment 5 Ondrej Vrabec 2012-02-10 10:09:32 UTC
http://hg.netbeans.org/releases/rev/59235e6e2f96
Comment 6 Quality Engineering 2012-02-11 02:52:19 UTC
Integrated into 'releases', will be available in build *201202102200* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/59235e6e2f96
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #206883 - IllegalStateException: Unknown status: [REMOVED_HEAD_INDEX]
(transplanted from abe727ec00cb5285f87df76dc71acc604e6543e7)
Comment 7 Stepan Zebra 2012-02-28 13:16:28 UTC
verified in 7.1.1
Comment 8 Ondrej Vrabec 2012-03-01 08:51:54 UTC
*** Bug 209012 has been marked as a duplicate of this bug. ***