VSCodeVim / VSCodeVim/Vim

Failed to handle key=u. The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined

Open
#5,625 1 comment 0 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

To Reproduce
when setting
{
"before": [
"",
"g",
"u"
],
"commands": [
"java.action.navigateToSuperImplementation"
]
}
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 [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
	at Function.from (buffer.js:305:9)
	at t.StandardLanguageClient.<anonymous> (c:\Users\416\.vscode-insiders\extensions\redhat.java-0.70.0\dist\extension.js:15:79302)
	at Generator.next (<anonymous>)
	at c:\Users\416\.vscode-insiders\extensions\redhat.java-0.70.0\dist\extension.js:15:72286
	at new Promise (<anonymous>)
	at r (c:\Users\416\.vscode-insiders\extensions\redhat.java-0.70.0\dist\extension.js:15:72031)
	at c:\Users\416\.vscode-insiders\extensions\redhat.java-0.70.0\dist\extension.js:15:78660
	at _executeContributedCommand (c:\Users\416\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:701:753)
	at _doExecuteCommand (c:\Users\416\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:700:867)
	at _.executeCommand (c:\Users\416\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:700:773)
	at Object.executeCommand (c:\Users\416\AppData\Local\Programs\Microsoft VS Code Insiders\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:996:29)
	at f.handleRemapping (c:\Users\416\.vscode-insiders\extensions\vscodevim.vim-1.17.1\out\extension.js:9:501849)
	at f.sendKey (c:\Users\416\.vscode-insiders\extensions\vscodevim.vim-1.17.1\out\extension.js:9:499795)
	at t.Remappers.sendKey (c:\Users\416\.vscode-insiders\extensions\vscodevim.vim-1.17.1\out\extension.js:9:496237)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:94:5)
	at async F.handleKeyEvent (c:\Users\416\.vscode-insiders\extensions\vscodevim.vim-1.17.1\out\extension.js:9:471257)
	at async Object.promise (c:\Users\416\.vscode-insiders\extensions\vscodevim.vim-1.17.1\out\extension.js:9:235740)
	at async Object.runTasks (c:\Users\416\.vscode-insiders\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 key mapping using the shown before/commands configuration and inspect the key-remapping path named in the stack trace, including handleRemapping and sendKey in the extension output. Compare the behavior with the Red Hat Java command and determine why executing it leads to an undefined value; done means the mapping runs without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.