问题
在linux中打开PyCharm一直闪退无法正常使用,发现闪退是因为PyCharm更新后需要打开What’s New in PyCharm标签页,如下图所示
但还不清楚为什么linux中无法打开,因此解决该问题需要让PyCharm不打开该标签页。
排查
查看PyCharm日志(日志路径:~/.cache/JetBrains/PyCharm2024.2/log/idea.log)
发现whats.new.last.shown.version is not defined
或者比较版本不一致Comparing versions currentVersion and historyVersion: true.
如下所示
#c.i.p.w.WhatsNewShowOnStartCheckService - Got What's New content: com.intellij.platform.whatsNew.WhatsNewVisionContent@597a8612
#c.i.p.w.WhatsNewContentVersionChecker - whats.new.last.shown.version is not defined. Will show What's New.
#c.i.p.w.WhatsNewShowOnStartCheckService - Should show What's New: true
#c.i.i.a.WhatsNewAction - Open What's New page requested.
解决
修改PyCharm配置(路径:~/.config/JetBrains/PyCharm2024.2/options/other.xml)
添加whats.new.last.shown.version信息,版本为currentVersion,如下图最后所示,记得给前一行添加,
,不然无法生效
若不知道currentVersion,可先填写任意版本号,再此打开PyCharm等闪退后查看日志获取。