-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Editing a file over scp fails on Windows #29517
Comments
Regular command: vim git-bash version |
We don't support netrw. The path forward for this is #21635 |
It would be good to make |
Given that #21635 is explicitly about auto-installing nvim remotely and using the client/server capabilities of nvim, while scp copies the remote file locally and does all the editing locally, I'd say that, for me at least, these are 2 different use cases entirely. |
It means we do not support it, because it is maintained upstream (originally Dr. Chip; now vim/vim). We just vendor the files unchanged, same as the other Vim files in our runtime. Since
you should report this issue upstream. |
Ah, I misunderstood the comment that nvim doesn't support it as meaning that nvim as an application doesn't support it, rather than just meaning that the nvim team is not responsible for it. Thanks for the clarification! |
It will be eventually. But also, what @clason said is correct.
AFAIK, sshfs or similar is the most tractable. We may also consider something like distant as it matures (and that is mentioned in #21635). |
Problem
Attempting to edit a file using scp fails because the wrong path is provided for the local temp file.
Nvim tries to execute:
scp -q "user@remote:/path/to/file" "/C/Users/User/AppData/Local/Temp/[...]"
which fails with
"/C/Users/User/AppData/Local/Temp/[...]: No such file or directory
because
"/C/Users[...]"
is equivalent to"C:/C/Users[...]"
, and there is noC/
folder in theC:
drive.The path to the local file should be either
"/Users/User/[...]"
or"C:/Users/User/[...]"
Steps to reproduce
On Windows:
Expected behavior
Nvim tries to execute
scp -q "user@remote:/path/to/file" "C:/Users/User/AppData/Local/Temp/[...]"
and then proceeds as normalNeovim version (nvim -v)
0.9.5, 0.10.0
Vim (not Nvim) behaves the same?
yes, 9.1
Operating system/version
Windows 11 23H2
Terminal name/version
cmd.exe, nvy.exe
$TERM environment variable
undefined
Installation
msi
The text was updated successfully, but these errors were encountered: