Suggestion: hide the script snapshot version errors when running dart script #1244
Labels
status-blocked
Blocked from making progress by another (referenced) issue
type-enhancement
A request for a change that isn't a bug
<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="96" height="96"hspace="10"> Issue by sethladd
Originally opened as dart-lang/sdk#22308
Hi,
Usability/aesthetics request. When changing your Dart version, and then running a script from pub's bin cache, we'll see this:
sethladd@sethladd-macbookair ~/tmp/angulartest $ stagehand ubersimplewebapp
Wrong script snapshot version, expected '9b71a36fb6f35a4247b4baef055b2626' found '836a274342f7f88d6b5a9bb59b2649a9'
Wrong script snapshot version, expected '9b71a36fb6f35a4247b4baef055b2626' found '836a274342f7f88d6b5a9bb59b2649a9'
Creating ubersimplewebapp application 'angulartest':
/Users/sethladd/tmp/angulartest/.gitignore
/Users/sethladd/tmp/angulartest/CHANGELOG.md
/Users/sethladd/tmp/angulartest/LICENSE
/Users/sethladd/tmp/angulartest/README.md
/Users/sethladd/tmp/angulartest/pubspec.yaml
/Users/sethladd/tmp/angulartest/web/index.html
/Users/sethladd/tmp/angulartest/web/main.dart
/Users/sethladd/tmp/angulartest/web/styles/main.css
8 files written.
--> to provision required packages, run 'pub get'
sethladd@sethladd-macbookair ~/tmp/angulartest $
Notice the two "wrong script snapshot version" messages. Two messages is a bit weird, and the message itself isn't that useful to an end user.
Could we display something more user friendly? Suggestion: "Dart VM version changed, generating new snapshot for app"
Thanks!
The text was updated successfully, but these errors were encountered: