RunConfiguration files change

已回答

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>

2

Do you run the same version of IntelliJ IDEA?

0
Avatar
Permanently deleted user

Yes, all use IntelliJ community edition version 11.1.2

0
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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

0

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
Avatar
Permanently deleted user

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

We have releated issues under investigation: https://youtrack.jetbrains.com/issue/IDEA-188275, https://youtrack.jetbrains.com/issue/IDEA-174925

Please follow them for updates.

0
Avatar
Permanently deleted user

Also happening with 2020.1, and Yaroslav issues seem to not have anything new in them

0

Hi @Guni. Could you clarify the actions after which the problem happens? Also please specify the IDE version you use. Is it the same version across the team?

Do you use Store as project file option for the configuration?

0
Avatar
Permanently deleted user

Hi Andrey Dernov, thank you for your reply.

We are using the Store as project file, and probably not all team members upgraded to 2020.1 - which I'm using after updating last week

0

How does issue happen usually? What information is modified?

0
Avatar
Permanently deleted user

No change is made by me, it is created automatically, adding <method v="2"> tag (with a lot more)

0

What IDE versions do you use in a team? Could be related to different IDE versions used. Otherwise this looks like same issue as https://youtrack.jetbrains.com/issue/IDEA-174925

0

请先登录再写评论。