redhat-developer / redhat-developer/vscode-quarkus

SyntaxError: Expected property name or '}' in JSON at position 3 (line 2 column 2)

Open
#911 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
79
Forks
31
Avg merge
12h 51m
Merged PRs (30d)
6

Description

In Output -> Extension host, I found this stack:

2024-12-04 15:25:43.788 [info] ExtensionService#_doActivateExtension redhat.vscode-quarkus, startup: true, activationEvent: 'workspaceContains:**/src/main/resources/application.properties,**/src/main/resources/application-?*.properties,**src/main/resources/META-INF/microprofile-config.properties,**/src/main/resources/application.yaml,**/src/main/resources/application.yml,**/src/main/resources/templates'
2024-12-04 15:25:44.102 [info] Eager extensions activated
2024-12-04 15:25:51.316 [error] SyntaxError: Expected property name or '}' in JSON at position 3 (line 2 column 2)
	at JSON.parse (<anonymous>)
	at /home/apupier/.vscode/extensions/redhat.vscode-quarkus-1.20.0/dist/extension.js:2:17327
	at Generator.next (<anonymous>)
	at /home/apupier/.vscode/extensions/redhat.vscode-quarkus-1.20.0/dist/extension.js:2:15263
	at new Promise (<anonymous>)
	at i (/home/apupier/.vscode/extensions/redhat.vscode-quarkus-1.20.0/dist/extension.js:2:15008)
	at t.isUnwantedRecommendation (/home/apupier/.vscode/extensions/redhat.vscode-quarkus-1.20.0/dist/extension.js:2:17202)
	at t.RecommendationServiceImpl.<anonymous> (/home/apupier/.vscode/extensions/redhat.vscode-quarkus-1.20.0/dist/extension.js:2:3939)
	at Generator.next (<anonymous>)
	at /home/apupier/.vscode/extensions/redhat.vscode-quarkus-1.20.0/dist/extension.js:2:789
	at new Promise (<anonymous>)
	at i (/home/apupier/.vscode/extensions/redhat.vscode-quarkus-1.20.0/dist/extension.js:2:534)
	at /home/apupier/.vscode/extensions/redhat.vscode-quarkus-1.20.0/dist/extension.js:2:3869
	at Array.map (<anonymous>)
	at t.RecommendationServiceImpl.<anonymous> (/home/apupier/.vscode/extensions/redhat.vscode-quarkus-1.20.0/dist/extension.js:2:3861)
	at Generator.next (<anonymous>)
	at s (/home/apupier/.vscode/extensions/redhat.vscode-quarkus-1.20.0/dist/extension.js:2:591)

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 with the stack trace in the packaged extension at dist/extension.js and trace RecommendationServiceImpl.isUnwantedRecommendation back to its TypeScript source. Reproduce activation with the reported workspace, then identify the JSON input causing the parse error. Done means activation no longer emits this SyntaxError and the failure is covered by a regression test.

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.