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.
Build: NetBeans IDE 7.3.1 (Build 201304162201) VM: Java HotSpot(TM) 64-Bit Server VM, 23.21-b01, Java(TM) SE Runtime Environment, 1.7.0_21-b11 OS: Linux User Comments: szmitek: After creating blank file /root/.cache/netbeans/7.3.1dev/cnd/model/text_index/_mi_a.del with nano Stacktrace: java.io.IOException: read past EOF: MMapIndexInput(path="/root/.cache/netbeans/7.3.1dev/cnd/model/text_index/_mi_a.del") at org.apache.lucene.store.MMapDirectory$MMapIndexInput.readByte(MMapDirectory.java:279) at org.apache.lucene.store.DataInput.readInt(DataInput.java:84) at org.apache.lucene.store.MMapDirectory$MMapIndexInput.readInt(MMapDirectory.java:315) at org.apache.lucene.util.BitVector.<init>(BitVector.java:269) at org.apache.lucene.index.SegmentReader.loadDeletedDocs(SegmentReader.java:159) at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:119)
Created attachment 134622 [details] stacktrace
Created attachment 134623 [details] stacktrace Prblem with lack of file /root/.cache/netbeans/7.3.1dev/cnd/model/text_index/_mi_a.del
Removing directory .cache/netbeans/7.3.1dev/cnd/model/text_index/ helps me. Maybe Netbeans should delete this directory or some files in it when error occurs.
*** Bug 229969 has been marked as a duplicate of this bug. ***
in case of broken index we have to reparse project, otherwise FindUsages will provide incorrect results, because now it completely relies on index content.
repository should allow index provider to mark unit as broken which will force automatic repository error and reparse instead of restore project from repo
Somewhat related, although not the same issue is issue #225335
Created attachment 134990 [details] proposed fix
Created attachment 134999 [details] yet better fix
fixed in cnd-main http://hg.netbeans.org/cnd-main/rev/7f595d229af2
Integrated into 'main-golden', will be available in build *201305282301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/7f595d229af2 User: Vladimir Kvashin <vkvashin@netbeans.org> Log: fixed #229971 java.io.IOException: read past EOF: MMapIndexInput(path="...ex/_mi_a.del")