Multi Cursor with easymotion plugin throws error
Open
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:
- Enable the easymotion plugin
- Create two cursors
-><alt> <click>by default, or<ctlCmd> <click>is another common option. - Perform an easy motion command,
-><leader><leader>wkto reproduce exactly the trace below - Note your upper cursor has jumped to the desired location
- A stack trace is logged, and your inputs will be locked.
- 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
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
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