`:tabnew` doesn't open file in current subdirectory but tries to open file in devel tree basedir
Open
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:
- Open file
devdir/b/foo.pm - Call
:e bar.pm--> works and opensdevdir/b/bar.pm - 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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