microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.64k stars 285 forks source link

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

Open jgabriel98 opened 1 year ago

jgabriel98 commented 1 year ago
- 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."
wbfw109 commented 1 year ago

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)

jgabriel98 commented 1 year ago

any updates or hints on this?

dray92 commented 1 year ago

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.

blachawk commented 1 year ago

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....

ShinobiWPS commented 9 months ago

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

jgabriel98 commented 9 months ago

@lramos15 any updates on this?

ErnestoR2 commented 7 months ago

any solution?

NA-Dev commented 7 months ago

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.

jgabriel98 commented 7 months ago

any solution?

@ErnestoR2 I gave up a long time ago

gabrielPimentelEng commented 2 months ago

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\. If you use other then Ubuntu linux distribuition, just replace it with yours. Hope it helps