VSCodeVim / VSCodeVim/Vim

Failed to handle key=u. Overlapping ranges are not allowed!

Open
#8,405 0 comments 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
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

VSCodeVim version: 1.21.5

Stack trace
Error: Failed to handle key=u. Overlapping ranges are not allowed!
    at i._applyEdit (/private/var/folders/5l/d2tnbf310hv8qk5mwn3htlgr0000gn/T/AppTranslocation/CF09FE46-E4A1-4B08-9766-B026B53E0F10/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/CF09FE46-E4A1-4B08-9766-B026B53E0F10/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: [
  "[[74, 13] | [74, 13]]"
]
actionsRunPressedKeys: [
  "i",
  "i",
  "u"
]
actionsRun: [
  "D",
  "Ve",
  "$"
]
textTransformations: [
  {
    "type": "insertText",
    "position": {
      "line": 74,
      "character": 13
    },
    "text": "ERR",
    "cursorIndex": 0
  },
  {
    "type": "replaceText",
    "range": [
      {
        "line": 74,
        "character": 6
      },
      {
        "line": 74,
        "character": 16
      }
    ],
    "text": "OAILOG_ERROR",
    "cursorIndex": 0
  }
]

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

Start at src/transformations/execute.ts:125, where the stack trace reports the edit, then trace the key handling through src/mode/modeHandler.ts. Reproduce the supplied Insert-mode sequence and transformation data; done means pressing u no longer fails with an overlapping-ranges error.

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
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.