mac误删idea破解文件导致idea打不开
注!!! 如果你也和我一样显示如下内容:请继续阅读,不是则不必浪费时间
- ***终止应用程序由于未捕获的异常’NSInternalInconsistencyException’,原因:‘NSWindow拖动区域应该只在主线程上失效!’
解决办法
- 打开/Users/{USER_NAME}/Library/LaunchAgents/jetbrains.vmoptions.plist
- vim /Users/{USER_NAME}/Library/LaunchAgents/jetbrains.vmoptions.plist
- 删除launch setenv *_OPTIONS
- 打开后按i进入编辑模式
- 注:{USER_NAME}为你的Mac的用户名,记得删除{},*为通配符,
- 修改前的文件内容(红框中即为需要删除的内容)
- 修改后的文件内容
- 修改前的文件内容(红框中即为需要删除的内容)
- 保存并关闭文件
- 按Esc键,然后输入:wq
- 重启Mac
- 重新打开idea
- 问题成功解决
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 alllaunchctl setenv "*_OPTIONS"
.
save and close it.
reboot your mac.
now you can use jetbrain 😃
- 翻译:
嘿,我可以使用以下说明解决此问题:
打开此文件/Users/{USER_NAME}/Library/LaunchAgents/jet😍. vmoptions.plist
然后删除所有’Launchctl setenv"*_OPTIONS"。
保存并关闭它。
重启你的mac。
现在你可以使用jetbrain 😃