rescript-lang / rescript-lang/rescript-vscode
'ReScript: Start Code Analyzer' resulted in an error
Open
Nobody has claimed this yet.
- Dominant language
- ReScript
- Stars
- 354
- Forks
- 63
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 1
Description
- Code Analyzer instantly crashes and comes back with an error alert with the description:
Cannot read properties of undefined (reading 'document')
- 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
- And finally when running
rescript-editor-analysis.exe reanalyze -jsonI get:
25694 segmentation fault reanalyze -json
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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