zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Mac版idea打不开,报错(系统12.2以上)

2023-04-18 14:28:59 时间

-------------------------------------

Translated Report (Full Report Below)

-------------------------------------

Process: idea [1309]

Path: /Applications/IntelliJ IDEA CE.app/Contents/MacOS/idea

Identifier: com.jetbrains.intellij.ce

Version: 2021.3 (IC-213.5744.223)

Code Type: ARM-64 (Native)

Parent Process: launchd [1]

User ID: 501

Date/Time: 2022-03-04 03:30:51.4521 +0330

OS Version: macOS 12.2.1 (21D62)

Report Version: 12

Anonymous UUID: 4AF85493-B75E-9524-875A-8726A4E64735

Sleep/Wake UUID: 1662191C-F228-4E09-A887-2FE95A86854F

Time Awake Since Boot: 660 seconds

Time Since Wake: 20 seconds

System Integrity Protection: enabled

Crashed Thread: 3 Exception Type: EXC_CRASH (SIGABRT)

Exception Codes: 0x0000000000000000, 0x0000000000000000

Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'

terminating with uncaught exception of type NSException

abort() called

尝试了很多方法,如下

(1)删除~/Library/Preferences/IntelliJIdea* (*表示版本发行日期)

(2)删除~/Library/Caches/JetBrains/IntelliJIdea*(*表示版本发行日期)

(3)删除~/Library/ApplicationSupport/JetBrains/IntelliJIdea*(*表示版本发行日期)

(4)删除~/Library/Application Support/JetBrains/IntelliJIdea*(*表示版本发行日期)

(5)删除~/Library/Logs/JetBrains/IntelliJIdea*(*表示版本发行日期)

操作完后还是不行,感觉还有配置文件没有删除,上idea的官方issue下找到了答案:

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 🙂

issue地址:https://youtrack.jetbrains.com/issue/JBR-4296

也就是说删除这个文件里的带有“launchctl setenv”的行,然后保存文件重启mac就行了!