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 108921 - Code Model is broken in 050707 build
Summary: Code Model is broken in 050707 build
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All Linux
: P1 blocker (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-05 08:14 UTC by soldatov
Modified: 2007-08-06 17:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
My messages.log file (6.04 KB, application/x-gzip)
2007-07-05 08:16 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2007-07-05 08:14:58 UTC
Steps:
- Install 050707 build
- Delete '/tmp/repository-caches' directory (I verified on linux)
- Run Netbeans with fresh user dir
- Create Quote project
- Open quote.cc file
==> Quick Navigator, Class View and Navigator are empty. Code Completion returns "No suggestions". Exceptions on all
hyperlinks.
Comment 1 soldatov 2007-07-05 08:16:48 UTC
Created attachment 44730 [details]
My messages.log file
Comment 2 Vladimir Kvashin 2007-07-05 10:03:56 UTC
I'd like to mention that now code model persistence resides at the different place (due to #108726, persistence storage
now does not have common root within /var/tmp).

So now code model persistence resides at
/var/tmp/${USER}-0-repository-caches

Sp this directory, not '/tmp/repository-caches' should be cleaned.

(Yes, IDE should clean it up itself in the case of the previous session abnormal termination - see the issue #108883;
but this hasn't been fixed yet).
Comment 3 Vladimir Kvashin 2007-07-05 10:32:45 UTC
With empty persistence storage IDE works OK.
But on subsequent restart exception occures and code model features do not work:

java.lang.AssertionError: no file for UID KeyBasedUID on FileKey (/home/vk155633/SunStudioProjects/iz108921,
/home/vk155633/SunStudioProjects/iz108921/file_1.cc)
  at org.netbeans.modules.cnd.modelimpl.csm.core.FileContainer.getFile(FileContainer.java:127)
  at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.getFile(ProjectBase.java:982)
  at org.netbeans.modules.cnd.modelimpl.platform.CppUpToDateStatusProvider.getCsmFile(CppUpToDateStatusProvider.java:79)
  at org.netbeans.modules.cnd.modelimpl.platform.CppUpToDateStatusProvider.projectOpened(CppUpToDateStatusProvider.java:184)
  at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl.fireProjectOpened(ModelImpl.java:379)
  at org.netbeans.modules.cnd.modelimpl.csm.core.ModelImpl.addProject(ModelImpl.java:205)
  at org.netbeans.modules.cnd.modelimpl.platform.ModelSupport.addProject(ModelSupport.java:479)
  at org.netbeans.modules.cnd.modelimpl.platform.ModelSupport.openProjects(ModelSupport.java:174)
  at org.netbeans.modules.cnd.modelimpl.platform.ModelSupport.propertyChange(ModelSupport.java:147)
  at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
  at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
  at org.netbeans.modules.project.ui.OpenProjectsTrampolineImpl.propertyChange(OpenProjectsTrampolineImpl.java:81)
  at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
  at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:276)
  at org.netbeans.modules.project.ui.OpenProjectList$2.run(OpenProjectList.java:327)
  at org.openide.util.Mutex$1.run(Mutex.java:1194)
  at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
  at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
  at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
  at java.awt.Dialog$1.run(Dialog.java:1039)
  at java.awt.Dialog$3.run(Dialog.java:1091)
...
Comment 4 Vladimir Kvashin 2007-07-05 13:34:45 UTC
Fixed:

Checking in RepositoryWritingThread.java;
/shared/data/ccvs/repository/cnd/repository/src/org/netbeans/modules/cnd/repository/queue/RepositoryWritingThread.java,v
 <--  RepositoryWritingThread.java
new revision: 1.1.2.10.4.8; previous revision: 1.1.2.10.4.7
done
Comment 5 Vladimir Kvashin 2007-07-05 13:36:07 UTC
Fixed
Comment 6 Maria Tishkova 2007-08-06 17:18:12 UTC
verified with 5.5.1u1