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

Closed
rjayasinghe opened this issue Jul 18, 2021 · 2 comments
Closed

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

rjayasinghe opened this issue Jul 18, 2021 · 2 comments
Labels

Comments

@rjayasinghe
Copy link

To Reproduce

I fear this might be challenging to reproduce but here is what I did:

Steps to reproduce the behavior:

  1. edit a Java file (with Java extension enabled)
  2. enter 2 characters
  3. try to trigger auto-completion for Java symbol
  4. See error

VSCodeVim version: 1.21.5

Stack trace
Error: Failed to handle key=<Esc>. Overlapping ranges are not allowed!
    at n._applyEdit (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:84:52275)
    at Object.edit (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:84:49967)
    at Object.executeTransformations (/Users/i540498/.vscode/extensions/vscodevim.vim-1.21.5/src/transformations/execute.ts:125:31)
    at j.runAction (/Users/i540498/.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] (/Users/i540498/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:652:43)
    at j.mh [as handleKeyEvent] (/Users/i540498/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:471:11)
    at /Users/i540498/.vscode/extensions/vscodevim.vim-1.21.5/extensionBase.ts:495:53
Additional context
currentMode: "Normal"
cursors: [
  "[[27, 6] | [27, 5]]"
]
actionsRunPressedKeys: [
  "i",
  "p",
  "e",
  "<Esc>"
]
actionsRun: [
  "D",
  "Ve",
  "$",
  "C",
  "$",
  "y"
]
textTransformations: [
  {
    "type": "insertText",
    "position": {
      "line": 27,
      "character": 6
    },
    "text": "i",
    "cursorIndex": 0
  },
  {
    "type": "replaceText",
    "range": [
      {
        "line": 27,
        "character": 4
      },
      {
        "line": 27,
        "character": 7
      }
    ],
    "text": "shippedNotificationTriggered",
    "cursorIndex": 0
  }
]
This was referenced Jul 23, 2021
@convers39
Copy link

any fix for this bug? cannot type anything and have to reload vscode everytime

@J-Fields
Copy link
Member

@convers39 A fix is coming in the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants