-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
cannot run any flutter command #55212
Comments
Same here. Actually running dart will fail also. I tried both flutter channel I'm running macOS Sonoma 14.4 EDIT: |
Running |
If you can't be bothered to install flutter master just to disable analytics, then you can instead edit diff --git a/.dart-tool/dart-flutter-telemetry.config b/.dart-tool/dart-flutter-telemetry.config
index 795800f..2065c2d 100644
--- a/.dart-tool/dart-flutter-telemetry.config
+++ b/.dart-tool/dart-flutter-telemetry.config
@@ -15,7 +15,7 @@
#
# To disable telemetry reporting, set "reporting" to
# the value "0" and to enable, set to "1":
-reporting=1
+reporting=0 |
channel master is also not working for me |
Facing the same issue on macOS on latest Flutter stable |
But for that i need to switch to flutter channel master but this command is not taken or any other flutter command is not taken PS C:\Users\upasa> flutter channel master Unhandled exception: Invocation: 'dart --disable-analytics' |
@upasana-khatiwada The easiest way is just to edit |
@nielsenko where can I find this config file? |
We are experiencing some serious breakage with analytics. Can you take a look @eliasyishak? This spread to our own checked in SDK and broke local builds as well. We might need to roll something back or land a hot fix quickly. |
The changes to fix this issue are now at the tip of master for dart-lang/tools and should be rolling downstream. The issue here is that we mistakingly removed a key from the json file we use for the package but have returned it in the latest version 5.8.8. Deleting the json file should reset the state back to working if you can't wait for the downstream roll. The file is located at $HOME/.dart-tool/dart-flutter-telemetry-session.json |
Dart roll of the fix from /tools to SDK in https://dart-review.googlesource.com/c/sdk/+/358220 |
Roll 87473f8 doesn't fix the problem for me.
This error is issued by |
I encountered the same thing. I think we need to get a new checked-in version of the Dart SDK with the roll to fix this issue. |
I've got a CL here to update the pinned SDK to a dev build from this morning: https://dart-review.googlesource.com/c/sdk/+/358540. Not sure if there's a process to do this, but I just followed the README from |
Includes fix for #55212 which is causing build breakages. Change-Id: Ie665b71970fd8ff2103f6fe5d7d1411ac6f8adc0 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/358540 Reviewed-by: Alexander Thomas <athom@google.com> Reviewed-by: Alexander Markov <alexmarkov@google.com>
@eliasyishak @bkonyi anymore known work here, or can we resolve this? |
I think this can probably be resolved. The fix has rolled into the SDK and the pinned SDK has been rolled so we're not seeing this error during builds anymore. |
I was under the impression that original reporters were Flutter developers? Should something be cherry-picked into the stable / beta to prevent breakages when developers jump between channels? |
Only users on the master branches for flutter and dart were affected, so likely the people affected were flutter/dart team members and community contributors. The latest fix we made to package:unified_analytics last week ensures that our current master channel won't have backwards compatibility issues with our current stable and beta channels so I don't believe we need to make any hotfixes. |
@eliasyishak thanks for confirming! |
How did you guys solved the above mentioned problem?? |
@SaugatPoudell please refer to the admin note in the top issue for the workaround if you are still running into this error. You should also be able to update from the master branch to get the patch to this error though and not have to use the workaround |
Admin note:
Developers who used the Flutter
main
channel last Friday, March 15th may see the following error due to dart-lang/tools#252:From our understanding those that use only
stable
andbeta
channels were not affected.The issue can be worked around by taking these steps:
$HOME/.dart-tool/dart-flutter-telemetry-session.json
dart
orflutter
againOriginal issue:
yes i have checked environment variables
reinstall dart and flutter extension ,
dart version is:
i cannot run
flutter --version
as it shows same above error but its 3.19.3 Reinstall Flutter,Restart Command Prompt , restart vs code , restart computer everythingplease kindly help
The text was updated successfully, but these errors were encountered: