unable to save settings
Answered
Whenever I start Intellij I get a message that says "unable t save settings. Failed to save settings. please restart InteliijIDE.
Win 7 64bit Intellij version 1.4.1 build # 141.177
It doesn't seem that it forgets any settings (I can chage plugins and inspector settings etc and have them persist over a closing opening cycle) but I don't want to get a surprise later either.
Does anyone know what might be causing this? Write permissions somehow? AFAIK, Intellij has full read/write permissions on my machine.
TIA
Please sign in to leave a comment.
Hi Serge, I also get this famous error in my IntelliJ 15.0.6, running on Ubuntu 16.04 LTS, last entries in log are added below. How I can fix it?
Thanks...
2017-11-23 16:42:13,600 [ 109667] WARN - mponents.impl.stores.StoreUtil - Save settings failed
java.lang.IllegalStateException
at com.intellij.openapi.components.MainConfigurationStateSplitter.getSubStateFileName(MainConfigurationStateSplitter.java:56)
at com.intellij.openapi.components.MainConfigurationStateSplitter.splitState(MainConfigurationStateSplitter.java:36)
at com.intellij.configurationStore.DirectoryBasedStorage$MySaveSession.setSerializedState(DirectoryBasedStorage.kt:122)
at com.intellij.configurationStore.SaveSessionBase.setState(SaveSessionBase.kt:42)
at com.intellij.configurationStore.StateStorageManagerImpl$startExternalization$1.setState(StateStorageManagerImpl.kt:342)
at com.intellij.configurationStore.ComponentStoreImpl.a(ComponentStoreImpl.kt:199)
at com.intellij.configurationStore.ComponentStoreImpl.save(ComponentStoreImpl.kt:124)
at com.intellij.openapi.components.impl.stores.StoreUtil.save(StoreUtil.java:49)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:362)
at com.intellij.ide.SaveAndSyncHandlerImpl.doSaveDocumentsAndProjectsAndApp(SaveAndSyncHandlerImpl.java:146)
at com.intellij.ide.SaveAndSyncHandlerImpl.saveProjectsAndDocuments(SaveAndSyncHandlerImpl.java:134)
at com.intellij.ide.SaveAndSyncHandlerImpl$4.onFrameDeactivated(SaveAndSyncHandlerImpl.java:104)
at com.intellij.ide.FrameStateManagerImpl.b(FrameStateManagerImpl.java:87)
at com.intellij.ide.FrameStateManagerImpl.access$500(FrameStateManagerImpl.java:32)
at com.intellij.ide.FrameStateManagerImpl$2$1.run(FrameStateManagerImpl.java:72)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:352)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:337)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:321)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:866)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Could you please share full idea.log ("Help | Showq Log in...") after restarting IDE and reproducing the issue?
Run as administrator fixed my problem
Run into the same problem with CLion.
I've attached the minimal log until I saw the bubble popping up in the user interface (I did a full restart (ie Invalidate Cache & Restart)).
Any help is appreciated.
Ubuntu 16.04 LTS.
Worked fine recently when CLion randomly shut down a couple of times (I don't know exactly when it happened). Yesterday evening this popped up for the first time and keeps popping up ever since.
I've deactivated all custom plugins
Well, the cause of that error in my case was actually quite clear: the config files present in the branch under .idea are not acceptable for my version. Dear friend of mine found the code that aborts:
https://github.com/JetBrains/intellij-community/blob/19914b0c3f5100f23928d4409c82edc3d638d430/platform/projectModel-api/src/com/intellij/openapi/components/MainConfigurationStateSplitter.java#L50
as we can see it reads an XML file and wants to have some entry called <xxxx name="myName" value="whatever"> or it throws an exception. So, that might consider some fixing in InteliJ? Isn't that too restrictive? ;)
File in my case was copyright of some custom framework that we use:
.idea/copyrights/DomUI.xml
That was giving the trouble, and after I deleted that file it worked fine.
Hope this saves some time for somebody else too ;)
Bye
Thanks for information! We have similar issue on YouTrack: https://youtrack.jetbrains.com/issue/PY-23397
I have solved it by deleting a corrupt file in the .idea/ folder... I don't know how that file came to the .idea folder, buy I am guessing phpstorm did generate that file, obviously by mistake... maybe it had an error at the time of writting the file...
I had the same problem with Webstorm 11. Save settings failed. idea.log had the following:
2018-08-21 16:20:05,468 [89224066] WARN - mponents.impl.stores.StoreUtil - Save settings failed
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(String.java:658)
at com.intellij.configurationStore.ApplicationStorageManager.expandMacros(ApplicationStoreImpl.kt:108)
at com.intellij.configurationStore.StateStorageManagerImpl.createStateStorage(StateStorageManagerImpl.kt:194)
at com.intellij.configurationStore.StateStorageManagerImpl.getOrCreateStorage(StateStorageManagerImpl.kt:150)
at com.intellij.configurationStore.StateStorageManagerImpl.getStateStorage(StateStorageManagerImpl.kt:133)
at com.intellij.configurationStore.StateStorageManagerImpl$startExternalization$1.setState(StateStorageManagerImpl.kt:342)
at com.intellij.configurationStore.ComponentStoreImpl.a(ComponentStoreImpl.kt:199)
at com.intellij.configurationStore.ComponentStoreImpl.save(ComponentStoreImpl.kt:124)
at com.intellij.openapi.components.impl.stores.StoreUtil.save(StoreUtil.java:49)
at com.intellij.openapi.application.impl.ApplicationImpl.saveSettings(ApplicationImpl.java:1433)
at com.intellij.ide.SaveAndSyncHandlerImpl.doSaveDocumentsAndProjectsAndApp(SaveAndSyncHandlerImpl.java:150)
at com.intellij.ide.SaveAndSyncHandlerImpl.saveProjectsAndDocuments(SaveAndSyncHandlerImpl.java:134)
at com.intellij.ide.SaveAndSyncHandlerImpl$4.onFrameDeactivated(SaveAndSyncHandlerImpl.java:104)
at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:87)
at com.intellij.ide.FrameStateManagerImpl.access$500(FrameStateManagerImpl.java:32)
at com.intellij.ide.FrameStateManagerImpl$2$1.run(FrameStateManagerImpl.java:72)
at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:238)
at com.intellij.util.Alarm$Request$1.run(Alarm.java:352)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:337)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:321)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:866)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:654)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:381)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Fixed as per Andrey Dernov's suggestion (https://intellij-support.jetbrains.com/hc/en-us/community/posts/206812095/comments/204828250)
"File | Invalidate Caches/Restart.. | Invalidate and Restart action. "
For me the issue was that the plugin had implicit dependencies on other plugins. Activating those fixed the issue, but required a lot of trial and error.
After installing a plugin and updating to 2019.1.1 I ran into the same problem. Disabling the plugin (Identifier Highlighter) fixed it.
Without any new plugins, this started happening for me in 2019.1.1 today. It is highly annoying since it happens 3 or 4 times on the save cycle. Invalidating caches did not solve the problem.
I had this too, and it happens when I terminated a sub-process of my project under Intellij IDEA in task manager in Windows 10.
In the log(which locates under "$user.dir$\.IntelliJIdea2019.1\system\log", I see these lines:
It seems that another process is using this file and it is not IDEA.I think restart and kill that unknown process will do.
Disabling http://i.imgur.com/wzNHcXX.png may help.
Unbelievable. It has been an issue since 2015! It is still an issue guys. I've just installed a fresh version of macos Mojave and IDEA 15 (downloaded from jetbrains) and I get that error on the very first start!
@Serge Baranov, disabling "safe write" does not help.
Come on guys, it is easily reproducible, you can reproduce it on your side to fix this nasty issue.
Please report at https://youtrack.jetbrains.com/issues/IDEA with the logs attached. There are multiple causes for this error. What was causing it in 2015 has been fixed long time ago. Your issue is probably completely different.
Ok, I accidentally figured out what is the cause in my case. I've uninstalled the official markdown plugin and now it saves again.
I started having this problem after moving from downloading IntelliJ directly to using the Snap package. I am running Ubuntu 19.10.
Please submit to TY with the logs: Help | Compress Logs and Show in ...
For what it's worth, I ran into this same issue in the CE release. Updating to the latest stable CE version didn't fix it. A full uninstall/(re)install fixed it on my end.
I have the same problem. File -> Invalidate Caches / Restart ...
Solve my problem!
+1 for Gjorgi answer which also solved the issue in my case ... thank you !