VSCodeVim / VSCodeVim/Vim

Cannot read property 'document' of undefined

Open
#6,018 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.18.5

Stack trace
TypeError: Cannot read property 'document' of undefined
	at Function.getCharAt (/Users/gary/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:1:13168)
	at F.updateView (/Users/gary/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:11:184243)
	at M (/Users/gary/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:9:210574)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:94:5)
	at async Object.promise (/Users/gary/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:9:214792)
	at async Object.runTasks (/Users/gary/.vscode/extensions/vscodevim.vim-1.18.5/out/extension.js:11:327644)

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

The stack trace points to getCharAt and updateView in out/extension.js; first replace the placeholder reproduction steps with a concrete VSCodeVim 1.18.5 scenario and trace those entry points back to their TypeScript sources. Done means the scenario no longer raises the TypeError and the behavior can be verified against the reported stack trace.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
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.