-
Notifications
You must be signed in to change notification settings - Fork 30.6k
"flutter run" will unconditionally rewrite plugin registrants #134899
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: desktopRunning on desktopRunning on desktopa: pluginsSupport for writing, building, and running plugin packagesSupport for writing, building, and running plugin packagesfound in release: 3.13Found to occur in 3.13Found to occur in 3.13found in release: 3.14Found to occur in 3.14Found to occur in 3.14has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Description
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: desktopRunning on desktopRunning on desktopa: pluginsSupport for writing, building, and running plugin packagesSupport for writing, building, and running plugin packagesfound in release: 3.13Found to occur in 3.13Found to occur in 3.13found in release: 3.14Found to occur in 3.14Found to occur in 3.14has reproducible stepsThe issue has been confirmed reproducible and is ready to work onThe issue has been confirmed reproducible and is ready to work onteam-toolOwned by Flutter Tool teamOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.triaged-toolTriaged by Flutter Tool teamTriaged by Flutter Tool team
Type
Fields
Give feedbackNo fields configured for issues without a type.
Is there an existing issue for this?
Steps to reproduce
Consecutive runs of
flutter runwill regenerate and rebuild the C++ boilerplate, which makes the build slower.On Desktop (at least Linux, but probably others as well),
flutter rungenerates some C++ files such as:The problem is that it will regenerate them even if they already exist. Flutter should 1st compare the contents before regenerating them, otherwise
cmakewill notice the new timestamp and trigger a rebuild.Expected results
flutter run -vshould not show any time spent runningcmakeandninjaif source files haven't changed since the last good build.Actual results
unneeded rebuilds
Code sample
Screenshots or Video
No response
Logs
Flutter Doctor output