seaneagan / den

A pubspec authoring tool.
BSD 2-Clause "Simplified" License
27 stars 6 forks source link

Crash upon entering author field using den spec #41

Open austincummings opened 9 years ago

austincummings commented 9 years ago

Here's my shell as it crashed. Never used the tool before so I'm not sure what I did wrong.

$ den spec

Please answer the prompts below to update the local pubspec.
(Defaults are based on existing field values)

? name: (dynamic_lib) 
? author: Austin Cummings
X Author "Austin Cummings" should have an email address
(e.g. "name <email>").
> Austin Cummings <austin@austincummings.com>
Unhandled exception:
Invalid argument(s)
#0      _JSSyntaxRegExp.firstMatch (dart:core-patch/regexp_patch.dart:142)
#1      Version.Version.parse (package:pub_semver/src/version.dart:116)
#2      Pubspec.version (package:den_api/src/pubspec.dart:44)
#3      _LocalInstanceMirror._invokeGetter (dart:mirrors-patch/mirrors_impl.dart:535)
#4      _LocalInstanceMirror._getFieldSlow (dart:mirrors-patch/mirrors_impl.dart:447)
#5      _LocalInstanceMirror.getField (dart:mirrors-patch/mirrors_impl.dart:466)
#6      getFieldQuestion (package:den/src/commands/spec.dart:91)
#7      Object&BumpCommand&FetchCommand&InstallCommand&PullCommand&SpecCommand.spec.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:den/src/commands/spec.dart:71)
#8      Future.forEach.<anonymous closure>.<anonymous closure> (dart:async/future.dart:336)
#9      Future.Future.sync (dart:async/future.dart:168)
#10     Future.forEach.<anonymous closure> (dart:async/future.dart:336)
#11     Future.Future.sync (dart:async/future.dart:168)
#12     Future.doWhile.<anonymous closure> (dart:async/future.dart:361)
#13     _RootZone.runUnaryGuarded (dart:async/zone.dart:1087)
#14     _RootZone.bindUnaryCallback.<anonymous closure> (dart:async/zone.dart:1116)
#15     _RootZone.runUnary (dart:async/zone.dart:1149)
#16     _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:502)
#17     _Future._propagateToListeners (dart:async/future_impl.dart:585)
#18     _Future._complete (dart:async/future_impl.dart:366)
#19     _StreamIteratorImpl._onData (dart:async/stream_impl.dart:1051)
#20     _RootZone.runUnaryGuarded (dart:async/zone.dart:1087)
#21     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341)
#22     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:270)
#23     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:67)
#24     _EventSinkWrapper.add (dart:async/stream_transformers.dart:14)
#25     _StringAdapterSink.add (dart:convert/string_conversion.dart:256)
#26     _LineSplitterSink._addLines (dart:convert/line_splitter.dart:127)
#27     _LineSplitterSink.addSlice (dart:convert/line_splitter.dart:102)
#28     StringConversionSinkMixin.add (dart:convert/string_conversion.dart:180)
#29     _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:80)
#30     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:119)
#31     _RootZone.runUnaryGuarded (dart:async/zone.dart:1087)
#32     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341)
#33     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:270)
#34     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:67)
#35     _EventSinkWrapper.add (dart:async/stream_transformers.dart:14)
#36     _StringAdapterSink.add (dart:convert/string_conversion.dart:256)
#37     _StringAdapterSink.addSlice (dart:convert/string_conversion.dart:260)
#38     _Utf8ConversionSink.addSlice (dart:convert/string_conversion.dart:336)
#39     _Utf8ConversionSink.add (dart:convert/string_conversion.dart:329)
#40     _ConverterStreamEventSink.add (dart:convert/chunked_conversion.dart:80)
#41     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:119)
#42     _RootZone.runUnaryGuarded (dart:async/zone.dart:1087)
#43     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341)
#44     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:270)
#45     _StreamController&&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:744)
#46     _StreamController._add (dart:async/stream_controller.dart:616)
#47     _StreamController.add (dart:async/stream_controller.dart:562)
#48     _Socket._onData (dart:io-patch/socket_patch.dart:1646)
#49     _RootZone.runUnaryGuarded (dart:async/zone.dart:1087)
#50     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:341)
#51     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:270)
#52     _StreamController&&_SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:744)
#53     _StreamController._add (dart:async/stream_controller.dart:616)
#54     _StreamController.add (dart:async/stream_controller.dart:562)
#55     _RawSocket._RawSocket.<anonymous closure> (dart:io-patch/socket_patch.dart:1215)
#56     _NativeSocket.issueReadEvent.issue (dart:io-patch/socket_patch.dart:749)
#57     _microtaskLoop (dart:async/schedule_microtask.dart:43)
#58     _microtaskLoopEntry (dart:async/schedule_microtask.dart:52)
#59     _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)
#60     _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:151)