rescript-vscode icon indicating copy to clipboard operation
rescript-vscode copied to clipboard

Something went wrong parsing the json output of reanalyze: 'SyntaxError: Unexpected token W in JSON at position 4'

Open Minnozz opened this issue 3 years ago • 4 comments

Something went wrong parsing the json output of reanalyze: 'SyntaxError: Unexpected token W in JSON at position 4'

I can't find the output that causes this error in the logs.

Minnozz avatar Aug 01 '22 14:08 Minnozz

Two repros:

  1. repro the issue
  2. repro of the insufficient error message (should show the command being run)

It's the same repro needed but 2 aspects to it.

cristianoc avatar Aug 01 '22 15:08 cristianoc

We've talked about this before - we should log to the extension console what the json that broke is. Should be easy enough.

zth avatar Aug 02 '22 09:08 zth

Can you try again from the latest beta extension from the marketplace? E.g. 1.5.17 It should give a better error helping reproducing the issue.

cristianoc avatar Aug 11 '22 07:08 cristianoc

I have updated to 1.5.17 and will see if it happens again.

Minnozz avatar Aug 11 '22 18:08 Minnozz

Closing this meanwhile, feel free to reopen.

zth avatar Aug 30 '22 11:08 zth