rescript-vscode
rescript-vscode copied to clipboard
Stale builds when LLM edits code
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.
I've definitely seen this as well. And yeah, I also think it's some kind of race condition.