vscode-rsync
vscode-rsync copied to clipboard
Unexpected EOF (WSL)
I am running VSCode v1.60.0 with Sync-Rsync v0.36.0
When I attempt to run Sync-Rsync: Sync Remote to Local, I get an error message "unexpected EOF". VSCode's OUTPUT reads as follows:
Tue Sep 07 2021 09:59:16 GMT-0700 (Pacific Daylight Time) syncing
> rsync -rlptzv --progress [email protected]:~/parent/child/ \\wsl$\Ubuntu-20.04\home\me\parent\child/
rsync: -c: line 0: unexpected EOF while looking for matching `''
rsync: -c: line 1: syntax error: unexpected end of file
If I copy the command that it appears to be trying to run (rsync -rlptzv --progress [email protected]:~/parent/child/ \\wsl$\Ubuntu-20.04\home\me\parent\child/
) and paste it into VSCode's TERMINAL, the command executes without an EOF error.
If I change my localPath
to a Linux (WSL) path, I still get a similar EOF error:
Tue Sep 07 2021 10:07:14 GMT-0700 (Pacific Daylight Time) syncing
> rsync -rlptzv --progress [email protected]:~/parent/child/ /home/markham/parent/child/
rsync: -c: line 0: unexpected EOF while looking for matching `''
rsync: -c: line 1: syntax error: unexpected end of file
What is the cause of this error?
Here is my config. I am running on WSL with Ubuntu-20.04:
{
"folders": [
{
"path": "\\\\wsl$\\Ubuntu-20.04\\home\\me\\parent\\child"
}
],
"settings": {
"sync-rsync.executableShell": "bash",
"sync-rsync.exclude": [],
"sync-rsync.onSaveIndividual": true,
"sync-rsync.onLoadIndividual": true,
"sync-rsync.notification": false,
"sync-rsync.autoShowOutput": false,
"sync-rsync.autoShowOutputOnError": true,
"sync-rsync.sites": [
{
"name": "Manage repo",
"localPath": "${workspaceFolder}",
"remotePath": "[email protected]:~/parent/child"
}
],
}
}
DO NOT USE the "sync-rsync.executableShell": bash
, delete this.
Instead, add "sync-rsync.useWSL": true