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.
In NetBeans 8.1 I see regressions in header files if I modify source file Scenario 1: - Code #include <cstdio> int main(int argc, char** argv) { return 0; } - Modify file - Press Ctrl-B on <cstdio> ==> "Can not open element "<cstdio>".' message appeared Workaround: save file
main.cpp: =============================== #include "newfile.h" int main(int argc, char** argv) { return 0; } =============================== newfile.h: =============================== #ifndef NEWFILE_H #define NEWFILE_H int foo(); #define AAA 11 #endif /* NEWFILE_H */ =============================== Scenario 2: - Check full Code Completion list in main() ==> I see AAA - Add space into file - Check full Code Completion list again ==> AAA doesn't appear
Scenario 3: - Create Freeway project - Open FreewayWindow.cc file - Add 1-2 spaces into code - Wait 3 seconds ==> All macros are highlighted as a unresolved identifiers Workaround: save file
the other problem during modification of file: - all #defines and #includes do disappear in navigator as well
http://hg.netbeans.org/cnd-main/rev/75e65cb5f745
Integrated into 'main-silver', will be available in build *201507310002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/75e65cb5f745 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #253856 - [newcodemodel] regressions on Code Assistance in unsaved files - when getTS invoked from ensureParsed then file's pp elements have to be created
All 3 scenarios has been fixed in NetBeans trunk. Thank you.
I reviewed the fix and state that it is simple, correct and safe.
I've just transplanted the fix into release81_beta branch: http://hg.netbeans.org/releases/rev/a7c041b8e509