Skip to content

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

@Ashesh3

Description

@Ashesh3

Similar to #537

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 "/root/.vscode-server/extensions/chenglou92.rescript-vscode-1.7.6/server/analysis_binaries/linux/rescript-editor-analysis.exe reanalyze -json" in directory: "/root/project/src/Components/folder_1/folder_2"

I ran the above command and here's my output:

root@46a74b7bf5b6:~/project# cd /root/project/src/Components/folder_1/folder_2
root@46a74b7bf5b6:~/project/src/Components/folder_1/folder_2# /root/.vscode-server/extensions/chenglou92.rescript-vscode-1.7.6/server/analysis_binaries/linux/rescript-editor-analysis.exe reanalyze -json

[  Warning: can't find source dirs: /root/project/lib/bs/.sourcedirs.json
  Types for cross-references will not be found by genType.

]
root@46a74b7bf5b6:~/project/src/Components/folder_1/folder_2# 

Seems like the JSON generated is invalid?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions