Failed to handle key=<C-a>. Illegal value for `line`
Open
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
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
VSCodeVim version: 1.20.0
Stack trace
Error: Failed to handle key=<C-a>. Illegal value for `line`
at _lineAt (c:\Users\cong van\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:76:1174)
at Object.lineAt (c:\Users\cong van\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:76:95)
at M.exec (c:\Users\cong van\.vscode\extensions\vscodevim.vim-1.20.0\src\actions\commands\insert.ts:239:36)
at M.execCount (c:\Users\cong van\.vscode\extensions\vscodevim.vim-1.20.0\src\actions\base.ts:249:20)
at b.exec (c:\Users\cong van\.vscode\extensions\vscodevim.vim-1.20.0\src\actions\commands\insert.ts:145:22)
at runMicrotasks (<anonymous>)
at process.j (internal/process/task_queues.js:97:5)
at b.execCount (c:\Users\cong van\.vscode\extensions\vscodevim.vim-1.20.0\src\actions\base.ts:248:42)
at I.actionToRecord [as runAction] (c:\Users\cong van\.vscode\extensions\vscodevim.vim-1.20.0\src\mode\modeHandler.ts:722:40)
at I.handledAsAction [as handleKeyAsAnAction] (c:\Users\cong van\.vscode\extensions\vscodevim.vim-1.20.0\src\mode\modeHandler.ts:651:43)
at I.async [as handleKeyEvent] (c:\Users\cong van\.vscode\extensions\vscodevim.vim-1.20.0\src\mode\modeHandler.ts:471:11)
at Object.promise (c:\Users\cong van\.vscode\extensions\vscodevim.vim-1.20.0\extensionBase.ts:628:27)
at Object.runTasks (c:\Users\cong van\.vscode\extensions\vscodevim.vim-1.20.0\src\taskQueue.ts:36:26)
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
Start at src/actions/commands/insert.ts, especially the M.exec location shown in the stack trace, and inspect how the action reaches lineAt. Reproduce the failure with VSCodeVim 1.20.0 in VS Code. Done means handling without the “Illegal value for line” error.
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
- 25/100