{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/fletch/issues/325","labels_url":"https://api.github.com/repos/dart-lang/fletch/issues/325/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/fletch/issues/325/comments","events_url":"https://api.github.com/repos/dart-lang/fletch/issues/325/events","html_url":"https://github.com/dart-lang/fletch/issues/325","id":118006982,"number":325,"title":"\"fletch run hello.dart\" tries to reuse fletch-vm even if it's already dead","user":{"login":"mkustermann","id":5757092,"avatar_url":"https://avatars.githubusercontent.com/u/5757092?v=3","gravatar_id":"","url":"https://api.github.com/users/mkustermann","html_url":"https://github.com/mkustermann","followers_url":"https://api.github.com/users/mkustermann/followers","following_url":"https://api.github.com/users/mkustermann/following{/other_user}","gists_url":"https://api.github.com/users/mkustermann/gists{/gist_id}","starred_url":"https://api.github.com/users/mkustermann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkustermann/subscriptions","organizations_url":"https://api.github.com/users/mkustermann/orgs","repos_url":"https://api.github.com/users/mkustermann/repos","events_url":"https://api.github.com/users/mkustermann/events{/privacy}","received_events_url":"https://api.github.com/users/mkustermann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/fletch/labels/Area-Tools","name":"Area-Tools","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"peter-ahe-google","id":5689005,"avatar_url":"https://avatars.githubusercontent.com/u/5689005?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-ahe-google","html_url":"https://github.com/peter-ahe-google","followers_url":"https://api.github.com/users/peter-ahe-google/followers","following_url":"https://api.github.com/users/peter-ahe-google/following{/other_user}","gists_url":"https://api.github.com/users/peter-ahe-google/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-ahe-google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-ahe-google/subscriptions","organizations_url":"https://api.github.com/users/peter-ahe-google/orgs","repos_url":"https://api.github.com/users/peter-ahe-google/repos","events_url":"https://api.github.com/users/peter-ahe-google/events{/privacy}","received_events_url":"https://api.github.com/users/peter-ahe-google/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-11-20T10:04:42Z","updated_at":"2015-11-20T11:13:07Z","closed_at":null,"body":"Assuming \"foo.dart\" is a program that will just keep running until we <ctrl>-C it, the following happens\r\n\r\n```\r\n$ fletch run foo.dart\r\n... output from foo.dart ...\r\n<ctrl>-C\r\n$ fletch run foo.dart\r\nBad state: Trying to send command CommandCode.NewMap(MapId.methods) to fletch-vm, but the connection is already closed.\r\n#0      FletchVmSession.sendCommand.<sendCommand_async_body> (package:fletchc/session.dart:133:7)\r\n#1      Future.Future.microtask.<anonymous closure> (dart:async/future.dart:144)\r\n#2      _rootRun (dart:async/zone.dart:904)\r\n#3      _CustomZone.run (dart:async/zone.dart:803)\r\n#4      _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:736)\r\n#5      _microtaskLoop (dart:async/schedule_microtask.dart:43)\r\n#6      _microtaskLoopEntry (dart:async/schedule_microtask.dart:52)\r\n#7      _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:96)\r\n#8      _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:149)\r\n```\r\n\r\n@wibling @peter-ahe-google \r\n\r\nLabeled as Area-Compiler for now."},"comment":{"url":"https://api.github.com/repos/dart-lang/fletch/issues/comments/158362040","html_url":"https://github.com/dart-lang/fletch/issues/325#issuecomment-158362040","issue_url":"https://api.github.com/repos/dart-lang/fletch/issues/325","id":158362040,"user":{"login":"peter-ahe-google","id":5689005,"avatar_url":"https://avatars.githubusercontent.com/u/5689005?v=3","gravatar_id":"","url":"https://api.github.com/users/peter-ahe-google","html_url":"https://github.com/peter-ahe-google","followers_url":"https://api.github.com/users/peter-ahe-google/followers","following_url":"https://api.github.com/users/peter-ahe-google/following{/other_user}","gists_url":"https://api.github.com/users/peter-ahe-google/gists{/gist_id}","starred_url":"https://api.github.com/users/peter-ahe-google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peter-ahe-google/subscriptions","organizations_url":"https://api.github.com/users/peter-ahe-google/orgs","repos_url":"https://api.github.com/users/peter-ahe-google/repos","events_url":"https://api.github.com/users/peter-ahe-google/events{/privacy}","received_events_url":"https://api.github.com/users/peter-ahe-google/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T11:13:07Z","updated_at":"2015-11-20T11:13:07Z","body":"I usually add regression tests when I fix an issue. `tools/testing/dart/fletch_session_command.dart` already serves as a smoke test, but sometimes people make mistakes."}}