Cannot read property 'document' of undefined
Open
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:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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