Fedora-Remix-for-WSL icon indicating copy to clipboard operation
Fedora-Remix-for-WSL copied to clipboard

Fedora Remix for WSL doesn't work as a CMake WSL Backend in Visual Studio

Open COLAMAroro opened this issue 4 years ago • 7 comments

Visual Studio offers cross-platform compilation using CMake, and offers to use a WSL Distribution as a running and debugging environment. While Ubuntu and Debian (from the Windows Store) works as distributions for Visual Studio, Fedora Remix for WSL does not.

Steps to reproduce the behavior:

  1. Create a CMake solution in Visual Studio (Documentation)
  2. Create and select a WSL configuration with fedoraremix.exe as executable
  3. Try to generate the cache if it doesn't start automatically (Project -> Generate Cache)
  4. The generation fails (Could not open windows subsystem shell)

Expected behavior Visual Studio should be able to use Fedora Remix for WSL as linux backend

I tried to check if this issue is caused by issue #20, but it doesn't seems like it (as running from an Ubuntu doesn't start the SSH service) I also have an issue open on VS Developer Community

Fedora Remix for WSL Version

Version 31.5.1.0

Windows Build OS Name: Microsoft Windows 10 Pro OS Version: 10.0.19041 N/A Build 19041 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free BIOS Version: LENOVO N1WET59W (1.38 ), 22-Apr-20

COLAMAroro avatar May 25 '20 13:05 COLAMAroro

Hello,

We will check. Thank you for reporting.

Regards

crramirez avatar May 25 '20 14:05 crramirez

I've just started having the same problem, but only after upgrading the distribution to WSL2. It worked fine under WSL1.

ssssoooossss avatar Jun 05 '20 09:06 ssssoooossss

Good tip thanks

crramirez avatar Jun 05 '20 09:06 crramirez

log_2020-06-05T14-21-28.txt

Here's the Visual Studio CMake log where it tries to communicate with the WSL subsystem.

ssssoooossss avatar Jun 05 '20 13:06 ssssoooossss

@COLAMAroro maybe you could try again with a patch release by MSFT recently as in https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/issues/46#issuecomment-683895832 ?

mi-hol avatar Aug 31 '20 16:08 mi-hol

or @ssssoooossss maybe you could try again with a patch release by MSFT recently as in #46 (comment) ?

mi-hol avatar Aug 31 '20 17:08 mi-hol

@mi-hol still the same issue on a new Windows Installation (2004) and Fedora Remix For WSL from the Microsoft Store

COLAMAroro avatar Sep 02 '20 11:09 COLAMAroro