Skip to content
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 #68

Open
saccarosium opened this issue Jan 18, 2025 · 0 comments
Open

Editing a file over scp fails on Windows #68

saccarosium opened this issue Jan 18, 2025 · 0 comments
Labels
bug issues reporting wrong behavior platform:windows Issues related to windows vim vim specific issues

Comments

@saccarosium
Copy link
Owner

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 no C/ folder in the C: drive.

The path to the local file should be either "/Users/User/[...]" or "C:/Users/User/[...]"

Steps to reproduce

On Windows:

nvim --clean
:e scp://user@host//path/to/file

Expected behavior

Nvim tries to execute scp -q "user@remote:/path/to/file" "C:/Users/User/AppData/Local/Temp/[...]" and then proceeds as normal

Neovim 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

@saccarosium saccarosium added bug issues reporting wrong behavior platform:windows Issues related to windows vim vim specific issues labels Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issues reporting wrong behavior platform:windows Issues related to windows vim vim specific issues
Projects
None yet
Development

No branches or pull requests

1 participant