Issue
When using VSC Remote SSH, I am constantly getting the error "Cannot reconnect. Please reload the window."
. Upon clicking "Reload Window", the window reloads and I receive the same error.
Sometimes I am also getting the following notification: "The terminal process failed to launch: A native exception occurred during launch (forkpty(3) failed)."
More errors showing here: screenshot
I tried to find the solution but nothing worked for me, any suggestions? I tried:
- Reinstalling extension
- Deleting the VS Code + cache directory on the server
- Restarting server
Update 17-01: Today it worked fine for around 2 hours. It randomly stopped working while I was typing a few lines of code without doing something else like saving, adding or delete files. The message is still te same and did not found any solution yet.
Solution
The latest update 1.82 borked this too. Uninstalling WSL extension fixed it and restart vscode. https://github.com/microsoft/vscode/issues/192646
Answered By - Gopi Palamalai Answer Checked By - Senaida (WPSolving Volunteer)