rescript-lang / rescript-lang/rescript-vscode
Stale builds when LLM edits code
Nobody has claimed this yet.
- Dominant language
- ReScript
- Stars
- 354
- Forks
- 63
- Avg merge
- 11h 29m
- Merged PRs (30d)
- 1
Description
Hard to reproduce but every once in while I see thing like:
It's possible that your build is stale.
Try to clean the artifacts and build again?
Here's the original error message
The files ../ocaml/hono.cmi and ../ocaml/auth.cmi
make inconsistent assumptions over interface Hono
(Getting this for Protect.res)
The LLM edited three files in this case: Hono.res, Auth.res (and Protect.res).
I suspect that we have some sort of race condition in the incremental compilation.
Where it tried to compile files out of order?
Restarting the ReScript Language Server makes the problem go away.
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 stale-build error using the edits to Hono.res, Auth.res, and Protect.res described in the report, then inspect the ReScript Language Server's incremental compilation path. Done means those dependent edits compile consistently without requiring a language-server restart, including when compilation happens incrementally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- vscode
- Domain
- build-system, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100