eecs280staff / tutorials

Tools and tutorials
https://eecs280staff.github.io/tutorials/
Other
5 stars 4 forks source link

Require WSL 2 #98

Closed awdeorio closed 1 year ago

awdeorio commented 1 year ago

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: https://github.com/microsoft/WSL/issues/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.

jamesjuett commented 1 year ago

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:

awdeorio commented 1 year ago

Agreed!

jamesjuett commented 1 year ago

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