Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@mraleph
Copy link
Member

@mraleph mraleph commented Apr 12, 2018

Reverts #4977

This breaks hot restart.

To reproduce build the local engine with this change, run Flutter Gallery flutter run --debug --local-engine android_debug and once the application is loaded press R.

@mraleph
Copy link
Member Author

mraleph commented Apr 12, 2018

Originally discovered by @jensjoha

/cc @cbracken @a-siva

@mraleph mraleph merged commit 723c7d0 into master Apr 12, 2018
@mraleph mraleph deleted the revert-4977-master branch April 12, 2018 16:28
@jason-simmons
Copy link
Member

Hot restart is failing because the RunInView service protocol method is being passed a bogus .packages file along with the path to the recompiled main script .dill

@chinmaygarde @aam If RunInView is running a .dill, then should the .packages parameter be ignored? If so, then DartIsolate::PrepareForRunningFromSource can check for a .dill and then delegate to DartIsolate::PrepareForRunningFromSnapshot

@aam
Copy link
Member

aam commented Apr 12, 2018

@jason-simmons wrote:

If RunInView is running a .dill, then should the .packages parameter be ignored?

Yes, I believe so.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants