Editor hangs when executing :r !date in normal mode
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
Not sure if this is a bug, maybe only occurs in my environment. I would greatly appreciate if someone could give me a hint.
with simple and quick tests,
:r !echo helloeverything is fine:r !pwdnothing is read into the editor but not hanging:r !sed -n '31,41p' a.txtditto
To Reproduce
Steps to reproduce the behavior:
- Open a file, e.g. xxx.md in Editor
- Type
:r !datein normal mode and press Enter key - Editor will hang while Explorer is still working fine
Expected behavior
read the output of date
Screenshots
If applicable, add screenshots to help explain your problem.
If remapping-related, please attach log output: https://github.com/VSCodeVim/Vim#debugging-remappings.
Vim.log
Environment (please complete the following information):
- Extension (VsCodeVim) version: v1.28.0
- VSCode version: 1.92.2
- OS: Windows 11 22631.4037 + WSL2 Ubuntu 23.04
Additional context
Start VSCode from WSL2 Ubuntu 23.04 terminal via code .
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
Start by reproducing :r !date in VSCodeVim v1.28.0 from VS Code launched in WSL2, then compare it with :r !echo hello, :r !pwd, and the sed example. Trace the normal-mode :r shell-command path and use the supplied Vim.log to identify where execution hangs; done means date output is inserted without blocking the editor.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- cli, devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100