服务器之家

服务器之家 > 正文

IDEA报错:Unable to save settings Failed to save settings

时间:2020-09-29 00:59     来源/作者:码丁的早晨

  今天打开IDEA时,出现了“Unable to save settings Failed to save settings”异常,百度了一下,发现大部分都是说卸载“identifier Highlighter”插件,但是我并没有安装这个插件,所以在翻找了好久之后,终于是解决了问题,在此下一下我的解决经验

  IDEA这个报错翻译过来就是:保存设置失败至于是为什么失败,并没有在此处说明,但是IDEA把具体原因放到了他的日志文件中,所以只要我们找到了日志文件,那么就可以对症下药,解决问题!

1.寻找日志文件

  C盘—User(用户)—.IntelliJIdea文件夹—system—log—idea.log

IDEA报错:Unable to save settings Failed to save settings

IDEA报错:Unable to save settings Failed to save settings

  注意:如果电脑有多个用户,那么就是在你当前用户下的.IntelliJIdea文件夹中

2.找到报错

  打开idea.log文件,从最下面开始翻,找到最新的报错信息,那就是你遇到的真正问题,找到之后,翻译一下,基本就知道问题在哪儿了

下面列举几个报错的原因

1.这个报错是没有写入文件的权限,再看后面的“C:\Users\.idea”,说明是没有C盘的写入权限

IDEA报错:Unable to save settings Failed to save settings

2.此处最下面可以看到“ Cannot save scheme workspace/Jetty Server”,说明是jetty的配置有问题(此处代码转载自https://blog.csdn.net/yjw123456/article/details/78547552/)

?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
2017-11-15 17:20:55,720 [ 196716]  WARN - mponents.impl.stores.StoreUtil - Save settings failed
java.lang.RuntimeException: java.lang.Exception: Cannot get RunManager component state
  at com.intellij.util.ExceptionUtil.rethrow(ExceptionUtil.java:179)
  at com.intellij.util.lang.CompoundRuntimeException.throwIfNotEmpty(CompoundRuntimeException.java:148)
  at com.intellij.configurationStore.ComponentStoreImpl.save(ComponentStoreImpl.kt:199)
  at com.intellij.openapi.components.impl.stores.StoreUtil.save(StoreUtil.java:49)
  at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:349)
  at com.intellij.openapi.components.impl.stores.StoreUtil.saveDocumentsAndProjectsAndApp(StoreUtil.java:126)
  at com.intellij.openapi.application.impl.ApplicationImpl.saveAll(ApplicationImpl.java:1437)
  at com.intellij.ide.SaveAndSyncHandlerImpl.saveProjectsAndDocuments(SaveAndSyncHandlerImpl.java:126)
  at com.intellij.ide.SaveAndSyncHandlerImpl$2.a(SaveAndSyncHandlerImpl.java:94)
  at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:86)
  at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:109)
  at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:118)
  at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:122)
  at com.intellij.ide.SaveAndSyncHandlerImpl$2.onFrameDeactivated(SaveAndSyncHandlerImpl.java:92)
  at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:84)
  at com.intellij.ide.FrameStateManagerImpl.access$500(FrameStateManagerImpl.java:32)
  at com.intellij.ide.FrameStateManagerImpl$2.a(FrameStateManagerImpl.java:70)
  at com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)
  at com.intellij.util.Alarm$Request.runSafely(Alarm.java:417)
  at com.intellij.util.Alarm$Request.access$700(Alarm.java:344)
  at com.intellij.util.Alarm$Request$1.run(Alarm.java:384)
  at com.intellij.openapi.application.TransactionGuardImpl$2.run(TransactionGuardImpl.java:314)
  at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:416)
  at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:399)
  at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
  at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:762)
  at java.awt.EventQueue.access$500(EventQueue.java:98)
  at java.awt.EventQueue$3.run(EventQueue.java:715)
  at java.awt.EventQueue$3.run(EventQueue.java:709)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
  at java.awt.EventQueue.dispatchEvent(EventQueue.java:732)
  at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:821)
  at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:649)
  at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:365)
  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)
Caused by: java.lang.Exception: Cannot get RunManager component state
  at com.intellij.configurationStore.ComponentStoreImpl.save(ComponentStoreImpl.kt:166)
  ... 38 more
Caused by: java.lang.RuntimeException: Cannot save scheme workspace/Jetty Server: jetty (level: WORKSPACE)
  at com.intellij.configurationStore.SchemeManagerImpl.save(SchemeManagerImpl.kt:535)
  at com.intellij.configurationStore.Scheme_implKt.save(scheme-impl.kt:154)
  at com.intellij.execution.impl.RunManagerImpl.getState(RunManagerImpl.kt:500)
  at com.intellij.execution.impl.RunManagerImpl.getState(RunManagerImpl.kt:63)
  at com.intellij.configurationStore.ComponentStoreImpl.a(ComponentStoreImpl.kt:227)
  at com.intellij.configurationStore.ComponentStoreImpl.save(ComponentStoreImpl.kt:159)
  ... 38 more

到此这篇关于IDEA报错:Unable to save settings Failed to save settings的文章就介绍到这了,更多相关IDEA Unable to save settings 内容请搜索服务器之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持服务器之家!

原文链接:https://blog.csdn.net/qq_39754721/article/details/108846887

相关文章

热门资讯

2020微信伤感网名听哭了 让对方看到心疼的伤感网名大全
2020微信伤感网名听哭了 让对方看到心疼的伤感网名大全 2019-12-26
Intellij idea2020永久破解,亲测可用!!!
Intellij idea2020永久破解,亲测可用!!! 2020-07-29
歪歪漫画vip账号共享2020_yy漫画免费账号密码共享
歪歪漫画vip账号共享2020_yy漫画免费账号密码共享 2020-04-07
电视剧《琉璃》全集在线观看 琉璃美人煞1-59集免费观看地址
电视剧《琉璃》全集在线观看 琉璃美人煞1-59集免费观看地址 2020-08-12
最新idea2020注册码永久激活(激活到2100年)
最新idea2020注册码永久激活(激活到2100年) 2020-07-29
返回顶部