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对应的你要安装的应用和版本本分后删除掉,这样在安装就不会有那么多坑了,不然挺难找的。

评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值