Skip to content

Conversation

@elliette
Copy link
Member

@elliette elliette commented Mar 27, 2024

Fixes Dart-Code/Dart-Code#5049

Without this change, seeing infinite spinner:

Screenshot 2024-03-27 at 2 33 21 PM

With this change, Flutter sidebar loads:

Screenshot 2024-03-27 at 2 39 49 PM

@elliette
Copy link
Member Author

elliette commented Mar 27, 2024

@kenzieschmoll pointed out we have a lot of checks for whether we are in release mode (e.g. to collect analytics). Switching to just plain release mode instead of profile mode without setting the dart2js optimization level.

@elliette elliette changed the title Compile devtools with profile mode Compile devtools with release mode (no dart2js optimization set) Mar 27, 2024
Comment on lines -98 to -99
// Enable default optimizations: https://dart.dev/tools/dart-compile#js
'--dart2js-optimization=O1',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need the --release arg here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, that's passed as the buildMode (below)

@elliette elliette added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 27, 2024
@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Mar 27, 2024
@auto-submit
Copy link

auto-submit bot commented Mar 27, 2024

auto label is removed for flutter/devtools/7485, due to - The status or check suite Verify PR Release Note Requirements has failed. Please fix the issues identified (or deflake) before re-applying this label.

@elliette elliette merged commit 05714bd into flutter:master Mar 27, 2024
@elliette elliette mentioned this pull request Mar 27, 2024
3 tasks
copybara-service bot pushed a commit to dart-lang/sdk that referenced this pull request Mar 28, 2024
Follow up to https://dart-review.googlesource.com/c/sdk/+/360181 with one more patch: flutter/devtools#7485

Bug: flutter/devtools#7483
Change-Id: Ia2a93c783827d7e894ac139ecba9850edc8dff20
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/360123
Reviewed-by: Kenzie Davisson <kenzieschmoll@google.com>
Reviewed-by: Jacob Richman <jacobr@google.com>
Commit-Queue: Elliott Brooks <elliottbrooks@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sidebar does not load on current Flutter master

2 participants