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 250210 - Project Metadata is corrupted after IDE reopen ( erases ccTool flags )
Summary: Project Metadata is corrupted after IDE reopen ( erases ccTool flags )
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 8.0
Hardware: PC Solaris
: P1 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-04 13:37 UTC by Vladimir Voskresensky
Modified: 2015-05-30 10:04 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 2015-02-04 13:37:05 UTC
-open LLVM35
-open file SemaExprObjC.cpp
-open configuration.xml
-check that SemaExprObjC.cpp doesn't have section
        <ccTool flags="2">
        </ccTool>
-use Configure Code Assistance by exec.log
=> in active editor of configuration.xml appears
        <ccTool flags="2">
        </ccTool>
and project is reparsed 
- with configuration.xml as active editor, close IDE
- reopen IDE
- from Files tab open configuration.xml => it is opened on last visible line where 
        <ccTool flags="2">
        </ccTool>
is present
- close configuration.xml
- activate SemaExprObjC.cpp, press Ctrl+Alt+Shift+M and select "General File Information"
- check that "_cplusplus" is 201103
- Ctrl+Shift+1 (Select in Projects) for SemaExprObjC.cpp, open Properties, switch to "C++ Compiler", check that statndard is C++11
- press Cancel 
- close IDE and reopen it
- open configuration.xml from Files tab and find section for SemaExprObjC.cpp

Problem:
        <ccTool flags="2">
        </ccTool>
is erased and as result project is reparsed with incorrect settings, so
error directive fails in file
/usr/gcc/4.8/include/c++/4.8.2/bits/c++0x_warning.h
#if __cplusplus < 201103L
#error This file requires compiler and library support for the \
ISO C++ 2011 standard. This support is currently experimental, and must be \
enabled with the -std=c++11 or -std=gnu++11 compiler options.
#endif
Comment 1 Alexander Simon 2015-02-04 16:18:12 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/2501ebfe3c3c
Comment 2 Vladimir Voskresensky 2015-02-04 17:19:57 UTC
Alexander, am I right, that it have to be fixed for 8.0.2 as well?
Comment 3 Quality Engineering 2015-05-30 10:04:27 UTC
Integrated into 'main-silver', will be available in build *201505300811* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8549e8ff51aa
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #250210 Project Metadata is corrupted after IDE reopen ( erases ccTool flags )