rescript-lang / rescript-lang/rescript-vscode

'ReScript: Start Code Analyzer' resulted in an error

Open
#1,128 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
ReScript
Stars
354
Forks
63
Avg merge
11h 29m
Merged PRs (30d)
1

Description

  1. Code Analyzer instantly crashes and comes back with an error alert with the description:

Cannot read properties of undefined (reading 'document')

Image
  1. I tried running it on a different project and it outputed this back:
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
  1. And finally when running rescript-editor-analysis.exe reanalyze -json I get:
25694 segmentation fault   reanalyze -json

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 by reproducing the failure with the Code Analyzer and the rescript-editor-analysis.exe reanalyze -json command. Inspect the reported invalid JSON and segmentation fault; done means the analyzer no longer crashes and the extension receives valid analysis output.

Written by the indexing model from the issue text.

Assessment

Tech stack
vscode
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.