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 269243 - incorrect handling of orphan system includes after changes in main file
Summary: incorrect handling of orphan system includes after changes in main file
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-05 18:32 UTC by Vladimir Voskresensky
Modified: 2017-03-30 14:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Voskresensky 2016-12-05 18:32:18 UTC
run IDE with -J-Dcnd.use.headers.indexer=false
create c++ application with main in C++14 mode
replace #include 
to be 
#include <functional>
wait parse
comment out #include directive and save => you can see trace in log:
INFO [cnd.logger]: null entry for valid file PARSED FileImpl @2127280726:272759496 /usr/include/c++/4.9/functional prj:178751629KeyBasedUID on ProjectKey /usr/include/c++/4.9 NOT_BEING_PARSED
java.lang.Exception: null entry for valid file PARSED FileImpl @2127280726:272759496 /usr/include/c++/4.9/functional prj:178751629KeyBasedUID on ProjectKey /usr/include/c++/4.9 NOT_BEING_PARSED
@[Code Model Parser 3: PARTIAL Reparsing /home/vv159170/NetBeansProjects/CppApplication_Editor/main.cpp]
[catch] at org.netbeans.modules.cnd.utils.CndUtils.assertTrueInConsole(CndUtils.java:222)
    at org.netbeans.modules.cnd.utils.CndUtils.assertTrueInConsole(CndUtils.java:287)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ProjectBase.markAsParsingPreprocStates(ProjectBase.java:1738)
    at org.netbeans.modules.cnd.modelimpl.csm.core.DeepReparsingUtils.reparseOnChangedFileImpl(DeepReparsingUtils.java:189)
    at org.netbeans.modules.cnd.modelimpl.csm.core.DeepReparsingUtils.finishPartialReparse(DeepReparsingUtils.java:153)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsedImpl(FileImpl.java:893)
    at org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:673)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread._run(ParserThread.java:148)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:74)
    at org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:92)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
    at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)
SEVERE [org.netbeans.modules.cnd.modelimpl]: Adding a file /usr/include/c++/4.9/functional with an emty preprocessor state set

=> exception
because incorrect file owner is used to invalidate file states