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 88613 - Some library files don't have code model support
Summary: Some library files don't have code model support
Status: CLOSED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-03 15:39 UTC by Vladimir Voskresensky
Modified: 2007-12-29 10:51 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2006-11-03 15:39:54 UTC
- create simple example app
- print #include <string.h>
- then open some declarations using /usr/include "project" of classView 
=> in opened document code model doesn't work (no CC, no hyperlink)
Comment 1 Vladimir Voskresensky 2006-11-03 15:46:00 UTC
the problem is with system includes.
according compiler settings system paths could be
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3
=> for file from this folder (i.e. climits) the registered in Lib project
element is 
/usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/../../../../include/c++/3.4.3/climits
but when declarations from this class are opened in editor => the file
corresponding to editor is looked as 
/usr/sfw/include/c++/3.4.3/climits
and when looking for this file in any project it isn't found
=> new CsmFile is created

We should use "unique" key for files, at least resolve all symlinks

Comment 2 Vladimir Voskresensky 2006-11-07 15:12:27 UTC
the necessary infrastructure is introduced 
handled by TraceFlag's flag 
USE_CANONICAL_PATH = getBoolean("cnd.modelimpl.use.canonical.path", false);

change it to "true" for fixing this problem. This can decrease performance due
to additional IO operations.
We can profile to detect hot spots and tune the places where path is already
canonical.
Comment 3 Vladimir Voskresensky 2006-11-07 15:14:02 UTC
cvs log:

Checking in TraceFlags.java;
/shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/TraceFlags.java,v
 <--  TraceFlags.java
new revision: 1.2.2.24; previous revision: 1.2.2.23
done