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

dart2native crashes when passing unknown flag #38525

Closed
mit-mit opened this issue Sep 23, 2019 · 1 comment
Closed

dart2native crashes when passing unknown flag #38525

mit-mit opened this issue Sep 23, 2019 · 1 comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. vm-native

Comments

@mit-mit
Copy link
Member

mit-mit commented Sep 23, 2019

$ ~/tmp/dart-sdk-be/bin/dart2native -v
Unhandled exception:
FormatException: Could not find an option or flag "-v".
#0      Parser.validate (package:args/src/parser.dart:261:21)
#1      Parser.parseSoloOption (package:args/src/parser.dart:134:7)
#2      Parser.parse (package:args/src/parser.dart:88:11)
#3      ArgParser.parse (package:args/src/arg_parser.dart:320:45)
#4      main (file:///b/s/w/ir/cache/builder/sdk/pkg/dart2native/bin/dart2native.dart:100:40)
#5      _AsyncAwaitCompleter.start (dart:async-patch/async_patch.dart:43:6)
#6      main (file:///b/s/w/ir/cache/builder/sdk/pkg/dart2native/bin/dart2native.dart:78:18)
#7      _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:303:32)
#8      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:172:12)
$

It would be nice to catch this, and just show the output of -h

@mit-mit mit-mit added area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. vm-native labels Sep 23, 2019
dart-bot pushed a commit that referenced this issue Sep 23, 2019
Bug: #38524, #38525
Change-Id: Ic950fcadd328d1adeae19dd1046270fe4f4320e4
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/118387
Reviewed-by: Michael Thomsen <mit@google.com>
Commit-Queue: Clement Skau <cskau@google.com>
@ghost ghost self-assigned this Sep 24, 2019
@ghost
Copy link

ghost commented Sep 24, 2019

This is now fixed in 0b7a78d

@ghost ghost closed this as completed Sep 24, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. vm-native
Projects
None yet
Development

No branches or pull requests

1 participant