cypress-documentation icon indicating copy to clipboard operation
cypress-documentation copied to clipboard

WSL/WSL2 installation documented although unsupported

Open MikeMcC399 opened this issue 2 years ago • 1 comments

Subject

References > Advanced Installation > Windows Subsystem for Linux

Description

The section Windows Subsystem for Linux describes how to install WSL to display the Cypress UI.

Users who report problems to the Cypress issues list under WSL or WSL2 are however being told that this configuration is not supported (for instance https://github.com/cypress-io/cypress/issues/27858#issuecomment-1729598898).

Suggestion

  • If this configuration is not supported, then the details under References > Advanced Installation > Windows Subsystem for Linux should be completely removed and replaced with a corresponding statement. This is an action which needs to come from the core team, not from the community.

  • If at some later time it is decided that Cypress can support WSL, then consideration should be given to issue https://github.com/cypress-io/cypress-documentation/issues/5353 which points out that the details to install and use a VcXsrv X11 server are outdated and unnecessary, since WSL2 now includes its own WSLg X11 server by default.

MikeMcC399 avatar Sep 22 '23 10:09 MikeMcC399

Depending on the reasons for not supporting WSL perhaps something along the lines of the following suggestions could be published?

Option 1 - WSL does not work correctly

We advise against the use of Cypress with Microsoft Windows Subsystem for Linux due to known issues in this environment and for this reason it is not supported.

Then remove all other WSL technical content.

Option 2 - WSL works but is not tested

Users have reported success with Cypress running under the Windows Subsystem for Linux (WSL) virtual environment however we do not test releases of Cypress for compatibility with WSL and for this reason we do not provide support for it. Other Cypress users in the Discord Technical Community may be able to help if you encounter any issues with Cypress running under WSL. If you believe you have found a bug in Cypress operating in a WSL environment and you wish to report it, please ensure that the issue is reproducible without using WSL on one of the Cypress supported operating systems.

For your convenience here are links to Microsoft documentation:

The combination of WSL2 with WSLg as X11 server is currently the latest and recommended WSL environment for Cypress based on user feedback.

Replacing all other WSL technical content by the above links to Microsoft documentation.

MikeMcC399 avatar Sep 24 '23 09:09 MikeMcC399

  • PR #5756 proposes a simple info section which says:

Cypress.io does not specifically support the use of Cypress under Windows Subsystem for Linux (WSL). If you want to report an issue, please ensure that you can reproduce it without using WSL on one of the Cypress supported operating systems.

This needs to be confirmed by the Cypress.io team.

MikeMcC399 avatar Mar 19 '24 09:03 MikeMcC399