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
Code.exe: Invalid argument
after upgrading to Windows 11
#7050
Comments
This seems to have fixed itself 🤷♂️ I have no idea what changed so can't provide further context but going to close this now. |
This issue has re-appeared again, seemingly after another restart. Happy to help debug this in any way I can. |
In my case, this was related to this WSL issue, and the suggestion to |
This is also consistently happening to me as well. On Windows 11, new computer, not and upgrade. It isn't just wsl --shutdown works for a little bit but it always breaks again. |
suffering from this since windows 11 update. no idea what to do |
my solution was to uninstall/reinstall vscode. hopefully it lasts |
I have the same issue as reported here. For me I am using VS Code:
WSL distro:
|
Imho, this is not due to a Windows 11 upgrade but a WSL update: it happens to me frequently on Win 10, too. |
im not using windows 11 but had to reinstall it again Ubuntu 20.04, and when type
I've tried the |
this issue still persist till today, need a follow up, anyone? |
Strange thing is, it works when i navigate to the program folder and then execute the program. But when i execute the program from another folder with absolute program path, it doesn't. By the way it is not only with vscode but every windows program which is mounted in WSL |
I'm also experiencing the same problem, |
Using W11 updated as of last week. For me the issue was WSL had to have administrator privileges. Without it, the same error occurred, with it the command |
This worked for me as of this writing:
|
I also had this problem, I had success with running |
Same problem |
i forgot to mention that the palliative measure that i found was to remove vscode-server and shutdown wsl:
and then boot again with |
Just running the wsl terminal (Ubuntu) as administrator fixed the issue for me. Specifications:WSL version: 2.1.5.0 |
Steps to Reproduce:
code .
to launch VSCodeWhat you expected to see:
VSCode opens in remote mode
What you saw instead:
Notes
Remote - WSL
extension fixes the issue temporarily. But when I restart my computer the problem returns. All the evidence I've found online suggests this fix and I was hopeful but for some reason it doesn't persist after a reboot.I appreciate there's not a lot of info here. Please let me know what I can do to help troubleshoot this further.
The text was updated successfully, but these errors were encountered: