-
Notifications
You must be signed in to change notification settings - Fork 1.7k
VM service does not hot reload non-main Isolates #44640
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
Comments
Just to clarify - the issue demonstrated above with |
Those two issues have been resolved. I just tried the repro recipe above, and confirmed that it no longer reproduces — at step 4, I see the new version of both strings. That's with:
So I believe this issue can be closed. |
yes sorry I forgot about this issue. |
Using the vm service package it should be possible to use the
reloadSources
to hot reload an Isolate from changes made to the src file on disk.With current master of the Dart SDK this seems to work fine using the DartVM in JIT mode on the commandline with the main isolate but not with any isolate's spawned from the main isolate.
This seems to have been reported in several different Flutter issues:
This was supposedly fixed for Flutter in this change as part of flutter/flutter#52149 but I don't see how that could actually be working at the moment as I am seeing that it doesn't work with just the standalone Dart SDK.
I created a modified version of the recharge package that demonstrates this issue.
To reproduce:
background-isolate-test
branch, run:dart --enable-vm-service example/hello.dart
hello.dart
changing the value returned bymesg()
and the print insideworker()
kill -n 10 <pid-of-example>
mesg()
but NOT of the worker'sprint()
The version I have been testing with is built locally:
The text was updated successfully, but these errors were encountered: