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

steward new throws an exception #59

Open
bradcypert opened this issue Oct 23, 2023 · 0 comments
Open

steward new throws an exception #59

bradcypert opened this issue Oct 23, 2023 · 0 comments
Labels
bug Something isn't working CLI Affecting or involving Steward's CLI good first issue Good for newcomers

Comments

@bradcypert
Copy link
Contributor

bradcypert commented Oct 23, 2023

~/Projects
❯ steward new
Unhandled exception:
RangeError (index): Invalid value: Valid value range is empty: 0
#0      List.[] (dart:core-patch/growable_array.dart:264:36)
#1      NewCommand.run (file:///Users/bradcypert/.pub-cache/hosted/pub.dev/steward-0.4.0/bin/new.dart:117:22)
#2      CommandExecutor.execute (package:bosun/src/command_executor.dart:11:20)
#3      execute (package:bosun/bosun.dart:13:21)
#4      main (file:///Users/bradcypert/.pub-cache/hosted/pub.dev/steward-0.4.0/bin/steward.dart:6:9)
#5      _delayEntrypointInvocation.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:294:33)
#6      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)

This is an invalid command (required arguments are missing), but we should provide the user with a meaningful error message. Also this may be a bug in Bosun (https://www.github.com/pyrestudios/bosun)

@bradcypert bradcypert added bug Something isn't working CLI Affecting or involving Steward's CLI good first issue Good for newcomers labels Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CLI Affecting or involving Steward's CLI good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant