vscode-remote-release icon indicating copy to clipboard operation
vscode-remote-release copied to clipboard

[WSL + remote-ssh] cannot drap&drop file from WSL to remote SSH

Open jgabriel98 opened this issue 2 years ago • 10 comments

- VSCode Version: 1.78.2 (system setup)
  - Commit: b3e4e68a0bc097f0ae7907b217c1119af9e03435
- Local OS Version: Windows 11 22H2 (compilation 22621.1702)

- Remote OS Version (remote-ssh): Linux raspberrypi 6.1.21-v8+ aarch64 (from `uname -a` output)
  - Remote Extension/Connection Type: remote-ssh

- Remote OS Version (WSL2): 5.15.90.1-microsoft-standard-WSL2 (`uname -r` output), Debian
  - Remote Extension/Connection Type: WSL2

Does this issue occur when you try this locally?: No* (see note at end of Bug Description)

Bug Description

Cannot copy (dragp & drop) files from WSL container to remote-ssh on vscode.

Error "The dropped file could not be accessed for import." shows after trying to copy file from WSL container (on file explorer) to remote-ssh (on vscode). image

Note: drap & drop from host local file to remote-ssh works! It seems the problem is with |WSL hosted files| <----> |remote-ssh|

Steps to Reproduce:

setup:

  1. Have a WSL container installed and running
  2. Have a VScode connetected to a remote host through remote-ssh

Reproducing bug:

  1. Through windows file explorer, pick any file/folder from the WSL machine
  2. Drag & drop the file/folder to vscode with remote-ssh
  3. get error "The dropped file could not be accessed for import."

jgabriel98 avatar Jun 18 '23 23:06 jgabriel98

Same phenomenon occurs too in my settings. (|WSL hosted files| <----> |remote-ssh|)

VS Code version: 1.79.2 (system setup) Windows Version: Windows 11 22H2 (OS Build 22621.1848)

wbfw109 avatar Jun 21 '23 02:06 wbfw109

any updates or hints on this?

jgabriel98 avatar Jul 27 '23 20:07 jgabriel98

I am seeing the same problem when trying to copy a file from one explorer that's connected to, say host X, to another explorer window connected to host Y.

dray92 avatar Sep 06 '23 00:09 dray92

I'm experiencing the same issue even after adding wsl.localhost as an Allowed UNCHosts in settings, and reloading the window.

That message pops up for me as well....

blachawk avatar Sep 27 '23 13:09 blachawk

I'm experiencing the same issue even after adding wsl.localhost as an Allowed UNCHosts in settings, and reloading the window.

That message pops up for me as well....

i confirm the exact same

ShinobiWPS avatar Jan 17 '24 16:01 ShinobiWPS

@lramos15 any updates on this?

jgabriel98 avatar Jan 17 '24 18:01 jgabriel98

any solution?

ErnestoR2 avatar Mar 06 '24 19:03 ErnestoR2

I am experiencing this as well. Would be nice to be able to use VS Code to move files instead of having another SFTP software to install and use.

NA-Dev avatar Mar 11 '24 20:03 NA-Dev

any solution?

@ErnestoR2 I gave up a long time ago

jgabriel98 avatar Mar 12 '24 20:03 jgabriel98

It stopped to work for me just now, when i tried to copy the path from the file i saw it wasn't adding the wsl path for the folders in it. So I extracted the images from zip with it's wsl full path and it worked, try to add \wsl.localhost\Ubuntu<your_folder_path>. If you use other then Ubuntu linux distribuition, just replace it with yours. Hope it helps

gabrielPimentelEng avatar Aug 16 '24 20:08 gabrielPimentelEng