VSCodeVim / VSCodeVim/Vim

`:tabnew` doesn't open file in current subdirectory but tries to open file in devel tree basedir

Open
#6,192 3 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
Wrong basedir used when calling :tablew foo.pm

To Reproduce
Steps to reproduce the behavior:

  1. Open file devdir/b/foo.pm
  2. Call :e bar.pm --> works and opens devdir/b/bar.pm
  3. Call :tabnew baz.pm --> (tab completion works but) fails with this error:
Unable to open 'qgis.pm': Unable to read file '/home/myusername/devdir/baz.pm' (Error: Unable to resolve non-existing file '/home/myusername/devdir/baz.pm').

Expected behavior
New tab with devdir/b/baz.pm is opened.

Environment (please complete the following information):

  • Extension (VsCodeVim) version:v1.18.9
  • VSCodium version: 1.53.2
  • OS: Linux - openSUSE Tumbleweed

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

Reproduce the issue with the listed :e and :tabnew steps in a VSCodeVim workspace, then trace the command entry points for both commands and compare their path resolution. Done means :tabnew baz.pm opens the file from the current subdirectory, such as devdir/b/baz.pm, rather than the workspace base directory.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.