VSCodeVim / VSCodeVim/Vim

`:w` stuck in writing file

Open
#4,004 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Describe the bug
In a pretty large workspace, after editing file for a while, use ":w" to save file will stuck for at least 5 seconds. Any command to vim will not be accepted. "hjkl" are not working but arrow keys are working. Can switch file tabs but cannot save them even with "ctrl+s"

To Reproduce
Steps to reproduce the behavior:

  1. Go to a file
  2. Enter insert mode to edit then exit
  3. Type ":w" to save file
  4. The vim is frozen for at least 5 seconds

Expected behavior
The file is saved immediately and vim is reponding to new commands.

Environment (please complete the following information):
Ubuntu 18.04

  • Extension (VsCodeVim) version: 1.9.0
  • VSCode version: 1.37.1
  • OS: Ubuntu 18.04

Additional context
Don't know if it relates to the large workspace. If the file is bigger, it takes longer.

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 the :w freeze in a large workspace using the reported VSCodeVim 1.9.0, VS Code 1.37.1, and Ubuntu 18.04 environment, then compare behavior with a smaller workspace or file. Trace the save-command and input handling entry points implicated by the report; done means saving responds immediately and hjkl and other commands work during and after the save.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.