Unable to save settings, workspace.xml FileTooBigException

Answered

Hello,

I get constant: "Unable to save settings: Failed to save settings. Please restart IntelliJ IDEA"

In idea.log I can see:
2017-03-28 09:32:14,003 [2351262]   WARN - mponents.impl.stores.StoreUtil - Save settings failed
java.lang.RuntimeException: com.intellij.openapi.util.io.FileTooBigException: /Users/aismailov/my_project/trunk/.idea/workspace.xml

The workspace.xml file is 30.3MB and something is blocking it from growing larger.
I am on osx 10.12.3 with IntelliJ Ultimate 2017.1.
I have disabled "Markdown support" as recommended in similar threads.
I have chmod -R 777 workspace.xml
If I delete the file, it is re-created and grows to 30.3MB and then stops.
My idea.vmoptions:

-Xms2048m
-Xmx8192m
-XX:ReservedCodeCacheSize=512m
-XX:+UseCompressedOops
-XX:+HeapDumpOnOutOfMemoryError

I really need help with this because none of new project related settings I made are saved.

0
3 comments

Thank you, found and voted for an open bug about this:
https://youtrack.jetbrains.com/issue/IDEA-170230

1

 I see the suggested workaround there is to increases the size limit of the idea file.  My solution was to simply delete the workspace.xml file and have Phpstorm regenerate it.  Not ideal if you have a lot of projects saved, or a lot of customization, but in my case this was not a big deal.  XML file went from 22MB to 6.  I have to assume the upgrade (or the history of upgrades) has left a lot of clutter behind.

0

Please sign in to leave a comment.