VSCodeVim / VSCodeVim/Vim

Failed to handle key=p. e.match is not a function

Open
#5,544 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

VSCodeVim version: 1.17.1

Stack trace
TypeError: Failed to handle key=p. e.match is not a function
	at l.advancePositionByText (/Users/strozzi/.vscode/extensions/vscodevim.vim-1.17.1/out/extension.js:1:14025)
	at n.exec (/Users/strozzi/.vscode/extensions/vscodevim.vim-1.17.1/out/extension.js:9:409673)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:94:5)
	at async y.exec (/Users/strozzi/.vscode/extensions/vscodevim.vim-1.17.1/out/extension.js:9:413539)
	at async y.execCount (/Users/strozzi/.vscode/extensions/vscodevim.vim-1.17.1/out/extension.js:1:37457)
	at async F.runAction (/Users/strozzi/.vscode/extensions/vscodevim.vim-1.17.1/out/extension.js:9:475401)
	at async F.handleKeyAsAnAction (/Users/strozzi/.vscode/extensions/vscodevim.vim-1.17.1/out/extension.js:9:474794)
	at async F.handleKeyEvent (/Users/strozzi/.vscode/extensions/vscodevim.vim-1.17.1/out/extension.js:9:471603)
	at async Object.promise (/Users/strozzi/.vscode/extensions/vscodevim.vim-1.17.1/out/extension.js:9:235740)
	at async Object.runTasks (/Users/strozzi/.vscode/extensions/vscodevim.vim-1.17.1/out/extension.js:9:621914)

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 error using VSCodeVim 1.17.1 and the reported key=p action. Start by locating the source corresponding to advancePositionByText rather than relying on the bundled out/extension.js stack trace. Done means the action no longer throws the reported e.match TypeError and the behavior is covered by an appropriate regression test.

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
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.