mac IDEA重新安装报错,闪退,无法PJ

MacOs IDEA重新安装报错,闪退,无法PJ

问题排查

首先到应用右键打开包信息,找到MacOs文件夹运行idea,这是可以看到后台运行日志,可以很明确的找到错误。

当遇到后台日志包的找不到某个路径(比如某个插件懂得都懂),可以去修改bin目录下idea.vmoptions配置文件,如果发现idea.vmoptions中并没有配置这时候就要去另一个地方找。

/Users/hanhao/Library/Application\ Support/JetBrains
这里边会有相对应应用的运行时配置文件,这个比较隐蔽可以在上边MacOs文件夹运行idea时从日志找到

Last login: Mon Sep  5 15:31:53 on ttys001
/Applications/IntelliJ\ IDEA\ 2.app/Contents/MacOS/idea ; exit;

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
(base) bogon:~ hanhao$ /Applications/IntelliJ\ IDEA\ 2.app/Contents/MacOS/idea ; exit;
2022-09-05 15:32:15.191 idea[40521:178336] allVms required 1.8*,1.8+
2022-09-05 15:32:15.193 idea[40521:178340] Current Directory: /Users/hanhao
2022-09-05 15:32:15.193 idea[40521:178340] Value of IDEA_VM_OPTIONS is (null)
2022-09-05 15:32:15.193 idea[40521:178340] Processing VMOptions file at /Users/hanhao/Library/Application Support/JetBrains/IntelliJIdea2021.2/idea.vmoptions
2022-09-05 15:32:15.193 idea[40521:178340] Done
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Error opening zip file or JAR manifest missing : /Applications/IntelliJ IDEA.app/Contents/bin/jetbrains-agent.jar
Error occurred during initialization of VM
agent library failed to init: instrument
logout

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

在这里插入图片描述
上述问题解决后再次运行idea问题解决运行正常,如果想干点其他比如(PJ)的发现不行也要注意/Users/hanhao/Library/Application\ Support/JetBrains这里边对应的idea.vmoptions也可能需要修改
个人建议安装前把/Users/hanhao/Library/Application\ Support/JetBrains对应的你要安装的应用和版本本分后删除掉,这样在安装就不会有那么多坑了,不然挺难找的。

你可能感兴趣的:(intellij-idea,macos)