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 151350 [details] Assistance trouble Although marked as fixed in bug 226941 there still seems to be a problem with Code Assistance and some namespaces (with and without -J-Dcnd.modelimpl.expression.evaluator.deep.variable.provider=true ) The following code causes troubles: #include <chrono> #include <thread> int main() { std::chrono::milliseconds sleepTime( 10 ); std::this_thread::sleep_for( sleepTime ); return 0; } The attached screenshot shows the behavior.
I can't reproduce your problem. In issue 229641 user had not problem with std::chrono too (see https://bugzilla-attachments-229641.netbeans.org/bugzilla/attachment.cgi?id=134349). Do you use c++11 flag in order to setup project?
Created attachment 151351 [details] Test project
Yes the project is set to C++11 (see attachment) Sorry - I pasted the wrong bug number - i meant 236290 which is marked as duplicate of 230760 which is marked as fixed. I've attached my test project - maybe that helps.
Created attachment 151354 [details] screenshot I see you use CLang 3.4 and unknown (for NetBeans) platform. Which OS you use? Can you press Ctrl+Alt and move mouse on "#include <chrono>" (see screenshot)? On Windows or Linux a CLang++ compiler use GCC header files, but it is not a universal rule.
I use FreeBSD 10.1 which uses llvm headers. I'll attach the chrono header and a screenshot for the chrono-include.
Created attachment 151355 [details] Netbeans include screenshot
Created attachment 151356 [details] chrono header
confirmed. Default FreeBSD has problem with std::chrono
Such code confuses parser: namespace A { inline namespace __1 { namespace B { void foo() { } } } } int main() { A::B::foo(); return 0; }
Fixed in http://hg.netbeans.org/cnd-main/rev/9cfc72b96460
Though, I must say that the bug is partly fixed - IDE will recognize namespaces inside inlined namespaces but they will not be listed in code completion list (i.e. navigation to symbols will work but autocompletion won't).
Integrated into 'main-silver', will be available in build *201501220002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/9cfc72b96460 User: Petr Kudryavtsev <petrk@netbeans.org> Log: Fixed #249613 - Code assistance fails for some inline namespaces
verified in trunk >System Info: Product Version = NetBeans IDE Dev (Build 201502240532) (#d6aa48dbbbfb)
verified in NetBeans IDE 8.0.2 (Build 201502242207)