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! #6930

Closed
BorjaEst opened this issue Jul 29, 2021 · 1 comment
Closed

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

BorjaEst opened this issue Jul 29, 2021 · 1 comment

Comments

@BorjaEst
Copy link

To Reproduce
Steps to reproduce the behavior:
Normal usage. Details automatically collected.

VSCodeVim version: 1.21.5

Stack trace
Error: Failed to handle key=<Esc>. Overlapping ranges are not allowed!
    at n._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/borja/.vscode/extensions/vscodevim.vim-1.21.5/src/transformations/execute.ts:125:31)
    at j.runAction (/home/borja/.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/borja/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:652:43)
    at j.mh [as handleKeyEvent] (/home/borja/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:471:11)
    at /home/borja/.vscode/extensions/vscodevim.vim-1.21.5/extensionBase.ts:495:53
Additional context
currentMode: "Normal"
cursors: [
  "[[100, 4] | [101, 2]]"
]
actionsRunPressedKeys: [
  "<down>",
  "<left>",
  "<Esc>"
]
actionsRun: [
  "D",
  "q",
  "y"
]
textTransformations: [
  {
    "type": "insertText",
    "position": {
      "line": 100,
      "character": 4
    },
    "text": "lt",
    "cursorIndex": 0
  },
  {
    "type": "replaceText",
    "range": [
      {
        "line": 100,
        "character": 0
      },
      {
        "line": 100,
        "character": 6
      }
    ],
    "text": "result_1",
    "cursorIndex": 0
  }
]
@J-Fields
Copy link
Member

J-Fields commented Aug 3, 2021

Duplicate of #6888

@J-Fields J-Fields marked this as a duplicate of #6888 Aug 3, 2021
@J-Fields J-Fields closed this as completed Aug 3, 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