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.
First scenario: - Create C/C++ Application project - Add C or C++ header file with this code into project: -------------------------------- int f(); int f2(); -------------------------------- - Save file ==> Quick navigator and Class View is empty Second scenario: - Create C/C++ Application project - Create C file with this code: ------------------------------------- #include <stdlib.h> #include "newmain.h" int f() { return 0; } int f2() { return 0; } int main(int argc, char** argv) { return (EXIT_SUCCESS); } ------------------------------------- - Save file - Create C header file with this code: ------------------------------------- int f(); int f2(); ------------------------------------- - Reload project - Open header file in built-in editor - Add "int f3();" into header file - Save file ==> New f3() function doesn't appear in Class View tab
P.S. It is regression because in build 20070210, for example, I cannot reproduce this bug
getLanguage of header file is "Other", such kind is not accepted and filtered out by project system.
fixed: introduced kind for header file and accept such files in code model cvs log: Checking in modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/ProjectBase.java; /shared/data/ccvs/repository/cnd/modelimpl/src/org/netbeans/modules/cnd/modelimpl/csm/core/ProjectBase.java,v <-- ProjectBase.java new revision: 1.2.2.27.2.38; previous revision: 1.2.2.27.2.37 done Checking in makeproject/src/org/netbeans/modules/cnd/makeproject/api/configurations/Item.java; /shared/data/ccvs/repository/cnd/makeproject/src/org/netbeans/modules/cnd/makeproject/api/configurations/Item.java,v <-- Item.java new revision: 1.2.2.4.8.3; previous revision: 1.2.2.4.8.2 done Checking in core/src/org/netbeans/modules/cnd/api/project/NativeFileItem.java; /shared/data/ccvs/repository/cnd/core/src/org/netbeans/modules/cnd/api/project/NativeFileItem.java,v <-- NativeFileItem.java new revision: 1.1.2.3; previous revision: 1.1.2.2 done
verified in 5.5.1u1