diff --git a/docs/setup_vscode_macos.md b/docs/setup_vscode_macos.md index a287db7..ce95853 100644 --- a/docs/setup_vscode_macos.md +++ b/docs/setup_vscode_macos.md @@ -607,6 +607,18 @@ Now, running the debugger will not display the assembly file. However, it will n +### Read-only volume +VSCode may think the system is read only and **fail to update** if it is installed in the Downloads folder. For example: + +> Cannot update while running on a read-only volume. The application is on a read-only volume. Please move the application and try again. If you're on macOS Sierra or later, you'll need to move the application out of the Downloads directory. This might mean the application was put on quarantine by macOS. See this link for more information. + +Check if VS Code is installed in the Downloads folder. Remove it and try the [Install section](#install) again. +```console +$ ls ~/Downloads/ | grep "Visual Studio Code" +Visual Studio Code.app +$ rm -rf ~/Downloads/Visual\ Studio\ Code*.app ~/Downloads/VSCode-*.zip +``` + ## Acknowledgments Original document written by Andrew DeOrio awdeorio@umich.edu. diff --git a/docs/setup_wsl.md b/docs/setup_wsl.md index 3f873ea..8955129 100644 --- a/docs/setup_wsl.md +++ b/docs/setup_wsl.md @@ -221,6 +221,9 @@ If these do not work, right click on the terminal window header. If you see opti This section is for common problems and solutions. +### `wsl --install` stuck +Cancel by closing PowerShell, [enable virtualization](#enable-virtualization), and try `wsl --install` again. + ### Enable Virtualization WSL2 requires virtualization support. Follow the steps below to ensure it is enabled. @@ -250,6 +253,27 @@ Microsoft maintains an extensive [troubleshooting page](https://learn.microsoft. If you forgot you WSL password, follow the steps [here](https://learn.microsoft.com/en-us/windows/wsl/setup/environment#set-up-your-linux-username-and-password) to reset it. Scroll down to the part beginnning with "If you forgot the password for yoru Linux distribution:". +### Delete and reinstall +If you've tried everything and want to delete your WSL install entirely. + +
+**WARNING:** This will delete all files inside WSL. +
+ +Start PowerShell and run it as administrator ([instructions](#install-wsl)). + +See what's installed. +```console +C:\WINDOWS\system32> wsl -l -v + NAME STATE VERSION +* Ubuntu-24.04 Running 2 +``` + +Delete each installation. Your version might be different and you might need to delete several. +```console +$ wsl --unregister Ubuntu-24.04 +``` + ## Acknowledgments Original document written by Andrew DeOrio awdeorio@umich.edu.