VSCodeVim / VSCodeVim/Vim

Multi Cursor with easymotion plugin throws error

Open
#6,217 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

To Reproduce
Steps to reproduce the behavior:

  1. Enable the easymotion plugin
  2. Create two cursors
    -> <alt> <click> by default, or <ctlCmd> <click> is another common option.
  3. Perform an easy motion command,
    -> <leader><leader>wk to reproduce exactly the trace below
  4. Note your upper cursor has jumped to the desired location
  5. A stack trace is logged, and your inputs will be locked.
  6. You may break out by pressing <Esc> to go to "Normal Mode"

VSCodeVim version: 1.18.9

Stack trace
TypeError: Failed to handle key=k. Cannot read property 'name' of undefined
	at a.updateDecorations (/home/frogbomb/.vscode-oss/extensions/vscodevim.vim-1.18.9/out/extension.js:2:549362)
	at F.updateView (/home/frogbomb/.vscode-oss/extensions/vscodevim.vim-1.18.9/out/extension.js:2:722228)
	at F.handleKeyAsAnAction (/home/frogbomb/.vscode-oss/extensions/vscodevim.vim-1.18.9/out/extension.js:2:707278)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)
	at async F.handleKeyEvent (/home/frogbomb/.vscode-oss/extensions/vscodevim.vim-1.18.9/out/extension.js:2:704015)
	at async Object.promise (/home/frogbomb/.vscode-oss/extensions/vscodevim.vim-1.18.9/out/extension.js:2:350696)
	at async Object.runTasks (/home/frogbomb/.vscode-oss/extensions/vscodevim.vim-1.18.9/out/extension.js:2:754577)

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

Reproduce the failure in VSCodeVim 1.18.9 with the easymotion plugin, two cursors, and the documented key sequence, then use the stack trace beginning at updateDecorations and updateView to locate the relevant source. Done means the upper cursor moves to the requested location without a TypeError, input lock, or need to press Escape.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.