Open noga-dev opened 2 years ago
The DevTools version is tied to the Flutter SDK, so to switch DevTools versions, just change your flutter version. To get the latest DevTools, you can use the Flutter master channel. There is no current way to get access to dev versions of DevTools. In the future, we'd like to set up auto-rolling for DevTools so that it can be rolled into the Dart SDK more frequently than the current monthly cadence.
We should improve our documentation to state this.
Thanks for the prompt response, Kenzie!
Are there any plans to decouple DevTools from the framework or Dart SDK? Would be a useful feature to be able to switch the version on demand (likeflutter channel master
but for DevTools).
Are there any plans to decouple DevTools from the framework or Dart SDK? Would be a useful feature to be able to switch the version on demand (like flutter channel master but for DevTools).
No there are not. We used to ship DevTools on pub, but this led to a myriad of problems for both our users and us as developers of the product. For example, users frequently experienced version compatibility issues, start up latency, etc. So coupling DevTools into the Dart SDK was a careful decision we made a little over a year ago because of the benefits it brings to our users and the improvements it made to our team's developer velocity. And switching versions is still supported, it is just done by switching your flutter channel.
If you really want to use bleeding edge DevTools (or DevTools from a specific tag), you could always build it locally :) it is just a Flutter app, so getting it up and running is pretty straight forward: https://github.com/flutter/devtools/blob/master/CONTRIBUTING.md
Thank you. You've addressed all my inquiries/concerns.
Will leave it to you to close this issue when it's unneeded internally anymore.
Bless.
This issue needs to remain open - it is for adding docs to the DevTools section of the website explaining how DevTools versioning works and docs for how to change devtools versions (i.e. change flutter version to change devtools version).
The docs (https://docs.flutter.dev/development/tools/devtools/overview) don't explain how to switch to another version. Since DevTools is no longer on pub.dev, we can't run
dart pub global activate devtools <version>
anymore.E.g. Currently I'm on DevTools 2.15.0. And I'd like to switch to 2.16.0-dev0.
Doctor: