RunConfiguration files change

Answered

I use Intellij community edition and work with a team on a project.
We defined some run configurations for starting our app. But when I open the project with intellij, it changes always the content of the files located in ".idea\runConfigurations" .
This is very annoying because we are using git as vcs and i have to reset the xml-files before each commit. The other team members are also using IntelliJ and they havn't this problem.

Here is a snippet of the original run configuration file:


<method>
      <option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/illacommon/build_libs.xml" target="download_everything" />
      <option name="Make" enabled="true" />
</method>



And here is the same snippet, after I started IntelliJ:

<method>
      <option name="AntTarget" enabled="true" antfile="file://$PROJECT_DIR$/illacommon/build_libs.xml" target="download_everything" />
</method>

7 comments
Comment actions Permalink

Do you run the same version of IntelliJ IDEA?

0
Comment actions Permalink

Yes, all use IntelliJ community edition version 11.1.2

0
Comment actions Permalink

We have the exact same issue. Although right now we are not using the same version of Idea Ultimate 2016.2.4 and 2016.3 EAP it does not seem to be related sinceit has happened with other versions also and my IDE always removes the <option name="Make" enabled="true" /> from the file whilst my colleague's always adds it.

This is surely some kind of configuration we are missing.

0
Comment actions Permalink

The problem is still present with IntelliJ Ultimate 2018.2.4. Any workaroud ?

0
Comment actions Permalink

Could you please provide steps or xm files to reproduce?

I copied run configuration fro one project to another, started IDE and file wasn't changed in second project.

0
Comment actions Permalink

An xml file in the .idea/runConfiguration folder

<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="CS+LG" type="CompoundRunConfigurationType" factoryName="Compound Run Configuration">
    <toRun type="Application" name="LogGate" />
    <toRun type="#com.intellij.j2ee.web.tomcat.TomcatRunConfigurationFactory" name="ConsoleServer_light" />
    <method v="2" />
  </configuration>
</component>

The problem is with the `v="2"` part, which is present or not dependending on the people.
If ever I delete this part, it appears again in the file.

We're working with my colleagues on the same project, using git.

0

Please sign in to leave a comment.