Skip to content
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

Integrate with Windows Subsystem for Linux (WSL) #43

Closed
fermuso opened this issue Apr 10, 2018 · 3 comments
Closed

Integrate with Windows Subsystem for Linux (WSL) #43

fermuso opened this issue Apr 10, 2018 · 3 comments

Comments

@fermuso
Copy link

fermuso commented Apr 10, 2018

Hi.
I try to integrate vscode-rsync with bash on Windows Subsystem for Linux (Ubuntu distro) without Cygwin:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS"

My vscode-rsync configuration:
"sync-rsync.executableShell": "C:\WINDOWS\System32\bash.exe",
"sync-rsync.executable": "/usr/bin/rsync",
"sync-rsync.shell": "/usr/bin/ssh",
"sync-rsync.local": "/mnt/c/Users/<MY_USER>/Documents/<MY_PROJECT>",

The error output:

/usr/bin/rsync -rlptzv --progress --rsh=/usr/bin/ssh --delete --exclude=.git --exclude=.gitignore --exclude=.vscode /mnt/c/Users/<MY_USER>/Documents/<MY_PROJECT> remote_user@remote_server:/path/to/remote/
ERROR > spawn /usr/bin/rsync ENOENT

I also try this conf:
"sync-rsync.executable": "bash.exe -c /usr/bin/rsync",

Fail output:

bash.exe -c /usr/bin/rsync -rlptzv --progress --rsh=/usr/bin/ssh --delete --exclude=.git --exclude=.gitignore --exclude=.vscode /mnt/c/Users/<MY_USER>/Documents/<MY_PROJECT> remote_user@remote_server:/path/to/remote/
ERROR > spawn bash.exe -c /usr/bin/rsync ENOENT

Is posible this integration?, how?

@idanpa
Copy link
Contributor

idanpa commented Apr 11, 2018

Managed to get this working with #44 and "sync-rsync.executableShell": "bash".

@nbourre
Copy link

nbourre commented Sep 7, 2018

So what was the solution? I've followed #44, but did not understood.

@idanpa
Copy link
Contributor

idanpa commented Sep 24, 2018

@nbourre, I use something like this:

"sync-rsync.onSave": true,
"sync-rsync.executable": "rsync",
"sync-rsync.executableShell": "bash",
"sync-rsync.remote": "remote_hostname:/home/idanp/my_code/",
"sync-rsync.local": "/mnt/c/Users/idanp/my_code/",
"sync-rsync.flags": "avhP",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants