VSCodeVim / VSCodeVim/Vim

`:e` doesn’t work on Windows when using a Linux remote system

Open
#4,859 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Describe the bug
When running on Windows but working against a remote that uses Linux, commands like :e file fail to work, seemingly because VSCodeVim resolves the path using the host’s directory separator (Windows, \) rather than the remote platform’s (Linux, /). And while Windows will generally cope with being given / in paths, other platforms refuse to countenance \.

To Reproduce
Steps to reproduce the behavior:

  1. Use Windows.
  2. Set up a remote environment that uses Linux, e.g. WSL.
  3. :e /path/to/file (for some path of your own devising that exists; absolute and relative paths are all fine, and :tabe demonstrates the issue too).
  4. See error notification like this:

    Unable to open 'file': Unable to read file '\path\to\file' (Error: Unable to resolve non-existing file '\path\to\file').”.

Expected behavior
The file /path/to/file should have opened.

Environment (please complete the following information):

  • Extension (VsCodeVim) version: 1.14.3
  • VSCode version: 1.45.1
  • OS: Windows_NT x64 10.0.19041

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the :e and :tabe command handling described in the issue, focusing on where paths are resolved for remote environments. Reproduce the Windows-to-Linux case with /path/to/file; done means both commands open existing remote files without converting / to \.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.