Closed
Description
Steps to reproduce
I already checked that the Option "perform hot reload on save" is enabled.
I tried this also with a few diffrent options for hot reload enabled/disabled, but nothing seems to change anythink. My probles is the app seems to reload, but without the changes and I dont get any errors. In my attached log there is an error listed, but as i understand it, it gets resolved while building.
- I made an demo Flutter project like in https://codelabs.developers.google.com/codelabs/flutter-codelab-first?hl=de#4 besides im using Android Studio
- Run project as Chrome (web) in debug.
- Try to change some think and than try "save all" or "hotreload".
Expected results
The changes are visibly in debug mode.
Actual results
chrome gets reloaded but changes are not visible.
Code sample
Code sample
import 'package:english_words/english_words.dart';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return ChangeNotifierProvider(
create: (context) => MyAppState(),
child: MaterialApp(
title: 'Namer App',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.white),
),
home: MyHomePage(),
),
);
}
}
class MyAppState extends ChangeNotifier {
var current = WordPair.random();
void getNext() {
current = WordPair.random();
notifyListeners();
}
}
class MyHomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
var appState = context.watch<MyAppState>();
var pair = appState.current;
return Scaffold(
body: Column(
children: [
Text('A random AWESOME idea:'),
BigCard(pair: pair),
// ↓ Add this.
ElevatedButton(
onPressed: () {
appState.getNext();
},
child: Text('Next'),
),
],
),
);
}
}
class BigCard extends StatelessWidget {
const BigCard({super.key, required this.pair});
final WordPair pair;
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Card(
color: theme.colorScheme.primary,
child: Padding(
padding: const EdgeInsets.all(20),
child: Text(pair.asLowerCase),
),
);
return Text(pair.asLowerCase);
}
}
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
Performing hot restart...
[+77378 ms] Skipping target: gen_localizations
[ +2 ms] Skipping target: gen_dart_plugin_registrant
[ ] Skipping target: _composite
[ ] complete
[ +132 ms] Scanned through 651 files in 131ms
Waiting for connection from debug service on Chrome...
[ +1 ms] <- recompile org-dartlang-app:/web_entrypoint.dart f5c16d14-31a3-476d-9977-9feee06ad386
[ ] <- f5c16d14-31a3-476d-9977-9feee06ad386
[ +14 ms] Synced 0.0MB.
[ ] <- accept
[ +1 ms] DwdsVmClient: Attempting a hot restart
[ ] DwdsVmClient: Attempting to disable breakpoints and resume the isolate
[ +5 ms] DwdsVmClient: Successfully disabled breakpoints and resumed the isolate
[ ] DwdsVmClient: Attempting to get execution context ID.
[ ] DwdsVmClient: Got execution context ID.
[ ] DwdsVmClient: Issuing $dartHotRestartDwds request
[ +1 ms] ChromeProxyService: Destroying isolate
[ ] BatchedExpressionEvaluator: Closed
[ +13 ms] ChromeProxyService: Initializing expression compiler for main_module.bootstrap.js
[ +9 ms] DwdsVmClient: $dartHotRestartDwds request complete.
[ ] DwdsVmClient: Waiting for Isolate Start event.
[ +15 ms] DwdsVmClient: Successful hot restart
[ +2 ms] Restarted application in 209ms.
[ +22 ms] ChromeProxyService: Caching package:flutter/src/widgets/widget_inspector.dart in expression compiler worker
[ +207 ms] ExpressionEvaluator: Evaluating "() { return true; }" at packages/flutter/src/cupertino/text_form_field_row.dart
[ +10 ms] ExpressionEvaluator: Evaluating JS: "function () {
try {
return ((() => {var output = function() {
const dart_sdk = require('dart_sdk');
const dart_rti = dart_sdk.dart_rti;
const dart = dart_sdk.dart;
return dart.fn(() => true, dart_rti._Universe.eval(dart_rti._theUniverse(), "core|bool()", true));
}(); return output?._boundMethod || output;})())();
} catch (error) {
return error.name + ": " + error.message;
}
}" with scope: {}
[ +19 ms] ExpressionEvaluator: Evaluated "() { return true; }" to "{type: boolean, value: true}"
[+60682 ms] DevHandler: VmService proxy responded with an error:
{jsonrpc: 2.0, id: 88, error: {code: -32601, message: Method not found, data: {jsonrpc: 2.0, method: _setStreamIncludePrivateMembers, id: 88, params: {streamId: Debug, includePrivateMembers: false}}}}
[ +1 ms] DevHandler: VmService proxy responded with an error:
{jsonrpc: 2.0, id: 89, error: {code: -32601, message: Method not found, data: {jsonrpc: 2.0, method: _setStreamIncludePrivateMembers, id: 89, params: {streamId: Extension, includePrivateMembers: false}}}}
[ ] DevHandler: VmService proxy responded with an error:
{jsonrpc: 2.0, id: 91, error: {code: -32601, message: Method not found, data: {jsonrpc: 2.0, method: _setStreamIncludePrivateMembers, id: 91, params: {streamId: Isolate, includePrivateMembers: false}}}}
[ ] DevHandler: VmService proxy responded with an error:
{jsonrpc: 2.0, id: 92, error: {code: -32601, message: Method not found, data: {jsonrpc: 2.0, method: _setStreamIncludePrivateMembers, id: 92, params: {streamId: Logging, includePrivateMembers: false}}}}
[ ] DevHandler: VmService proxy responded with an error:
{jsonrpc: 2.0, id: 93, error: {code: -32601, message: Method not found, data: {jsonrpc: 2.0, method: _setStreamIncludePrivateMembers, id: 93, params: {streamId: Stderr, includePrivateMembers: false}}}}
[ ] DevHandler: VmService proxy responded with an error:
{jsonrpc: 2.0, id: 94, error: {code: -32601, message: Method not found, data: {jsonrpc: 2.0, method: _setStreamIncludePrivateMembers, id: 94, params: {streamId: Stdout, includePrivateMembers: false}}}}
[ +1 ms] DevHandler: VmService proxy responded with an error:
{jsonrpc: 2.0, id: 97, error: {code: -32601, message: Method not found, data: {jsonrpc: 2.0, method: _setStreamIncludePrivateMembers, id: 97, params: {streamId: Service, includePrivateMembers: false}}}}
[ +148 ms] DevHandler: VmService proxy responded with an error:
{jsonrpc: 2.0, id: 123, error: {code: 106, message: Can only perform operation while paused.}}
[ +407 ms] DevHandler: VmService proxy responded with an error:
{jsonrpc: 2.0, id: 133, error: {code: -32602, message: Source report kind Coverage not supported}}
[ ] DevHandler: VmService proxy responded with an error:
{jsonrpc: 2.0, id: 134, error: {code: -32602, message: Source report kind Coverage not supported}}
Flutter Doctor output
Doctor output
[√] Flutter (Channel stable, 3.32.0, on Microsoft Windows [Version 10.0.19045.5854], locale de-DE) [804ms]
• Flutter version 3.32.0 on channel stable at C:\Users\vfalk\dev\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision be698c48a6 (2 weeks ago), 2025-05-19 12:59:14 -0700
• Engine revision 1881800949
• Dart version 3.8.0
• DevTools version 2.45.1
[√] Windows Version (10 Pro 64-Bit, 22H2, 2009) [3,9s]
[√] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [3,3s]
• Android SDK at C:\Users\vfalk\AppData\Local\Android\sdk
• Platform android-36, build-tools 36.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java
This is the JDK bundled with the latest Android Studio installation on this machine.
To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
• Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
• All Android licenses accepted.
[√] Chrome - develop for the web [154ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.11.2) [153ms]
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.11.35222.181
• Windows 10 SDK version 10.0.22621.0
[√] Android Studio (version 2025.1.2) [20ms]
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.6+-13391695-b895.109)
[√] Connected device (3 available) [341ms]
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.5854]
• Chrome (web) • chrome • web-javascript • Google Chrome 136.0.7103.114
• Edge (web) • edge • web-javascript • Microsoft Edge 136.0.3240.92
[√] Network resources [349ms]
• All expected network resources are available.
Metadata
Metadata
Assignees
Labels
Issue is closed as not validIssue is closed as not valid