WhitewaterFoundry / Fedora-Remix-for-WSL

Fedora Remix for Windows Subsystem for Linux.
Other
698 stars 51 forks source link

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

Open COLAMAroro opened 4 years ago

COLAMAroro commented 4 years ago

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

crramirez commented 4 years ago

Hello,

We will check. Thank you for reporting.

Regards

ssssoooossss commented 4 years ago

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

crramirez commented 4 years ago

Good tip thanks

ssssoooossss commented 4 years ago

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

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

mi-hol commented 3 years ago

@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 commented 3 years ago

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

COLAMAroro commented 3 years ago

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