Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Conemu doesn't work with wsl since windows update

Tags:

conemu

cmder

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

like image 544
Martin J Avatar asked Nov 11 '19 00:11

Martin J


People also ask

How do you use ConEmu with WSL?

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.

What is ConEmu Maximus5?

ConEmu-Maximus5 is a Windows console emulator with tabs, which represents multiple consoles as one customizable GUI window with various features.

What is Cmder ConEmu?

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.


2 Answers

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 
like image 85
Scotty.NET Avatar answered Oct 01 '22 03:10

Scotty.NET


A GitHub user posted this workaround which worked for me:

I've fixed the issue by doing this:

  1. 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. 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.

like image 35
josh3736 Avatar answered Oct 01 '22 03:10

josh3736