Skip to content
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

Launch DevTools from the 'dart devtools' command instead of pub #90894

Merged
merged 3 commits into from Sep 29, 2021

Conversation

kenzieschmoll
Copy link
Member

CC @bkonyi

@flutter-dashboard flutter-dashboard bot added a: text input Entering text in a text field or keyboard related problems tool Affects the "flutter" command-line tool. See also t: labels. labels Sep 28, 2021
@google-cla google-cla bot added the cla: yes label Sep 28, 2021
@bkonyi
Copy link
Contributor

bkonyi commented Sep 28, 2021

FYI @zanderso

@christopherfujino
Copy link
Member

christopherfujino commented Sep 28, 2021

Looks like you'll have to update //flutter/dev/bots/test.dart:

Unhandled exception:
FileSystemException: Cannot open file, path = '/b/s/w/ir/x/w/flutter/bin/internal/devtools.version' (OS Error: No such file or directory, errno = 2)
#0      _File.throwIfError (dart:io/file_impl.dart:635:7)
#1      _File.openSync (dart:io/file_impl.dart:479:5)
#2      _File.readAsBytesSync (dart:io/file_impl.dart:539:18)
#3      _File.readAsStringSync (dart:io/file_impl.dart:584:18)
#4      _runIntegrationToolTests (file:///b/s/w/ir/x/w/flutter/dev/bots/test.dart:325:75)
#5      _runFromList (file:///b/s/w/ir/x/w/flutter/dev/bots/test.dart:1812:23)
#6      selectShard (file:///b/s/w/ir/x/w/flutter/dev/bots/test.dart:1787:62)
#7      main (file:///b/s/w/ir/x/w/flutter/dev/bots/test.dart:137:11)
<asynchronous suspension>

https://github.com/flutter/flutter/blob/master/dev/bots/test.dart#L319

Copy link
Member

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

Code LGTM, you'll have to make some updates to fix CI. Also, if "Google Testing" fails you'll have to make a g3fix for this (by approving this, it should schedule the "Google Testing" check)

@kenzieschmoll
Copy link
Member Author

FYI @DanTup and @stevemessick for VS code and IntelliJ implications of this. Danny, we'd like to have VS code start launching from dart devtools - you should still be able to pass in your existing server URI as you would have before when launching from pub. Steve, once this is landed and pushed through to stable, we'll want to remove the "Launching DevTools" dialog from IntelliJ, as this method eliminates the slowdown caused by activating devtools from pub.

@DanTup
Copy link
Contributor

DanTup commented Sep 29, 2021

sgtm! It looks like this command doesn't exist in the current stable release, so I presume Dart SDK >= v2.15 would be the right version to check for?

@kenzieschmoll
Copy link
Member Author

so I presume Dart SDK >= v2.15 would be the right version to check for?

That should work. This is the commit that added the command dart-lang/sdk@d7c8e6a, so it looks like 2.15.0-39.0.dev is the earliest dart version this commit was included in.

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!

@kenzieschmoll kenzieschmoll merged commit 5a85c0d into flutter:master Sep 29, 2021
@kenzieschmoll kenzieschmoll deleted the devtools-launch branch September 29, 2021 22:32
clocksmith pushed a commit to clocksmith/flutter that referenced this pull request Oct 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: text input Entering text in a text field or keyboard related problems tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants