VSCodeVim / VSCodeVim/Vim

Failed to handle key `<C-v>`: Cannot read properties of null (reading 'pushUndoStop')

Open
#8,057 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.24.1

Stack trace
TypeError: Cannot read properties of null (reading 'pushUndoStop')
    at i.applyEdits (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1726:15296)
    at Jl.$tryApplyEdits (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:2727:18404)
    at v._doInvokeHandler (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1734:13070)
    at v._invokeHandler (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1734:12752)
    at v._receiveRequest (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1734:11522)
    at v._receiveOneMessage (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1734:10224)
    at vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:1734:8331
    at f.invoke (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:145)
    at a.deliver (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:2266)
    at c.fire (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:1844)
    at o.fire (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:545:19365)
    at g._receiveMessage (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:545:24177)
    at vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:545:21620
    at f.invoke (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:145)
    at a.deliver (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:2266)
    at c.fire (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:1844)
    at c.acceptChunk (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:545:16196)
    at vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:545:15326
    at Socket.E (vscode-file://vscode-app/usr/share/code/resources/app/out/vs/workbench/workbench.desktop.main.js:545:27446)
    at Socket.emit (node:events:526:28)
    at addChunk (node:internal/streams/readable:315:12)
    at readableAddChunk (node:internal/streams/readable:289:9)
    at Readable.push (node:internal/streams/readable:228:10)
    at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
Additional context
currentMode: "Insert"
cursors: [
  "[[0, 0] | [0, 0]]"
]
actionsRunPressedKeys: [
  "i",
  "<C-v>",
  ":",
  " ",
  "<BS>",
  ":",
  " ",
  "p",
  "a",
  "u",
  "l",
  "o",
  "r",
  " ",
  "<BS>",
  "o",
  "b",
  "e",
  "r",
  "t",
  "o",
  ".",
  "l",
  "d",
  "s",
  ".",
  "\\",
  "<BS>",
  "<BS>",
  "@",
  "g",
  "a",
  "m",
  "i",
  "l",
  "<BS>",
  "<BS>",
  "<BS>",
  "<BS>",
  "m",
  "a",
  "i",
  "l",
  ".",
  "c",
  "o",
  "m",
  "<down>",
  "<down>",
  "<BS>",
  " ",
  "P",
  "a",
  "u",
  "l",
  "o",
  " ",
  "R",
  "o",
  "b",
  "e",
  "r",
  "t",
  "o",
  " ",
  "d",
  "e",
  " ",
  "S",
  "o",
  "u",
  "s",
  "a",
  " ",
  "F",
  "r",
  "e",
  "i",
  "t",
  "a",
  "s",
  " ",
  "F",
  "i",
  "l",
  "o",
  "<BS>",
  "h",
  "o",
  "<Esc>"
]
actionsRun: [
  "K",
  "N"
]
textTransformations: [
  {
    "type": "insertText",
    "position": {
      "line": 0,
      "character": 0
    },
    "text": "Concurso Paulo Bosisio - Ficha de inscrição Violinista\nFICHA DE INSCRIÇÃO\n\n \nE-mail*\n\nNome do(a) candidato(a):*\n\nNascimento:*\n\nIdade Atual:*\n\nNacionalidade:*\nBrasileira\n\nRG ou RNE:*\n\nCPF:\n\nEndereço (Rua, Av, Praça, etc.):*\n\nNúmero/Complemento:*\n\nBairro:*\n\nCidade/Estado:*\n\nCEP:*\n\nTelefone 1 (com DDD):*\n\n\nNome do responsável (caso o candidato seja menor):\n \nParentesco do responsável:\nMãe\nPai\nOutro\nRG do responsável:\n \nCPF do responsável:\n \nTelefone do responsável (com DDD):\n \nCategoria escolhida, segundo o edital:*\nCategoria \"C\": até 14 anos\n\nBreve Currículo:*",
    "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 by reproducing the sequence in VSCodeVim 1.24.1 and trace the reported applyEdits failure involving pushUndoStop. The issue is resolved when the sequence no longer raises the null-property error; no source file or test is identified in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.