Skip to content

Stale builds when LLM edits code #1140

@nojaf

Description

@nojaf

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions