Java 无法保存设置:IntelliJ IDEA

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/36479123/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 17:54:59  来源:igfitidea点击:

Unable to save settings : IntelliJ IDEA

javaintellij-ideaide

提问by Saidi Marwén

I use IntelliJ IDEA 15 and have a problem with the auto-saving. For example I make a new configuration, e.g. Show the line number. When I close IntelliJ and reopen my IDE, it doesn't save my configuration and shows me this message:

我使用 IntelliJ IDEA 15 并且在自动保存时遇到问题。例如我做了一个新的配置,例如显示行号。当我关闭 IntelliJ 并重新打开我的 IDE 时,它不会保存我的配置并向我显示以下消息:

Unable to save settings : Failed to save settings . Please restart IntelliJ IDEA

无法保存设置:无法保存设置。请重启 IntelliJ IDEA

采纳答案by Jon Lauridsen

I get this too (IntelliJ 15.0.5), but only when the "Markdown support" plugin is used. Once a .md file is visualised the error starts appearing.

我也得到了这个(IntelliJ 15.0.5),但仅当使用“Markdown support”插件时。一旦 .md 文件被可视化,错误就会开始出现。

For future reference current version: 2016.1.20160405.143

供将来参考当前版本:2016.1.20160405.143

Not a very solution-oriented post, but maybe this can help someone further pinpoint the source of the error.

不是一个非常面向解决方案的帖子,但也许这可以帮助某人进一步查明错误的来源。

回答by Saidi Marwén

I delete this file : .IntelliJIdea
When I launch ./idea I should reconfigure all IntelliJ system (config/ extention/ theme/ licence ...)
So It's okay now but I think is not a good solution ...

我删除了这个文件:.IntelliJIdea
当我启动 ./idea 时,我应该重新配置所有 IntelliJ 系统(配置/扩展/主题/许可证......)
所以现在可以了,但我认为这不是一个好的解决方案......

回答by Lincoln Gup

I was receiving the error with:

我收到以下错误:

  • IntelliJ v15.0.6
  • "Markdown support" plugin version 2016.1.20160405.143
  • IntelliJ v15.0.6
  • 《Markdown 支持》插件版本 2016.1.20160405.143

I uninstalled the Markdown support plugin (IntelliJIDEA > Preferences... > Plugins > Markdown support), restarted IntelliJ, and am now able to save without error.

我卸载了 Markdown 支持插件(IntelliJIDEA > Preferences... > Plugins > Markdown support),重新启动IntelliJ,现在可以毫无错误地保存。

回答by Xiao Peng - ZenUML.com

This workaround allows you continue using "Markdown Support".

此解决方法允许您继续使用“Markdown 支持”。

Uninstall the latest version of "Markdown Support" and install version "8.0.0.20160127.143.1" from https://plugins.jetbrains.com/plugin/7793?pr=idea. Everything works fine.

卸载最新版本的“Markdown Support”并从https://plugins.jetbrains.com/plugin/7793?pr=idea安装版本“8.0.0.20160127.143.1” 。一切正常。

回答by Harsha Siriwardana

I got same error message for InteliJ WebStrormsaying

我收到 InteliJ WebStrorm 的相同错误消息说

Unable to save settings Failed to save settings. Please restart WebStorm

无法保存设置 无法保存设置。请重新启动 WebStorm

It happened due to permission issue. if you don't have permission to save this message could pop-up. Please make sure you have write permission to the folder you are saving.

这是由于权限问题而发生的。如果您无权保存此消息,则可能会弹出。请确保您对要保存的文件夹具有写入权限。

回答by DarkMukke

On windows 10 I had the same problem, I ran PhpStorm as administrator which fixed permission issues it had. Then I restarted PhpStorm without administrator permissions and everything worked fine.

在 Windows 10 上,我遇到了同样的问题,我以管理员身份运行 PhpStorm,修复了它的权限问题。然后我在没有管理员权限的情况下重新启动了 PhpStorm,一切正常。

It was a fresh install so no plugins other then the build in ones.

这是一个全新的安装,所以除了内置插件之外没有其他插件。

回答by Murtuza K

I might be late at answering this but I did not see any accepted answers here.

我可能会迟到回答这个问题,但我在这里没有看到任何被接受的答案。

I got a solution to this on other forum.

我在其他论坛上得到了解决方案。

They suggested to start IntelliJ IDEA as Administrator.

他们建议以管理员身份启动 IntelliJ IDEA

It worked for me.

它对我有用。

Hope it helps people who come here searching for answers.

希望对来这里寻找答案的人有所帮助。

回答by Jasper Lankhorst

Workaround for Windows users. My installation is located in:

Windows 用户的解决方法。我的安装位于:

"C:\Program Files\JetBrains\phpstorm"

“C:\Program Files\JetBrains\phpstorm”

The location gives it problems with the saving of files. (probably to do with user rights and UAC, not totally figured out what rights the folder needs, but for easy resolving I removed and reinstalled Phpstorm to

该位置给它保存文件带来了问题。(可能与用户权限和 UAC 有关,并没有完全弄清楚文件夹需要什么权限,但为了便于解决,我删除并重新安装了 Phpstorm

"C:\development\phpstorm"and it resolved the issue.

“C:\development\phpstorm”,它解决了这个问题。

回答by facundofarias

On OSX, I've uninstalled PhpStorm, and then have installed it again, always by using the JetBrains TOOLBOX.

在 OSX 上,我卸载了 PhpStorm,然后再次安装它,始终使用 JetBrains TOOLBOX。

Hope it helps!

希望能帮助到你!

回答by 6infinity8

I've encountered this issue multiple times; rebooting my (windows) computer has always worked for me (while restarting Intellij didn't do anything).

我多次遇到这个问题;重新启动我的(Windows)计算机一直对我有用(而重新启动 Intellij 没有做任何事情)。