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=:. No cursor index - this should never ever happen! #6887

Closed
klaygomes opened this issue Jul 17, 2021 · 0 comments
Closed

Comments

@klaygomes
Copy link

To Reproduce
Steps to reproduce the behavior:

delete current line with :d, try to run same command typing @:

VSCodeVim version: 1.21.5

Stack trace
Error: Failed to handle key=:. No cursor index - this should never ever happen!
    at doTextEditorEdit (/Users/my-user/.vscode/extensions/vscodevim.vim-1.21.5/src/transformations/execute.ts:90:13)
    at /Users/my-user/.vscode/extensions/vscodevim.vim-1.21.5/src/transformations/execute.ts:127:13
    at Object.edit (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:84:49960)
    at executeTransformations (/Users/my-user/.vscode/extensions/vscodevim.vim-1.21.5/src/transformations/execute.ts:125:31)
    at Object.e [as executeTransformations] (/Users/my-user/.vscode/extensions/vscodevim.vim-1.21.5/src/transformations/execute.ts:232:15)
    at process.transformer (internal/process/task_queues.js:93:5)
    at j.actionToRecord [as runAction] (/Users/my-user/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:726:55)
    at j.handledAsAction [as handleKeyAsAnAction] (/Users/my-user/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:652:43)
    at j.text [as handleKeyEvent] (/Users/my-user/.vscode/extensions/vscodevim.vim-1.21.5/src/mode/modeHandler.ts:471:11)
    at /Users/my-user/.vscode/extensions/vscodevim.vim-1.21.5/extensionBase.ts:370:73
Additional context
currentMode: "Normal"
cursors: [
  "[[15, 0] | [15, 0]]"
]
actionsRunPressedKeys: []
actionsRun: []
textTransformations: [
  {
    "type": "deleteRange",
    "range": [
      {
        "line": 15,
        "character": 0
      },
      {
        "line": 16,
        "character": 0
      }
    ],
    "manuallySetCursorPositions": true
  }
]
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