question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Full restart takes to the main.dart file after recent update.

See original GitHub issue

This issue started happening after I updated my Android Studio today.

Steps to Reproduce

  1. Besides a regular main.dart file, create a new file say home.dart, and keep your cursor in that file.
  2. Do a full restart, you’ll find the cursor is taken to the main.dart file.

Screenshot:

ezgif com-gif-maker (1)

Version info

[✓] Flutter (Channel dev, 1.25.0-8.0.pre, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
[✓] VS Code (version 1.49.0)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:22 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
jacob314commented, Feb 4, 2021

Sorry about this. The devtools fix has landed and a new version of devtools has been published (0.9.7+3). If you have intellij open, you will need to close your project and reopen it to get the fix.

2reactions
devoncarewcommented, Feb 4, 2021

It looks like the Flutter Inspector tab is selecting the app’s main widget after a restart, and that that is changing the file and selection of the active editor.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to force a Flutter application restart (in production mode)?
import 'package:flutter/material.dart'; void main() { runApp( RestartWidget( ... This will update some dependencies in pubspec.yaml file.
Read more >
Hot reload - Flutter documentation
Hot reload works by injecting updated source code files into the running Dart Virtual Machine (VM). After the VM updates classes with the...
Read more >
Understanding Flutter hot reload and hot restart the simplest way
Hot reload works by injecting updated source code files into the running Dart Virtual Machine (VM). After the VM updates classes with the...
Read more >
Difference Between Hot Reload and Hot Restart in Flutter
When Hot Reload is invoked, the host machine checks the edited code since the last compilation and recompiles that again. Hot Restart takes...
Read more >
Dart | IntelliJ IDEA Documentation - JetBrains
Create a Dart project from a Stagehand template · Select File | New | Project from the main menu or click the New...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found