Unexpected end of JSON input at loading register.ts
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
vscode keeps rendering the following error in debug console:
console.ts:137 [Extension Host] stack trace: SyntaxError: Unexpected end of JSON input at JSON.parse (<anonymous>) at /Users/<user>/.vscode/extensions/vscodevim.vim-1.22.2/src/register/register.ts:373:33
E @ console.ts:137
ERR Unexpected end of JSON input: SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at /Users/<user>/.vscode/extensions/vscodevim.vim-1.22.2/src/register/register.ts:373:33
To Reproduce
Steps to reproduce the behavior:
- Install vscodevim
- Toggle Developer Tools
- Reload the Window
- Observe the above error message
Expected behavior
There should be no error.
I've checked register.ts and there is clearly no L373 so I am not sure what happens here.
Screenshots
N/A
Environment (please complete the following information):
- Extension (VsCodeVim) version: 1.22.2
- VSCode version: 1.67.2 (Universal)
- OS: Darwin arm64 21.5.0
Additional context
N/A
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 report points to src/register/register.ts and a JSON.parse failure at the reported line 373. Reproduce the error with the listed VSCodeVim and VSCode versions, then inspect the JSON input used there. Done means reloading the extension no longer produces the Unexpected end of JSON input error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100