VSCodeVim / VSCodeVim/Vim

Unexpected end of JSON input at loading register.ts

Open
#7,778 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

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:

  1. Install vscodevim
  2. Toggle Developer Tools
  3. Reload the Window
  4. 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.