rescript-lang / rescript-lang/rescript-vscode

After running "rescript build -w" the language server become disabled

Open
#789 0 comments 2 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

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.