Conemu doesn’t work with wsl since windows update
问题描述:
-
wslbridge error: failed to start backend process
note: backend error output: -v: -c: line 0: unexpected EOF while looking for matching `’’
-v: -c: line 1: syntax error: unexpected end of fileConEmuC: Root process was alive less than 10 sec, ExitCode=0.
Press Enter or Esc to close console…
解决方案:
A GitHub user posted this workaround which worked for me:
I've fixed the issue by doing this:
1. 先下载这个,解压,将其复制替换原文件,我的安装目录文件位置: cmder\vendor\conemu-maximus5\ConEmu\wsl
- Download latest cygwin1-20200531.dll.xz from https://cygwin.com/snapshots/ and unpack the file as cygwin1.dll into ConEmu\wsl\ (replacing the original file there)
2. 再下载这个,解压,将其复制替换原文件,我的安装目录文件位置: cmder\vendor\conemu-maximus5\ConEmu\wsl
- Download @Biswa96’s wslbridge2 from https://github.com/Biswa96/wslbridge2/releases and unpack to the same directory
3. 打开设置,启动-任务,修改启动命令
-
Replacing {WSL::bash} task’s Command with:
set “PATH=%ConEmuBaseDirShort%\wsl;%PATH%” & %ConEmuBaseDirShort%\conemu-cyg-64.exe %ConEmuBaseDirShort%\wsl\wslbridge2.exe -cur_console:pm:/mnt -eConEmuBuild -eConEmuPID -eConEmuServerPID -l
问题解决:
- I can now access my Ubuntu under W10 just like before the W10 upgrade. Backscroll and arrows in VIM work as expected.
The key part of step 3 is to replace conemu-cyg-64.exe --wsl with conemu-cyg-64.exe %ConEmuBaseDirShort%\wsl\wslbridge2.exe.
Longer term, it looks like the author of ConEmu is working on switching to the new Windows PTY API, which will eliminate the need for the wslbridge hack (and many others) entirely.