Editing a file over scp fails on Windows #68
Labels
bug
issues reporting wrong behavior
platform:windows
Issues related to windows
vim
vim specific issues
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
original issue: neovim/neovim#29517
The text was updated successfully, but these errors were encountered: