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.
Created attachment 140519 [details] Contains a copy of a project with the bug and a screenshot. In some header files the code completion goes haywire and marks nearly all of the identifiers with the "unable to resolve identifier X" error. This happened in a C++11 Application project. I tried to replicate the bug with minimal code, but I wasn't able, so I attached my project and a screenshot in a zip file. In this project the error first appeared in Screen.hpp. Then after some time it started to work again, but the error reappeared in the previously working Error.hpp (see the screenshot). Regardless of this, the project compiles without any warning or error. The project has external dependencies on SFML 2.1 and pugixml, but I hope the bug shows itself without them too. I don't know what triggers this bug or any workarounds for it, but I find this bug a mayor showstopper for NetBeans 7.4.
Thanks to Petr for investigation it's regression caused by http://hg.netbeans.org/cnd-main/rev/07d17d47b441
if header file guarded by pragma once has conditional preproc blocks like #if ... #else ... #endif then code assistance in such files is completely broken
Created attachment 140619 [details] simple test case project sample project
Created attachment 140620 [details] patch to fix the problem
Verified in special build with fix (NetBeans IDE 7.4 RC2 (Build cnd-build-10530-on-20130930))
fix is safe
fixed http://hg.netbeans.org/cnd-main/rev/8083744b4356
transplanted: http://hg.netbeans.org/releases/rev/b047f8860636
Integrated into 'main-silver', will be available in build *201310010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8083744b4356 User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #236435 - [Regression] Unable to resolve all of the identifiers in files with pragma once - separate handling for stop conditions: #error vs. #pragma once (transplanted from d9e651e66655c1040c1d6719537444058064f831)
verified in NetBeans IDE 7.4 RC2 (Build 201309302222)