错误如下
Process: pycharm [2079]
Path: /Applications/PyCharm.app/Contents/MacOS/pycharm
Identifier: com.jetbrains.pycharm
Version: 2022.2.3 (PY-222.4345.23)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: pycharm [2079]
User ID: 501
Date/Time: 2022-12-30 17:26:24.099 +0800
OS Version: macOS 11.7 (20G817)
Report Version: 12
Bridge OS Version: 3.0 (14Y908)
Anonymous UUID: 290F3BFB-8BD8-6711-8DE5-87AD7599C1DC
解决方法为:进入~/Library目录
1、删除~/Library/PePreferences/IntelliJIdea* (*表示版本发行日期)
2、删除~/Library/Caches/JetBrains/IntelliJIdea*(*表示版本发行日期)
3、删除~/Library/ApplicationSupport/JetBrains/IntelliJIdea*(*表示版本发行日期)
4、删除~/Library/Application Support/JetBrains/IntelliJIdea*(*表示版本发行日期)
5、删除~/Library/Logs/JetBrains/IntelliJIdea*(*表示版本发行日期)
之后如果还是不信,就进入~/Library/LaunchAgents,删除这个文件里的带有“launchctl setenv”的行,然后保存文件重启mac就行了!
参考官方文档issue地址:https://youtrack.jetbrains.com/issue/JBR-4296
hey I could fix this issue with following instructions:
open this file /Users/{USER_NAME}/Library/LaunchAgents/jetbrains.vmoptions.plist
and then remove all `launchctl setenv "*_OPTIONS"`.
save and close it.
reboot your mac.
now you can use jetbrain 🙂