Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require WSL 2 #98

Closed
awdeorio opened this issue Jan 24, 2023 · 3 comments · Fixed by #103
Closed

Require WSL 2 #98

awdeorio opened this issue Jan 24, 2023 · 3 comments · Fixed by #103
Assignees
Labels
bug Something isn't working

Comments

@awdeorio
Copy link
Contributor

WSL 1 and Ubuntu 22.04 are incompatible. This is from @jamesjuett :

The intractable VS code debugging issue with "failed to set controlling terminal" is solved (sort of)! The problem manifests when students have WSL 1 rather than WSL 2. There's an incompatibility with newer versions of Ubuntu (I think - I'm assuming that's why we're starting to see it this term but haven't before). Some details here: microsoft/WSL#8356

The fix is to upgrade to WSL 2. There are two ways to do this.

We should add a sanity check and require this.

@awdeorio awdeorio added the bug Something isn't working label Jan 24, 2023
@jamesjuett
Copy link
Contributor

One thing that's slightly imprecise in what I originally said - it's not that Ubuntu 22.04 itself is incompatible, but that with it you'll end up with a newer version of gdb that is incompatible.

I'm not sure if we'll end up with many (or any?) students who can't upgrade to WSL 2. If they're on a very old laptop, can't update to a new enough windows version, or can't enable virtualization. I haven't met any students where that's the case.

The best approach is likely to:

  • Require WSL 2 in the tutorials (and add the check that wsl -l -v run from PowerShell shows version 2).
  • Add instructions for upgrading from WSL 1 to WSL 2. These should probably be in a separate document that we can link to, so that they don't confuse people working through the normal setup tutorial.
  • Handle any obscure cases where people are having difficulty getting WSL 2 in office hours.

@awdeorio
Copy link
Contributor Author

Agreed!

@jamesjuett
Copy link
Contributor

jamesjuett commented Jan 24, 2023

Just putting this here to record it somewhere. The deficit in WSL 1 is tracked here. Not clear when/if it will be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
3 participants