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 83992

Summary: Code Completion list contain items from other projects
Product: cnd Reporter: soldatov <soldatov>
Component: Code CompletionAssignee: Alexander Simon <alexvsimon>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2006-09-01 07:47:52 UTC
- Create "Args" sample project
- Create "C/C++ Application" project and add in this project this file:
------------------------------
int main() {
    
    return(0);
}

------------------------------
- Move cursor in "main" function and press ctrl-space
==> code completion contain a lot of external function 
- Close all projects
- Open "C/C++ Application" project again
==> code completion contain a lot of external function 
I should restart IDE, If I want to have correct code completion list
Comment 1 Alexander Simon 2006-09-07 15:19:49 UTC
fixed by:
 - new method resolveFile for CsmModel
 - moved responsibility on resolving file from CsmUtilities to ModelImpl

CVS log:
Checking in modelutil/src/org/netbeans/modules/cnd/modelutil/CsmUtilities.java;
/shared/data/ccvs/repository/cnd/modelutil/src/org/netbeans/modules/cnd/modelutil/CsmUtilities.java,v
 <--  CsmUtilities.java
new revision: 1.2.2.2; previous revision: 1.2.2.1
done
Checking in
modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/ModelImpl.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/ModelImpl.java,v
 <--  ModelImpl.java
new revision: 1.2.2.2; previous revision: 1.2.2.1
done
Checking in modelapi/src/org/netbeans/modules/cnd/api/model/CsmModel.java;
/shared/data/ccvs/repository/cnd/modelapi/src/org/netbeans/modules/cnd/api/model/CsmModel.java,v
 <--  CsmModel.java
new revision: 1.2.2.2; previous revision: 1.2.2.1
done
Comment 2 Maria Tishkova 2007-08-06 18:11:42 UTC
5.5.1u1