VSCodeVim / VSCodeVim/Vim

Editor hangs when executing :r !date in normal mode

Open
#9,238 0 comments 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
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 hello everything is fine
  • :r !pwd nothing is read into the editor but not hanging
  • :r !sed -n '31,41p' a.txt ditto

To Reproduce
Steps to reproduce the behavior:

  1. Open a file, e.g. xxx.md in Editor
  2. Type :r !date in normal mode and press Enter key
  3. 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.