VSCodeVim / VSCodeVim/Vim

ModeHandler: error handling key

Open
#3,361 8 comments 5 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

  • Issue Type: Bug
  • Extension Name: vim
  • Extension Version: 1.0.1
  • OS Version: Darwin x64 18.0.0
  • VSCode version: 1.31.0-insider

Describe the bug
About two weeks ago I started frequently getting errors like "ModeHandler: error handling key=l. err=TypeError: Cannot read property 'position' of undefined." This appears in dialog in the lower-right of VS Code that I can dismiss, but it comes back frequently.

To Reproduce
Steps to reproduce the behavior:

  1. Use normal Vim keys to move the cursor.
  2. See error after some period of time, not immediately.

Expected behavior
Don't display this error message.

{
	"activationTimes": {
		"startup": true,
		"codeLoadingTime": 430,
		"activateCallTime": 4,
		"activateResolvedTime": 210,
		"activationEvent": "*"
	}
}

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 with the ModeHandler path that reports “error handling key=l” and reproduce the problem using normal Vim cursor movement on the reported VS Code and extension versions. Trace the intermittent undefined position condition and verify that the recurring error dialog no longer appears.

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
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.