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

Parsing JSON from reanalyze failed.

Open Mng12345 opened this issue 1 year ago • 6 comments

Getting this error with rescript-vscode v1.10.0 on ubuntu22(wsl2), the version of rescript is v10.0.1

Parsing JSON from reanalyze failed. The raw, invalid JSON can be reproduced by following the instructions below. Please run that command and report the issue + failing JSON on the extension bug tracker: https://github.com/rescript-lang/rescript-vscode/issues
> To reproduce, run "/home/ming/.vscode-server/extensions/chenglou92.rescript-vscode-1.10.0/server/analysis_binaries/linux/rescript-editor-analysis.exe reanalyze -json" in directory: "/home/ming/projects/mng-gif-maker-v6/res/gif-compress"

I reran rescript-editor-analysis.exe in directory /home/ming/projects/mng-gif-maker-v6/res/gif-compress, the result json is below: reanalyse-log.txt

Mng12345 avatar Jan 31 '23 02:01 Mng12345

The attached appears to be valid JSON. Tested with https://jsonlint.com. See if you can reproduce and get an incorrect one.

cristianoc avatar Jan 31 '23 10:01 cristianoc

Yes, it's valid json file. The same error message showed every time i save the code.

Mng12345 avatar Jan 31 '23 13:01 Mng12345

Might be a problem with reporting false positives then. When this message keeps appearing, do you still get updated diagnostics from the code analyzer? If you add a new variable at the top level that nothing uses, is that reported right away even if you get that message?

zth avatar Feb 01 '23 06:02 zth

Yes, the editor works normally, when this message keeps appearing.

Mng12345 avatar Feb 01 '23 07:02 Mng12345

So new issues from the code analyzer is still presented?

zth avatar Feb 01 '23 07:02 zth

There are just some warnings about unused variables and types. The type tips and auto completion are working normally.

Mng12345 avatar Feb 01 '23 07:02 Mng12345