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.

Bug 252762

Summary: AssertionError at org.clang.tools.services.impl.PreprocessorInitializer.clearStatCache
Product: cnd Reporter: soldatov <soldatov>
Component: Code ModelAssignee: Vladimir Voskresensky <vv159170>
Status: RESOLVED FIXED    
Severity: normal CC: bentos, exceptions_reporter
Priority: P1    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 217693
Attachments: stacktrace

Description soldatov 2015-06-02 17:59:26 UTC
This bug was originally marked as duplicate of bug 252673, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201506020001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.45-b02, Java(TM) SE Runtime Environment, 1.8.0_45-b14
OS: Windows 7

User Comments:
soldatov: edit any file

bentos: The code compiles fine (with g++) but 90% of lines of code are reported as errors "Unable to resolve identifier", e.g.
   typedef boost::dynamic_bitset<> genestring;
is reported as "Unable to resolve identifier boos" and "Unable to resolve identifier genestring".




Stacktrace: 
java.lang.AssertionError
   at org.clang.tools.services.impl.PreprocessorInitializer.clearStatCache(PreprocessorInitializer.java:130)
   at org.clang.tools.services.ClankPreprocessorServices.invalidate(ClankPreprocessorServices.java:75)
   at org.netbeans.modules.cnd.apt.impl.support.clank.ClankDriverImpl.invalidateImpl(ClankDriverImpl.java:92)
   at org.netbeans.modules.cnd.apt.impl.support.clank.ClankDriverImpl.invalidateImpl(ClankDriverImpl.java:97)
   at org.netbeans.modules.cnd.apt.support.ClankDriver.invalidate(ClankDriver.java:173)
   at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectImpl.onFileEditStart(ProjectImpl.java:164)
Comment 1 soldatov 2015-06-02 17:59:28 UTC
Created attachment 154025 [details]
stacktrace
Comment 2 Vladimir Voskresensky 2015-06-02 18:29:03 UTC
fixed
http://hg.netbeans.org/cnd-main/rev/ed793e0a252f
Comment 3 Vladimir Voskresensky 2015-06-03 12:23:28 UTC
*** Bug 252766 has been marked as a duplicate of this bug. ***
Comment 4 Quality Engineering 2015-06-04 02:31:34 UTC
Integrated into 'main-silver', will be available in build *201506040001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/ed793e0a252f
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixed #252762 - AssertionError at org.clang.tools.services.impl.PreprocessorInitializer.clearStatCache