-
Notifications
You must be signed in to change notification settings - Fork 310
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
Not able to Connect WSL from VSCODE || WSL (21) ERROR: CreateProcessParseCommon:711: Failed to translate #9810
Comments
|
as discussed @aeschli please find the requested information here. we are running .devcontainer file below the content of the file // For format details, see https://aka.ms/devcontainer.json. For config options, see the
} |
This is a problem in WSL: microsoft/WSL#9252 There are some solutions in there: Can you see if microsoft/WSL#9252 (comment) works? |
the solution provided in #9252 is not working for me. |
@chrmarti Is it dev containers that runs Maybe the current directory should not be a location on the windows file system. |
@chrmarti Can you please help us here |
@Mounesh1881 @chrmarti is on vacation this week, please be patient |
Just i am running this "image": "mcr.microsoft.com/devcontainers/base:jammy" only , no extra action written in code there. |
Are you using a workspace folder on a Windows drive or in a WSL filesystem? Also check the above mentioned user settings. |
Please reply to all of the following:
|
I also suggest you uncheck |
thank you so much this worked for me |
Thanks for confirming. Closing as answered. |
We observed that we were running into below errors while connecting from Visual Studio to WSL.
Start: Run: wsl -l -v
[414 ms] Initializing configuration support...
[414 ms] Internal initialization of dev container support package...
[484 ms] Start: Run: wsl -d docker-desktop-data -e /bin/sh -c echo ~
[986 ms] Could not connect to WSL.
[986 ms] Command failed: wsl -d docker-desktop-data -e /bin/sh -c echo ~
[986 ms]
[986 ms] <3>WSL (21) ERROR: CreateProcessParseCommon:711: Failed to translate C:\Users\ECADMIN\AppData\Local\Programs\Microsoft VS Code
<3>WSL (21) ERROR: CreateProcessParseCommon:757: getpwuid(0) failed 2
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Common Files\Oracle\Java\javapath
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\system32
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\Wbem
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\WindowsPowerShell\v1.0
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Windows\System32\OpenSSH
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\dotnet
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\ProgramData\chocolatey\bin
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Amazon\AWSCLIV2
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\ProgramData\Riverbed\ProcessInjection\rpictrlBin
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\ECADMIN\AppData\Local\Microsoft\WindowsApps
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\ProgramData\Riverbed\ProcessInjection\rpictrlBin
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\ECADMIN\AppData\Local\Microsoft\WindowsApps
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\ECADMIN\AppData\Local\GitHubDesktop\bin
<3>WSL (21) ERROR: UtilTranslatePathList:2866: Failed to translate C:\Users\ECADMIN\AppData\Local\Programs\Microsoft VS Code\bin
<3>WSL (21) ERROR: CreateProcessEntryCommon:334: getpwuid(0) failed 2
<3>WSL (21) ERROR: CreateProcessEntryCommon:505: execvpe /bin/sh failed 2
<3>WSL (21) ERROR: CreateProcessEntryCommon:508: Create process not expected to return
The text was updated successfully, but these errors were encountered: