rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

Rustlings Watch does not refresh in WSL 2 with Ubuntu 20.04

Open sthavens opened this issue 6 years ago • 2 comments

Fresh install of Ubuntu 20.04 with rust, its dependencies, and rustlings being the only installations. Had same problem with 18.04. Began with upgrading to WSL2 but I cannot go back to version 1 due to compatibility issues with planned installations.

This happens in the Windows Terminal, in VS Code's Terminal, as well as in the Ubuntu 20.04 app.

Rustlings watch runs fine when entered but does not re-run the tests as it is supposed to on a saved change.

If you cancel out of watch and re-run, it runs all of the tests again but never starts "watching".

sthavens avatar May 30 '20 04:05 sthavens

@sthavens I verified this, but it is almost certainly a WSL2 bug: https://github.com/microsoft/WSL/issues/4739.

As a workaround, rustlings watch will work correctly if you move rustlings into your WSL2 filesystem (e.g. ~). In Explorer, you can access it here: \\wsl$\Ubuntu\home.

danwilhelm avatar May 30 '20 21:05 danwilhelm

@danwilhelm Thank you! The workaround was successful. It also improved the speed at which the tests ran in the first place.

sthavens avatar May 31 '20 01:05 sthavens