Repository navigation
fix: Keep the model files a protocol-only generation refers to - #5894
Merged
FXschwartz merged 6 commits intoOct 23, 2026
Conversation
marcelomendoncasoares
requested changes
Oct 23, 2026
marcelomendoncasoares
left a comment
Collaborator
There was a problem hiding this comment.
Only one minor bug and one test description fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Under
serverpod start, a batch that adds a model and breaks an endpoint fails generation after the model files are written, and the stamp is only written on success. The next cycle, a protocol-only run after the endpoint is fixed, preserved model files from the stamp, so it deleted the new model's server and client files whileprotocol.dartstill imported them. The server then failed to compile until the model file was saved again.ServerpodCodeGenerator.serializableModelPaths, instead of reading the stamp.main.serializableModelPathsto the files the generators write for plain, server-only and shared models.Fixes #5882.
Pre-launch Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.If you need help, consider asking for advice on the discussion board.
Breaking changes
None