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.
- 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)
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
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.
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