rescript-lang / rescript-lang/rescript-vscode

Stale builds when LLM edits code

Open
#1,140 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

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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.