Fedora-Remix-for-WSL
Fedora-Remix-for-WSL copied to clipboard
Fedora Remix for WSL doesn't work as a CMake WSL Backend in Visual Studio
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:
- Create a CMake solution in Visual Studio (Documentation)
- Create and select a WSL configuration with fedoraremix.exe as executable
- Try to generate the cache if it doesn't start automatically (Project -> Generate Cache)
- 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
Hello,
We will check. Thank you for reporting.
Regards
I've just started having the same problem, but only after upgrading the distribution to WSL2. It worked fine under WSL1.
Good tip thanks
Here's the Visual Studio CMake log where it tries to communicate with the WSL subsystem.
@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 ?
or @ssssoooossss maybe you could try again with a patch release by MSFT recently as in #46 (comment) ?
@mi-hol still the same issue on a new Windows Installation (2004) and Fedora Remix For WSL from the Microsoft Store