examples icon indicating copy to clipboard operation
examples copied to clipboard

How could I hot reload the code after 'cargo run'

Open ihenk opened this issue 4 years ago • 4 comments

Hi, there. I saw the tip below. To debug or hot reload dart code, start the Flutter: Attach to Process launch configuration once the application runs. I've tried several times, but it didn't work. Is there anyway I could hot reload the dart code after 'cargo run'?

ihenk avatar Sep 13 '21 08:09 ihenk

Did you get any error message in the logs?

knopp avatar Sep 13 '21 08:09 knopp

I did cargo run in Terminal at the root directory of my project, then I clicked 'flutter attach' button in Android Studio and it was showing 'Waiting for a connection from Flutter on macOS...'. I was wondering if I did the right way.

ihenk avatar Sep 13 '21 09:09 ihenk

Unfortunately android studio flutter plugin can't attach to running desktop projects. This is only supported in vscode using the including launcher configurations.

knopp avatar Sep 13 '21 09:09 knopp

Got it. Let me have a try. Thanks a lot.

ihenk avatar Sep 13 '21 09:09 ihenk