Flutter-intellij: Issue with hot reloading while debugging

Created on 11 May 2018  ·  7Comments  ·  Source: flutter/flutter-intellij

Steps to Reproduce

1) Run app in debug mode
2) Attempt to hot reload (Seems to happen more when paused on a breakpoint, but in general happens when you have a debugger attached)
3) Notice it never reloads

Version info

[√] Flutter (Channel beta, v0.3.1, on Microsoft Windows [Version 10.0.16299.125], locale en-US)
    • Flutter version 0.3.1 at C:\Users\pobor\Documents\flutter
    • Framework revision 12bbaba9ae (3 weeks ago), 2018-04-19 23:36:15 -0700
    • Engine revision 09d05a3891
    • Dart version 2.0.0-dev.48.0.flutter-fe606f890b

[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at C:\Users\pobor\AppData\Local\Android\sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
    • All Android licenses accepted.

[√] Android Studio (version 3.1)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin version 24.2.1
    • Dart plugin version 173.4700
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)

[√] IntelliJ IDEA Ultimate Edition (version 2018.1)
    • IntelliJ at C:\Users\pobor\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\181.4668.68
    • Flutter plugin version 24.0.2
    • Dart plugin version 181.4668.60

[√] Connected devices (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)

• No issues found!
question ❖ platform-windows

Most helpful comment

@patrykpoborca I get your point. I actually experienced this now. For a while, everything was working as expected. I was able to Ctrl + s and got the hot reload. But after some time hot reload got stuck and was in initializing hot reload so I did Stop the app completely and run it again and I was UNABLE to run hot reload with Ctrl +s only ctrl+. This is weird

All 7 comments

What app?

We do the steps described by OP during release testing so we're going to need more info to reproduce this problem. Detailed steps would be a start.

What user interactions are done with the app?
Where is the breakpoint placed?
How do you know it does not reload? What do you observe?

I'm not sure but have u tried pressing Ctrl + \ for hot reload? I Just started learning flutter and immediately noticed that hot reload doesn't work on Ctrl + s so I hovered over hot reload button and indeed it says to press Ctrl + \ to reload and it works.

@stychu it's not that it doesn't start, it simply hangs in the "initializing hot reload" doesn't always happen but when attached to debugger it happens way more than not.

@patrykpoborca I get your point. I actually experienced this now. For a while, everything was working as expected. I was able to Ctrl + s and got the hot reload. But after some time hot reload got stuck and was in initializing hot reload so I did Stop the app completely and run it again and I was UNABLE to run hot reload with Ctrl +s only ctrl+. This is weird

Me too (also on Windows), even after updating to the latest plugin version. Usually only the first or second hot reload works, then it stucks at initializing hot reload when hot reload is triggered. It happens so often that makes development somewhat frustrating. Note that hot reload works perfectly (so far) when running flutter run in the command line.

Ctrl+Shift+F5
Your welcome in advance!

Just to add that there are several reports of this issue from the user survey the Flutter team fielded in November 2019. More investigation into the root cause is needed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DaveShuckerow picture DaveShuckerow  ·  3Comments

zoechi picture zoechi  ·  3Comments

willlarche picture willlarche  ·  3Comments

ilopX picture ilopX  ·  3Comments

brianegan picture brianegan  ·  3Comments