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 269938 - On Windows IDE modifies configurations.xml if file has been created on Solaris/Linux
Summary: On Windows IDE modifies configurations.xml if file has been created on Solari...
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project Discovery (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-27 13:32 UTC by soldatov
Modified: 2017-04-19 11:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
test project (10.00 KB, application/x-tar)
2017-02-27 13:32 UTC, soldatov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2017-02-27 13:32:43 UTC
Created attachment 163720 [details]
test project

Scenario:
- Prepare environment
-- Unpack test project
-- Commit files to some external folder (I used Mercurial VCS)
- On Windows:
-- launch hg clone http://.....
-- Launch NetBeans 8.2
-- Open project
-- Clean&Build project
==> IDE modified nbproject/configurations.xml

diff -r 0c5cf2edbada nbproject/configurations.xml
--- a/nbproject/configurations.xml	Mon Feb 27 15:46:38 2017 +0300
+++ b/nbproject/configurations.xml	Mon Feb 27 16:31:51 2017 +0300
@@ -24,6 +24,9 @@
         <dependencyChecking>false</dependencyChecking>
         <rebuildPropChanged>false</rebuildPropChanged>
       </toolsSet>
+      <flagsDictionary>
+        <element flagsID="0" commonFlags="-g"/>
+      </flagsDictionary>
       <codeAssistance>
       </codeAssistance>
       <makefileType>
@@ -32,6 +35,11 @@
           <buildCommand>${MAKE} -f Makefile</buildCommand>
           <cleanCommand>${MAKE} -f Makefile clean</cleanCommand>
           <executablePath>test</executablePath>
+          <ccTool>
+            <incDir>
+              <pElem></pElem>
+            </incDir>
+          </ccTool>
         </makeTool>
         <preBuild>
           <preBuildCommandWorkingDir>.</preBuildCommandWorkingDir>
@@ -39,6 +47,8 @@
         </preBuild>
       </makefileType>
       <item path="test.cpp" ex="false" tool="1" flavor2="0">
+        <ccTool flags="0">
+        </ccTool>
       </item>
     </conf>
   </confs>
Comment 1 soldatov 2017-02-27 13:42:01 UTC
Workaround: switch off "Code Assistance|Use Build Analyzer" checkbox
Comment 2 Alexander Simon 2017-03-21 13:21:57 UTC
fixed on enum, branch release82, changeset 2aea02af6558
Comment 3 Quality Engineering 2017-03-24 02:53:02 UTC
Integrated into 'main-silver', will be available in build *201703240002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/70722bcc24bc
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #269938 On Windows IDE modifies configurations.xml if file has been created on Solaris/Linux
(transplanted from 2aea02af65589b684629a0b1f9042be4661ec247)
Comment 4 ilia 2017-04-13 10:37:22 UTC
https://netbeans.org/bugzilla/show_bug.cgi?id=269938 Changesets:
    http://hg.netbeans.org/releases/rev/2aea02af6558 # fixed Bug #269938 On Windows IDE modifies configurations.xml if file has been created on Solaris/Linux
Comment 5 soldatov 2017-04-19 11:46:27 UTC
Verified in NetBeans IDE 8.2 (Build 201704181436)