-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: hot reload #3392
base: main
Are you sure you want to change the base?
feat: hot reload #3392
Conversation
617f4cb
to
66a525a
Compare
ec7198d
to
401db79
Compare
@@ -167,6 +172,9 @@ func (s *Service) SyncStubReferences(ctx context.Context, req *connect.Request[l | |||
// rebuild must include the latest build context id provided by the request or subsequent BuildContextUpdated | |||
// calls. | |||
func (s *Service) Build(ctx context.Context, req *connect.Request[langpb.BuildRequest], stream *connect.ServerStream[langpb.BuildEvent]) error { | |||
if req.Msg.RebuildAutomatically { | |||
return s.handleDevModeRequest(ctx, req, stream) | |||
} | |||
events := make(chan updateEvent, 32) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the rest of this function can be gutted I think as it has a lot of logic for receiving new build contexts and watching for file changes, which only happens if req.Msg.RebuildAutomatically
is true.
Oh wait I'm actually not sure how you are reacting to build context changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not handling that properly I think, I need to move some of this logic into the hot reload path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I am handling this properly now
JVM languages can now used how reload for instant feedback
cc607a9
to
9296515
Compare
9296515
to
21a60c4
Compare
I need to add some tests around this, but I think they need a different approach to the existing language tests, as most of the logic is handled by Quarkus itself. |
JVM languages can now used how reload for instant feedback