Skip to content

Fix a race condition for file o.dat#103

Merged
supermario merged 1 commit into
lamdera-nextfrom
race-condition-fix
Jul 6, 2026
Merged

Fix a race condition for file o.dat#103
supermario merged 1 commit into
lamdera-nextfrom
race-condition-fix

Conversation

@pithub

@pithub pithub commented Jul 5, 2026

Copy link
Copy Markdown
Member

Sometimes, for an empty "elm-stuff" folder, it happened that the compiler tried to read the file "o.dat" before the background writer had created it.

This fix narrows the scope of the BackgroundWriter to just the Details.load call. The following Lamdera.PostCompile.check and Lamdera.TypeHash.buildCheckHashes calls can then assume that the file "o.dat" has been created already.

Sometimes, for an empty "elm-stuff" folder, it happened that the
compiler tried to read the file "o.dat" before the background writer
had created it.
@supermario supermario merged commit b1bcbf0 into lamdera-next Jul 6, 2026
1 check passed
@supermario supermario deleted the race-condition-fix branch July 6, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants