Cmder 启动报错
Cmder 启动报错
场景
每次打开 Cmder
时都会出现这么一个错误,虽然貌似对之后的使用没什么影响,但强迫症表示受不了呀
1 | WARNING! The MacType's hooks are detected at 0x00007FF8E9D10000 D:\Program\MacType\MacType64.dll Please add ConEmuC.exe and ConEmuC64.exe to the exclusion list to avoid crashes! https://conemu.github.io/en/Installation.html#mactype |
其实在初次使用 Cmder
时可能会遇到这种情况,因为你的 PC 上肯定是同时安装了 MacType
,在遇到这种情况时看一下官方的链接就好了(虽然官方也没给出如何将程序添加到排除列表中 23333)
官方的解释是:
1 | If you are using MacType you can get crashes when starting any application from a shell started in ConEmu tab. |
大意就是说 ConEmuC.exe
和 ConEmuC64.exe
是命令行程序,不在窗口上绘制什么文本,所以在其中打开时可能会发生异常。
解决方案
1. 使用图形编辑器
详情见下面的 Gif
2. 编辑配置文件
修改 MacType
的配置文件 MacType.ini
(位于 ${MacType}/MacType.ini
),在 UnloadDll
(排除的 DLL
)下添加 ConEmuC64.exe
和 ConEmuC.exe
即可。