简体   繁体   English

多个持久性错误 IntelliJ

[英]Multiple persistent errors IntelliJ

I run IntelliJ IDEA version 2019.2.3 on a Windows 10 .我在Windows 10上运行IntelliJ IDEA版本 2019.2.3。 We use the same version at school.我们在学校使用相同的版本。 It works there, but not on my home laptop.它可以在那里工作,但不能在我的家用笔记本电脑上使用。 I've set the environment and CMD shows the correct path of Java.我已经设置了环境,CMD 显示了 Java 的正确路径。 The JDK 1.8 is also properly installed. JDK 1.8 也已正确安装。 Please , what could the problem be ?请问,可能是什么问题?

PersistentHashMap、Persistent EnumeratorBase、AbstractStateStorage

检测JAVA没有问题

I want to thank everyone for taking the time to give a helping hand !我要感谢大家抽出时间伸出援助之手! The answers I received via Support at Jet Brains crashed the app or made it unusable.我通过 Jet Brains 的支持部门收到的答案导致应用程序崩溃或无法使用。 The FAQ links they provide is a collection of vague workarounds.他们提供的常见问题链接是一系列模糊的解决方法。 And, especially for someone that is a total beginner and has no guidance in editing non-destructively , it won't work.而且,特别是对于完全初学者并且没有非破坏性编辑指导的人来说,它是行不通的。

I would also like to post the only solution that worked on the Cyrillic issue with IntelliJ Idea, since I know other people have had it as well and I hope it will be useful for others in the future.我还想用 IntelliJ Idea 发布解决西里尔文问题的唯一解决方案,因为我知道其他人也有它,我希望它将来对其他人有用。 This came from my teacher at Link Academy Bucharest, Mr. Bogdan Posa.这来自我在布加勒斯特林克学院的老师 Bogdan Posa 先生。

The actual thing that needs to be modified is the existent file called idea.properties , found in the BIN folder within the Idea installation folder.实际需要修改的是名为idea.properties的现有文件,该文件位于 Idea 安装文件夹内的 BIN 文件夹中。 This only worked after I had re-installed Idea in a different place than "C:/Users/Cyrillic username/" which Idea was picking by default to install itself.这仅在我将 Idea 重新安装在与“C:/Users/Cyrillic username/”不同的位置后才起作用,Idea 默认选择安装它自己。 So it will be something like C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2019.2.3/bin.所以它将类似于 C:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2019.2.3/bin。 The idea.properties file can also be opened with Notepad to avoid crashing Idea (happened many times).也可以用记事本打开idea.properties文件,避免Idea崩溃(多次发生)。 Within the text editor, find and edit the value of idea.config.path, removing the comment and writing the new location/path of the Idea installation folder.在文本编辑器中,找到并编辑 idea.config.path 的值,删除注释并写入 Idea 安装文件夹的新位置/路径。 Windows might not allow you to save the edited idea.properties file in that original location and it might ask if you want to save it in the Documents folder instead. Windows 可能不允许您将编辑过的 idea.properties 文件保存在该原始位置,它可能会询问您是否要将其保存在 Documents 文件夹中。 Just say yes, save it there and then copy/paste it back to the Bin folder, it will accept it.只需说是,将其保存在那里,然后将其复制/粘贴回 Bin 文件夹,它就会接受它。 After this, you will have to open Idea with "right-click open as Administrator".在此之后,您必须使用“右键单击以管理员身份打开”来打开 Idea。 Apparently, as long as there still is a path containing Cyrillics in a username, Idea will not run your project so if you can't avoid it, just play along and Run as Admin when opening Idea.显然,只要用户名中仍然存在包含西里尔字母的路径,Idea 就不会运行您的项目,因此如果您无法避免它,只需在打开 Idea 时一起玩并以管理员身份运行。 That's how it NOW WORKS for me, after several re-installing and changing properties, environments and every damn thing.这就是它现在对我有用的方式,经过几次重新安装和更改属性,环境和所有该死的事情。 I was close to hugging ECLIPSE.... :) Hope this helps, Cyrillic users !我几乎要拥抱 ECLIPSE .... :) 希望这会有所帮助,西里尔文用户!

No, not at all.一点都不。 This is a kind of wird exception.这是一种普遍的例外。 You can change the config location of intelliJ.,你可以改变intelliJ的配置位置,

This can be done in:这可以在:

IntelliJ Menu: Help | IntelliJ 菜单:帮助 | Edit Custom Properties… Then it will create a file under: IDE_HOME\\bin\\idea.properties编辑自定义属性…然后它会在下面创建一个文件:IDE_HOME\\bin\\idea.properties

Example of the configs:配置示例:

idea.config.path=c:/work/idea/config
idea.system.path=c:/work/idea/system
idea.plugins.path=c:/work/idea/plugins

More info: https://intellij-support.jetbrains.com/hc/en-us/articles/207240985-Changing-IDE-default-directories-used-for-config-plugins-and-caches-storage更多信息: https : //intellij-support.jetbrains.com/hc/en-us/articles/207240985-Changing-IDE-default-directories-used-for-config-plugins-and-caches-storage

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM