VSCodeVim / VSCodeVim/Vim

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

Open
#8,053 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/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1726:15296)
    at Jl.$tryApplyEdits (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:2727:18404)
    at v._doInvokeHandler (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1734:13070)
    at v._invokeHandler (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1734:12752)
    at v._receiveRequest (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1734:11522)
    at v._receiveOneMessage (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1734:10224)
    at vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1734:8331
    at f.invoke (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:145)
    at a.deliver (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:2266)
    at c.fire (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:1844)
    at o.fire (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:545:19365)
    at g._receiveMessage (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:545:24177)
    at vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:545:21620
    at f.invoke (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:145)
    at a.deliver (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:2266)
    at c.fire (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:83:1844)
    at c.acceptChunk (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:545:16196)
    at vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS Code/resources/app/out/vs/workbench/workbench.desktop.main.js:545:15326
    at Socket.E (vscode-file://vscode-app/c:/Users/gusta/AppData/Local/Programs/Microsoft VS 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>"
]
actionsRun: [
  "K",
  "N"
]
textTransformations: [
  {
    "type": "insertText",
    "position": {
      "line": 0,
      "character": 0
    },
    "text": "🎯 Instalar virtualenv:\n\n$> pip install virtualenv\n🎯 Crear entorno virtual:\n\n$> virtualenv env\n🎯 Crear entorno virtual especificando el intérprete:\n\n$> virtualenv -p ruta/interprete/python env\n🎯 Crear entorno virtual heredando las librerías del sistema (no recomendado):\n\n$> virtualenv --system-site-packages env\n🎯 Activar el entorno virtual en Linux/Mac:\n\n$> source env/bin/activate\n🎯 Activar el entorno virtual en Windows:\n\n$> env\\Scripts\\activate.bat\n🎯 Salir del entorno virtual:\n\n$> deactivate\n🎯 Instalar un paquete/librería (por ejemplo, flask):\n\n$> pip install flask\n🎯 Instalar una versión concreta de un paquete/librería:\n\n$> pip install flask==1.0.1\n🎯 Actualizar la versión de un paquete/librería:\n\n$> pip install flask -U\n🎯 Desinstalar una librería:\n\n$> pip uninstall flask\n🎯 Listar todas las librerías:\n\n$> pip list\n🎯 Listar todos los paquetes/librerías en formato requirements.txt:\n\n$> pip freeze\n🎯 Crear/Actualizar el fichero requirements.txt:\n\n$> pip freeze > requirements.txt\n🎯 Mostrar la información de un paquete/librería:\n\n$> pip show flask\nConclusión",
    "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 failure in VSCodeVim 1.24.1 with Insert mode, i, and , using the supplied text transformation and stack trace as the reference. Trace the extension path that handles the key and applies the edit. Done means the sequence no longer throws the pushUndoStop error and the inserted text remains correct.

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.