Failed to handle key=I. Overlapping ranges are not allowed!
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.21.5
Stack trace
Error: Failed to handle key=I. Overlapping ranges are not allowed!
at i._applyEdit (/private/var/folders/5l/d2tnbf310hv8qk5mwn3htlgr0000gn/T/AppTranslocation/8F74AE0F-8186-478E-A1F1-7E15AEAD2CBD/d/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:87:52424)
at Object.edit (/private/var/folders/5l/d2tnbf310hv8qk5mwn3htlgr0000gn/T/AppTranslocation/8F74AE0F-8186-478E-A1F1-7E15AEAD2CBD/d/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:87:50096)
at Object.executeTransformations (/Users/shivanand.ganiger/.vscode/extensions/vscodevim.vim-1.21.5/src/transformations/execute.ts:125:31)
at j.runAction (/Users/shivanand.ganiger/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:727:13)
at process.actionToRecord (internal/process/task_queues.js:93:5)
at j.handledAsAction [as handleKeyAsAnAction] (/Users/shivanand.ganiger/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:652:43)
at j.text [as handleKeyEvent] (/Users/shivanand.ganiger/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:471:11)
at /Users/shivanand.ganiger/.vscode/extensions/vscodevim.vim-1.21.5/extensionBase.ts:370:73
Additional context
currentMode: "Insert"
cursors: [
"[[355, 11] | [355, 11]]"
]
actionsRunPressedKeys: [
"i",
"N",
"O",
"I"
]
actionsRun: [
"D",
"Ve",
"$"
]
textTransformations: [
{
"type": "insertText",
"position": {
"line": 355,
"character": 11
},
"text": "IN",
"cursorIndex": 0
},
{
"type": "replaceText",
"range": [
{
"line": 355,
"character": 4
},
{
"line": 355,
"character": 13
}
],
"text": "OAILOG_INFO",
"cursorIndex": 0
}
]
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 with src/transformations/execute.ts at executeTransformations, then trace the key handling through src/mode/modeHandler.ts using the reported sequence i, N, O, I. Reproduce the transformation data and verify that handling key=I no longer raises the overlapping-ranges error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100