Skip to content

fix: Incremental compile must see all .dart files - #4876

Merged
marcelomendoncasoares merged 2 commits into
serverpod:mainfrom
nielsenko:fix-hotreload-regression
Mar 23, 2026
Merged

marcelomendoncasoares merged 2 commits into
serverpod:mainfrom
nielsenko:fix-hotreload-regression

Conversation

@nielsenko

Copy link
Copy Markdown
Collaborator

In the heat of the battle, a regression was introduced to file monitoring preventing incremental compile from seeing all changes to .dart files. This would eventually cause compile errors.

@nielsenko nielsenko self-assigned this Mar 23, 2026
@nielsenko
nielsenko force-pushed the fix-hotreload-regression branch from 3835a4d to 3807c70 Compare March 23, 2026 11:38
The FileWatcher filtered out generated directories via ignorePaths,
breaking incremental compilation.

- Remove ignorePaths from FileWatcher
- Surface generated paths from analyzeAndGenerate
- WatchSession splits dart files into source vs generated
- Merge generation output paths into the compiler's changedPaths
@nielsenko
nielsenko force-pushed the fix-hotreload-regression branch from 3807c70 to cb2c1ea Compare March 23, 2026 11:41
@nielsenko
nielsenko marked this pull request as ready for review March 23, 2026 12:06

@marcelomendoncasoares marcelomendoncasoares left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@marcelomendoncasoares
marcelomendoncasoares merged commit 50af6a0 into serverpod:main Mar 23, 2026
79 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants