You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see.
So I realized that I mapped the path in WSL to neglect /mnt/ which causes it not to find the path...
Is there a way to translate this? (this was done because I was trying to sync paths in WSL with windows for docker a long time ago) I guess I wouldn't need to deal with this anymore?
So I tried removing the /mnt/ and it still doesn't work. It seems like as mentioned in #77 it's a zsh issue.
Commenting out the initialization of zsh from bashrc will work. Not otherwise.
Martin Aeschlimann (@aeschli) I just tried the install steps you outlined for version 0.32.1 but I received this error
Installing extensions...
(node:19772) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Corrupt ZIP: end of central directory record signature not found
Failed Installing Extensions: c:\Users\username\.vscode-insiders\extensions\remote-wsl-0.32.1.vsix
I was able to get 0.32.1 to work by changing the shebang line to #!/usr/bin/env zsh and manually removing the -i in the wslServer.sh command. Today there was an update to 0.33.0 and it overwrote my changes and also keeps the -i in the command
Now I can't find that same line in the wslServer.sh file and I'm not sure where the command is being executed.
Yes! this is the right way... but the error was because it's configured as the other way.
Would be great if some sites like 👇 were updated... to avoid this kind of error, because they appear at the top of the search "how to install oh-my-zsh on WSL"
Activity
Tyriar commentedon May 2, 2019
Do you use tmux in WSL?
a2975667 commentedon May 2, 2019
No. I'm using bash+zsh

aeschli commentedon May 3, 2019
Can you try to run the server script manually in the wsl shell?
Should be something like (Replace 'YourUserName' with your Windows user name)
a2975667 commentedon May 3, 2019
I see.
So I realized that I mapped the path in WSL to neglect
/mnt/which causes it not to find the path...Is there a way to translate this? (this was done because I was trying to sync paths in WSL with windows for docker a long time ago) I guess I wouldn't need to deal with this anymore?
a2975667 commentedon May 3, 2019
So I tried removing the
/mnt/and it still doesn't work. It seems like as mentioned in #77 it's a zsh issue.Commenting out the initialization of zsh from bashrc will work. Not otherwise.
[-]VS Code server failed to start[/-][+]VS Code server failed to start using zsh[/+]aeschli commentedon May 6, 2019
Can you try this version?
remote-wsl-0.32.1.vsix.zip
remote-wsl-0.32.1.vsix(GitHub limitation on files to attach)Install from VSIX...This fixes:
-i, so unexpected commands (such as cd, zsh) in .bash_profile no longer interfere.-i)See https://medium.com/@vinhp/set-and-use-zsh-as-default-shell-in-wsl-on-windows-10-the-right-way-4f30ed9592dc on how to configure the shell in wsl
Please let me know if that solves the issues.
alexmspina commentedon May 7, 2019
Martin Aeschlimann (@aeschli) I just tried the install steps you outlined for version 0.32.1 but I received this error
alexmspina commentedon May 7, 2019
Martin Aeschlimann (@aeschli) not sure what happened (maybe a new update was pushed recently) but 0.32.1 installed on my machine. thanks!
mckernanin commentedon May 9, 2019
Entertainingly simple fix for me, I couldn't access WSL in a regular terminal either so I rebooted and all is well 😎
alexmspina commentedon May 9, 2019
I was able to get 0.32.1 to work by changing the shebang line to
#!/usr/bin/env zshand manually removing the -i in the wslServer.sh command. Today there was an update to 0.33.0 and it overwrote my changes and also keeps the -i in the commandNow I can't find that same line in the wslServer.sh file and I'm not sure where the command is being executed.
tonyuki commentedon May 9, 2019
Alex Spina (@alexmspina) I used search to find and remove the
-ifromwslDaemon.js.I only needed to remove the first highlighted
-iand it seems to work without changing the shebang tozsh.a2975667 commentedon May 10, 2019
Martin Aeschlimann (@aeschli) Manually disabling auto update and install 0.32.1 does fix the issue (running on the latest code insider as well)
alexmspina commentedon May 10, 2019
@timolinn thanks for finding that. It's running with my zsh environment again.
aeschli commentedon May 10, 2019
Yes, the fix that's in 0.32.1 has still to be pushed and published in a real version. Working in it!
leandrowilliam commentedon Jun 5, 2019
You need to use this on your
.bashrcfile:Instead of:
exec zshIf you use the second one the vscode remote server couldn't start...
Tyriar commentedon Jun 5, 2019
If you want to change your default shell you should use
chsh, not run the other shell in your.bashrc.leandrowilliam commentedon Jun 5, 2019
Yes! this is the right way... but the error was because it's configured as the other way.
Would be great if some sites like 👇 were updated... to avoid this kind of error, because they appear at the top of the search "how to install oh-my-zsh on WSL"
https://www.howtogeek.com/258518/how-to-use-zsh-or-another-shell-in-windows-10/
https://evdokimovm.github.io/windows/zsh/shell/syntax/highlighting/ohmyzsh/hyper/terminal/2017/02/24/how-to-install-zsh-and-oh-my-zsh-on-windows-10.html
proteus-aholt commentedon Jun 7, 2019
I was having this exact same issue, only i use
fishshell rather thanzsh. The above snippet worked perfectly for me just by replacingzshforfish.so, changing:
to
was the solution for me.
Tyriar commentedon Jun 7, 2019
Alan Holt (@proteus-aholt) you should change you default shell as in #27 (comment):
Fix remote-debugging issue on WSL