现象
在 19.3 -> 20.3.3 版本升级过程中, 打开新版本 webstorm 后, 立即闪退(未出现软件 GUI)
原因排查
进入
/Applications/WebStorm.app/Contents/MacOS
目录,其中有一个可执行文件webstorm
执行此文件自检,输出:
1
2
3
4
5
6
7
8
9
10
112021-04-06 10:13:16.115 webstorm[7279:53124] allVms required 1.8*,1.8+
2021-04-06 10:13:16.117 webstorm[7279:53129] Current Directory: /Users/zhu
2021-04-06 10:13:16.117 webstorm[7279:53129] Value of WEBSTORM_VM_OPTIONS is (null)
2021-04-06 10:13:16.117 webstorm[7279:53129] Processing VMOptions file at /Users/zhu/Library/Application Support/JetBrains/WebStorm2020.3/webstorm.vmoptions
2021-04-06 10:13:16.117 webstorm[7279:53129] 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/WebStorm.app/Contents/tnt/jetbrains-agent.jar
Error occurred during initialization of VM
agent library failed to init: instrument
Saving session...completed.
Deleting expired sessions... 23 completed.
看其中 Error 信息是缺少了 一个 jar 包, 回忆一下~,这玩意是 TNT 残留,囧。
为何卸载程序后, vm 配置还在?
哦原来 vm 配置是在 Library/Application Support 中
解决办法
1 | vim /Users/zhu/Library/Application Support/JetBrains/WebStorm2020.3/webstorm.vmoptions |
移除tnt 配置,重新启动即可