Reputation: 1767
I am using Intellij Idea 2016.1 and I recently started to get this issue where each time I start/restart the IDE it forgets the tomcat conrfiguration and I have to reconfigure it. Any ideas why that might be and how can I fix it? Thanks in advance.
Upvotes: 0
Views: 1270
Reputation: 1767
I just checked that "Share" checkbox and it started working for me, now when I restart the IDE it doens't forget that tomcat configuration.
Upvotes: 0
Reputation: 31936
Try taking a look at this bug report -- https://youtrack.jetbrains.com/issue/IDEA-130886 -- which reported a similar issue back in 2014. It turned out to be an errant PATH VARIABLE definition causing the problem.
If not, some other recommendations:
.idea/workspace.xml
so that DEA recreates it when you open the project. This is the file where IDEA saves run configurations (among other things). If that fixes it but you "lost" too many other configurations, you can try editing the original file to remove the element <component name="RunManager"
(There will be other attributes in it, so just search for name="RunManager"
to find it.).idea/workspace.xml
file. Selecting "Share" results in them being saved in the .idea/runConfigurations
directory (with the thought that you can commit that to version control to share whereas you (normally) do not save the workspace.xml
file to version control.) If nothing else, this gives you a way to easily back up the configuration since it will be in a single XML file in that directory./idea/workspace.xml
file. Crete the configuration and save another copy of the workspace,xnl
file. Exit IDEA. Diff the previously saved two workspace.xml
files to the current one. It may provide a clue as to what the issue is.Upvotes: 2