You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add informative messaging for flutter config when on a feature branch #132213
P2Important issues not at the top of the work listteam-toolOwned by Flutter Tool teamtool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team
1. Run flutter --disable-telemetry to disable telemetry (it should say Analytics reporting disabled.)
2. Run flutter config to see the current status of analytics opt in (it should sayAnalytics reporting is currently disabled. at the bottom)
3. Run flutter --enable-telemetry to re-enable it, it should say (it should say Analytics reporting enabled.) 4. Run flutter configagain... it still saysAnalytics reporting is currently disabled.` at the bottom even though the configuration files say it is enabled
Turns out that this issue was a result of not being on the main/master branch when running flutter config. Analytics is always suppressed when the developer is on a feature branch.
Instead, we should update the output of flutter config to print out that analytics is disabled/suppressed for the current command invocation because they are on a feature branch.
Possible example for message when running from a feature branch
// Old
Analytics reporting is currently disabled.
// New
Analytics reporting is currently disabled when running from feature branch.
This is my mistake, this is not a bug. This is working as intended when you're on a feature branch per the logic found here
The conditional check here is triggered because my version begins with [user-branch] so the flutter tool automatically suppressed analytics which resulted in the Analytics reporting is currently disabled. being printed when running flutter config
It works as expected when running it from the master/main channel.
That makes sense. Can we make the message say why telemetry is disabled? Since both you and I got confused about it we're probably not the only ones. :-)
That makes sense. Can we make the message say why telemetry is disabled? Since both you and I got confused about it we're probably not the only ones. :-)
That's a good point, I'll downgrade the priority and update the desc!
changed the title [-]Running `flutter config` shows analytics as always disabled[/-][+]Add informative messaging for `flutter config` when on a feature branch[/+]on Aug 9, 2023
P2Important issues not at the top of the work listteam-toolOwned by Flutter Tool teamtool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team
Activity
eliasyishak commentedon Aug 9, 2023
This is my mistake, this is not a bug. This is working as intended when you're on a feature branch per the logic found here
The conditional check here is triggered because my version begins with
[user-branch]so the flutter tool automatically suppressed analytics which resulted in theAnalytics reporting is currently disabled.being printed when runningflutter configIt works as expected when running it from the master/main channel.
fyi @Hixie
Hixie commentedon Aug 9, 2023
That makes sense. Can we make the message say why telemetry is disabled? Since both you and I got confused about it we're probably not the only ones. :-)
eliasyishak commentedon Aug 9, 2023
That's a good point, I'll downgrade the priority and update the desc!
[-]Running `flutter config` shows analytics as always disabled[/-][+]Add informative messaging for `flutter config` when on a feature branch[/+]christopherfujino commentedon Feb 8, 2024
@CoderDake This might make a good tool starter bug. Feel free to reach out to @eliasyishak if you need more context.
[flutter_tools] Clarify analytics reporting status when on a feature …