Since I have updated windows, my conemu terminal is giving me the following error each time a session is created:
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 file ConEmuC: Root process was alive less than 10 sec, ExitCode=0. Press Enter or Esc to close console...
Has anyone an idea to bring conemu to a wsl terminal? Thank you
To run wslbridge in ConEmu, just do simple steps: Install 'Windows Subsystem for Linux (WSL)' and some Linux distro (e.g. Ubuntu) from Microsoft Store. Download latest ConEmu and install it. If you run Installer ensure that feature 'WSL support' and 'cygwin/msys connector' are enabled.
ConEmu-Maximus5 is a Windows console emulator with tabs, which represents multiple consoles as one customizable GUI window with various features.
The “ConEmu” and “Cmder” is console software for developer or coder to execute commands. The “ConEmu” is free software for console users to execute WinAPI as well as Unix PTY commands. The “Cmder” is a software package for console users to execute PowerShell, CMD, Git commands easily.
A similar error is caused by upgrading WSL from v1 to v2.
If you read through the discussion on this github issue for ConEmu you'll find a variety of instructions that can be distilled into:
Change the command for the task {Bash::bash} to the following:
wsl.exe
A GitHub user posted this workaround which worked for me:
I've fixed the issue by doing this:
- Download latest
cygwin1-20200531.dll.xz
from https://cygwin.com/snapshots/ and unpack the file ascygwin1.dll
intoConEmu\wsl\
(replacing the original file there)- Download @Biswa96's
wslbridge2
from https://github.com/Biswa96/wslbridge2/releases and unpack to the same directory- 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With