-
Notifications
You must be signed in to change notification settings - Fork 364
Replace build_e2e.dart with devtools_tool serve command
#6638
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
Conversation
tool/lib/commands/serve.dart
Outdated
| final localDartSdkLocation = Platform.environment['LOCAL_DART_SDK']; | ||
| if (localDartSdkLocation == null) { | ||
| throw Exception('LOCAL_DART_SDK environment variable not set. Please add ' | ||
| 'the following to your \'.bash_profile\' or \'.bash_rc\' file:\n' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: .bashrc
elliette
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with small nit
| throw Exception('LOCAL_DART_SDK environment variable not set. Please add ' | ||
| 'the following to your \'.bash_profile\' or \'.bashrc\' file:\n' | ||
| 'export LOCAL_DART_SDK=<absolute/path/to/my/dart/sdk>'); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DanTup how can we tweak this exception to be useful for windows? We can do
final exceptionMessage = Platform.isWindows ? ... : ...;
throw Exception(exceptionMessage);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would probably just say something like
Please set the LOCAL_DART_SDK environment variable in Windows to <absolute/path/to/my/dart/sdk>
Unfortunately I've never found a good page on the MS site on how to set environment variables, but there are plenty of unofficial sites with instructions for all versions of Windows.
|
CONTRIBUTING.md should also be updated |
Thanks! I'll do this soon - I'm going to need to update the VS Code bits (changes to |
Work towards #6324