<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Create a new plugin <code class="notranslate">flutter create --plugin hello</code></li>
<li>Open in IDEA: <code class="notranslate">cd hello; idea .</code></li>
</ol>
<p dir="auto">=&gt; Would like to be able to launch the example app, but we seem to be missing a launch config, so Run/Debug is disabled.</p>
<p dir="auto">Easily reproducible with a simple app:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart';

void main() {
  runApp(new MaterialApp(home: new Scaffold(body: new Text('App!'))));
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>;

<span class="pl-k">void</span> <span class="pl-en">main</span>() {
  <span class="pl-en">runApp</span>(<span class="pl-k">new</span> <span class="pl-c1">MaterialApp</span>(home<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Scaffold</span>(body<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">Text</span>(<span class="pl-s">'App!'</span>))));
}</pre></div>
<p dir="auto">Pressing back button once closes the main page but does not quit the app. We see a blank page. Pressing back a second time produces the following exception:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E/flutter ( 3151): [ERROR:../../lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter ( 3151): Bad state: Future already completed
E/flutter ( 3151): #0      _AsyncCompleter.complete (dart:async/future_impl.dart:40)
E/flutter ( 3151): #1      Route.didComplete (package:flutter/src/widgets/navigator.dart:128)
E/flutter ( 3151): #2      Route.didPop (package:flutter/src/widgets/navigator.dart:92)
E/flutter ( 3151): #3      OverlayRoute.didPop (package:flutter/src/widgets/routes.dart:52)
E/flutter ( 3151): #4      TransitionRoute.didPop (package:flutter/src/widgets/routes.dart:184)
E/flutter ( 3151): #5      TransitionRoute&amp;&amp;LocalHistoryRoute.didPop (package:flutter/src/widgets/routes.dart:329)
E/flutter ( 3151): #6      NavigatorState.pop (package:flutter/src/widgets/navigator.dart:996)
E/flutter ( 3151): #7      NavigatorState.maybePop.&lt;maybePop_async_body&gt; (package:flutter/src/widgets/navigator.dart:970)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #8      NavigatorState.maybePop (package:flutter/src/widgets/navigator.dart)
E/flutter ( 3151): #9      _WidgetsAppState.didPopRoute.&lt;didPopRoute_async_body&gt; (package:flutter/src/widgets/app.dart:158)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #10     _WidgetsAppState.didPopRoute (package:flutter/src/widgets/app.dart)
E/flutter ( 3151): #11     BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.handlePopRoute.&lt;handlePopRoute_async_body&gt; (package:flutter/src/widgets/binding.dart:182)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #12     BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.handlePopRoute (package:flutter/src/widgets/binding.dart)
E/flutter ( 3151): #13     BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding._handleNavigationMessage.&lt;_handleNavigationMessage_async_body&gt; (package:flutter/src/widgets/binding.dart:191)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #14     BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding._handleNavigationMessage (package:flutter/src/widgets/binding.dart)
E/flutter ( 3151): #15     PlatformMessages.setJSONMessageHandler.&lt;anonymous closure&gt;.&lt;&lt;anonymous closure&gt;_async_body&gt; (package:flutter/src/services/platform_messages.dart:174)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #16     PlatformMessages.setJSONMessageHandler.&lt;anonymous closure&gt; (package:flutter/src/services/platform_messages.dart)
E/flutter ( 3151): #17     PlatformMessages.setStringMessageHandler.&lt;anonymous closure&gt;.&lt;&lt;anonymous closure&gt;_async_body&gt; (package:flutter/src/services/platform_messages.dart:160)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #18     PlatformMessages.setStringMessageHandler.&lt;anonymous closure&gt; (package:flutter/src/services/platform_messages.dart)
E/flutter ( 3151): #19     PlatformMessages.handlePlatformMessage.&lt;handlePlatformMessage_async_body&gt; (package:flutter/src/services/platform_messages.dart:77)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #20     PlatformMessages.handlePlatformMessage (package:flutter/src/services/platform_messages.dart)
E/flutter ( 3151): #21     _dispatchPlatformMessage (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:63)"><pre class="notranslate"><code class="notranslate">E/flutter ( 3151): [ERROR:../../lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter ( 3151): Bad state: Future already completed
E/flutter ( 3151): #0      _AsyncCompleter.complete (dart:async/future_impl.dart:40)
E/flutter ( 3151): #1      Route.didComplete (package:flutter/src/widgets/navigator.dart:128)
E/flutter ( 3151): #2      Route.didPop (package:flutter/src/widgets/navigator.dart:92)
E/flutter ( 3151): #3      OverlayRoute.didPop (package:flutter/src/widgets/routes.dart:52)
E/flutter ( 3151): #4      TransitionRoute.didPop (package:flutter/src/widgets/routes.dart:184)
E/flutter ( 3151): #5      TransitionRoute&amp;&amp;LocalHistoryRoute.didPop (package:flutter/src/widgets/routes.dart:329)
E/flutter ( 3151): #6      NavigatorState.pop (package:flutter/src/widgets/navigator.dart:996)
E/flutter ( 3151): #7      NavigatorState.maybePop.&lt;maybePop_async_body&gt; (package:flutter/src/widgets/navigator.dart:970)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #8      NavigatorState.maybePop (package:flutter/src/widgets/navigator.dart)
E/flutter ( 3151): #9      _WidgetsAppState.didPopRoute.&lt;didPopRoute_async_body&gt; (package:flutter/src/widgets/app.dart:158)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #10     _WidgetsAppState.didPopRoute (package:flutter/src/widgets/app.dart)
E/flutter ( 3151): #11     BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.handlePopRoute.&lt;handlePopRoute_async_body&gt; (package:flutter/src/widgets/binding.dart:182)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #12     BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding.handlePopRoute (package:flutter/src/widgets/binding.dart)
E/flutter ( 3151): #13     BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding._handleNavigationMessage.&lt;_handleNavigationMessage_async_body&gt; (package:flutter/src/widgets/binding.dart:191)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #14     BindingBase&amp;SchedulerBinding&amp;GestureBinding&amp;ServicesBinding&amp;RendererBinding&amp;WidgetsBinding._handleNavigationMessage (package:flutter/src/widgets/binding.dart)
E/flutter ( 3151): #15     PlatformMessages.setJSONMessageHandler.&lt;anonymous closure&gt;.&lt;&lt;anonymous closure&gt;_async_body&gt; (package:flutter/src/services/platform_messages.dart:174)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #16     PlatformMessages.setJSONMessageHandler.&lt;anonymous closure&gt; (package:flutter/src/services/platform_messages.dart)
E/flutter ( 3151): #17     PlatformMessages.setStringMessageHandler.&lt;anonymous closure&gt;.&lt;&lt;anonymous closure&gt;_async_body&gt; (package:flutter/src/services/platform_messages.dart:160)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #18     PlatformMessages.setStringMessageHandler.&lt;anonymous closure&gt; (package:flutter/src/services/platform_messages.dart)
E/flutter ( 3151): #19     PlatformMessages.handlePlatformMessage.&lt;handlePlatformMessage_async_body&gt; (package:flutter/src/services/platform_messages.dart:77)
E/flutter ( 3151): &lt;asynchronous suspension&gt;
E/flutter ( 3151): #20     PlatformMessages.handlePlatformMessage (package:flutter/src/services/platform_messages.dart)
E/flutter ( 3151): #21     _dispatchPlatformMessage (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:63)
</code></pre></div>