Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to handle key=<Esc>. Overlapping ranges are not allowed! #6866

Closed
oyd11 opened this issue Jul 12, 2021 · 1 comment
Closed

Failed to handle key=<Esc>. Overlapping ranges are not allowed! #6866

oyd11 opened this issue Jul 12, 2021 · 1 comment

Comments

@oyd11
Copy link

oyd11 commented Jul 12, 2021

To Reproduce
Steps to reproduce the behavior:
happens sometimes when pressing "." - repeat-last-command, couldn't figure out when exactly.

VSCodeVim version: 1.21.5

Stack trace
Error: Failed to handle key=<Esc>. Overlapping ranges are not allowed!
    at i._applyEdit (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:84:52275)
    at Object.edit (/usr/share/code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:84:49967)
    at Object.executeTransformations (/home/kobi/.vscode/extensions/vscodevim.vim-1.21.5/src/transformations/execute.ts:125:31)
    at j.runAction (/home/kobi/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:727:13)
    at runMicrotasks (<anonymous>)
    at process.actionToRecord (internal/process/task_queues.js:93:5)
    at j.handledAsAction [as handleKeyAsAnAction] (/home/kobi/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:652:43)
    at j.mh [as handleKeyEvent] (/home/kobi/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:471:11)
    at /home/kobi/.vscode/extensions/vscodevim.vim-1.21.5/extensionBase.ts:495:53
Additional context
currentMode: "Normal"
cursors: [
  "[[97, 47] | [97, 46]]"
]
actionsRunPressedKeys: [
  "r",
  "<Esc>"
]
actionsRun: [
  "D",
  "Ve",
  "$",
  "y"
]
textTransformations: [
  {
    "type": "insertText",
    "position": {
      "line": 97,
      "character": 47
    },
    "text": "re",
    "cursorIndex": 0
  },
  {
    "type": "replaceText",
    "range": [
      {
        "line": 97,
        "character": 40
      },
      {
        "line": 97,
        "character": 49
      }
    ],
    "text": "num_of_repetition_detectors101G",
    "cursorIndex": 0
  }
]
@J-Fields
Copy link
Member

Duplicate of #6888

@J-Fields J-Fields marked this as a duplicate of #6888 Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants