rescript-lang / rescript-lang/rescript-vscode
After running "rescript build -w" the language server become disabled
Nobody has claimed this yet.
- Dominant language
- ReScript
- Stars
- 354
- Forks
- 63
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 1
Description
When I open a project in vscode in both WSL and Windows, if I have previously used "rescript build -w", every time I reopen the project, whether I create or rename a res file, the rescript language server always prompts "Cannot find module xxx". Even if I open other files, features such as type hinting and auto completion do not work. At this point, I delete the lib folder and it prompts "Parsing JSON from reanalyze failed. The raw, invalid JSON can be reproduced by following the instructions below". I run the suggested command and the output is [].
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
Reproduce the issue in VSCode after running "rescript build -w", then follow the issue's suggested command after deleting the lib folder and compare the reported output of []. The issue names no files or tests; done means reopening the project no longer disables language-server features such as type hints and autocomplete or produces "Cannot find module".
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100