Comments (3)
Thanks, I was able to repro this.
It seems that overlapped hot restarts don't complete correctly:
// Restart #1
[12:33:18 PM] [DAP] [Info] ==> {"command":"restart","arguments":{"arguments":{"dartCodeDebugSessionID":"session-9008d","type":"dart","request":"launch","program":"C:\\Dev\\Test Projects\\dartcode_4980\\lib\\main.dart","projectRootPath":"C:\\Dev\\Test Projects\\dartcode_4980","cwd":"C:\\Dev\\Test Projects\\dartcode_4980","name":"Flutter (Windows)","deviceId":"windows","deviceName":"Windows (windows-x64)","toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code","FLUTTER_ROOT":"C:\\Dev\\Google\\flutter"},"sendLogsToClient":false,"sendCustomProgressEvents":true,"allowAnsiColorOutput":true,"additionalProjectPaths":["C:\\Dev\\Test Projects\\dartcode_4980"],"args":[],"vmAdditionalArgs":[],"toolArgs":["-d","windows","--devtools-server-address","http://127.0.0.1:9100/"],"vmServicePort":0,"dartSdkPath":"C:\\Dev\\Google\\flutter\\bin\\cache\\dart-sdk","vmServiceLogFile":"C:\\Dev\\Logs\\observatory.flutter_windows_.txt","webDaemonLogFile":"C:\\Dev\\Logs\\web_daemon.flutter_windows_.txt","maxLogLineLength":99999999,"debugSdkLibraries":false,"debugExternalPackageLibraries":false,"showDartDeveloperLogs":true,"evaluateGettersInDebugViews":true,"showGettersInDebugViews":true,"evaluateToStringInDebugViews":true,"flutterSdkPath":"C:\\Dev\\Google\\flutter","useInspectorNotificationsForWidgetErrors":true,"flutterRunLogFile":"C:\\Dev\\Logs\\flutter_run.flutter_windows_.txt","flutterTestLogFile":"C:\\Dev\\Logs\\flutter_test.flutter_windows_.txt","showMemoryUsage":false,"debuggerType":2,"__sessionId":"16366636-2b95-4206-9f63-5d72281075af"}},"type":"request","seq":8}
[12:33:18 PM] [DAP] [Info] <== {"seq":88,"type":"event","body":{"message":"Hot restarting…","progressId":"hotRestart_2","title":"Flutter"},"event":"dart.progressStart"}
[12:33:18 PM] [DAP] [Info] <== {"seq":91,"type":"event","body":{"category":"stdout","output":"Restarted application in 168ms.\n"},"event":"output"}
[12:33:18 PM] [DAP] [Info] <== {"seq":92,"type":"event","body":{"progressId":"hotRestart_2"},"event":"dart.progressEnd"}
[12:33:18 PM] [DAP] [Info] <== {"seq":93,"type":"response","command":"restart","request_seq":8,"success":true}
// Restart 2 + 3 overlap
[12:33:18 PM] [DAP] [Info] ==> {"command":"restart","arguments":{"arguments":{"dartCodeDebugSessionID":"session-9008d","type":"dart","request":"launch","program":"C:\\Dev\\Test Projects\\dartcode_4980\\lib\\main.dart","projectRootPath":"C:\\Dev\\Test Projects\\dartcode_4980","cwd":"C:\\Dev\\Test Projects\\dartcode_4980","name":"Flutter (Windows)","deviceId":"windows","deviceName":"Windows (windows-x64)","toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code","FLUTTER_ROOT":"C:\\Dev\\Google\\flutter"},"sendLogsToClient":false,"sendCustomProgressEvents":true,"allowAnsiColorOutput":true,"additionalProjectPaths":["C:\\Dev\\Test Projects\\dartcode_4980"],"args":[],"vmAdditionalArgs":[],"toolArgs":["-d","windows","--devtools-server-address","http://127.0.0.1:9100/"],"vmServicePort":0,"dartSdkPath":"C:\\Dev\\Google\\flutter\\bin\\cache\\dart-sdk","vmServiceLogFile":"C:\\Dev\\Logs\\observatory.flutter_windows_.txt","webDaemonLogFile":"C:\\Dev\\Logs\\web_daemon.flutter_windows_.txt","maxLogLineLength":99999999,"debugSdkLibraries":false,"debugExternalPackageLibraries":false,"showDartDeveloperLogs":true,"evaluateGettersInDebugViews":true,"showGettersInDebugViews":true,"evaluateToStringInDebugViews":true,"flutterSdkPath":"C:\\Dev\\Google\\flutter","useInspectorNotificationsForWidgetErrors":true,"flutterRunLogFile":"C:\\Dev\\Logs\\flutter_run.flutter_windows_.txt","flutterTestLogFile":"C:\\Dev\\Logs\\flutter_test.flutter_windows_.txt","showMemoryUsage":false,"debuggerType":2,"__sessionId":"16366636-2b95-4206-9f63-5d72281075af"}},"type":"request","seq":10}
[12:33:18 PM] [DAP] [Info] <== {"seq":95,"type":"event","body":{"message":"Hot restarting…","progressId":"hotRestart_3","title":"Flutter"},"event":"dart.progressStart"}
[12:33:19 PM] [DAP] [Info] ==> {"command":"restart","arguments":{"arguments":{"dartCodeDebugSessionID":"session-9008d","type":"dart","request":"launch","program":"C:\\Dev\\Test Projects\\dartcode_4980\\lib\\main.dart","projectRootPath":"C:\\Dev\\Test Projects\\dartcode_4980","cwd":"C:\\Dev\\Test Projects\\dartcode_4980","name":"Flutter (Windows)","deviceId":"windows","deviceName":"Windows (windows-x64)","toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code","FLUTTER_ROOT":"C:\\Dev\\Google\\flutter"},"sendLogsToClient":false,"sendCustomProgressEvents":true,"allowAnsiColorOutput":true,"additionalProjectPaths":["C:\\Dev\\Test Projects\\dartcode_4980"],"args":[],"vmAdditionalArgs":[],"toolArgs":["-d","windows","--devtools-server-address","http://127.0.0.1:9100/"],"vmServicePort":0,"dartSdkPath":"C:\\Dev\\Google\\flutter\\bin\\cache\\dart-sdk","vmServiceLogFile":"C:\\Dev\\Logs\\observatory.flutter_windows_.txt","webDaemonLogFile":"C:\\Dev\\Logs\\web_daemon.flutter_windows_.txt","maxLogLineLength":99999999,"debugSdkLibraries":false,"debugExternalPackageLibraries":false,"showDartDeveloperLogs":true,"evaluateGettersInDebugViews":true,"showGettersInDebugViews":true,"evaluateToStringInDebugViews":true,"flutterSdkPath":"C:\\Dev\\Google\\flutter","useInspectorNotificationsForWidgetErrors":true,"flutterRunLogFile":"C:\\Dev\\Logs\\flutter_run.flutter_windows_.txt","flutterTestLogFile":"C:\\Dev\\Logs\\flutter_test.flutter_windows_.txt","showMemoryUsage":false,"debuggerType":2,"__sessionId":"16366636-2b95-4206-9f63-5d72281075af"}},"type":"request","seq":12}
[12:33:19 PM] [DAP] [Info] <== {"seq":167,"type":"event","body":{"message":"Hot restarting…","progressId":"hotRestart_4","title":"Flutter"},"event":"dart.progressStart"}
[12:33:19 PM] [DAP] [Info] ==> {"command":"restart","arguments":{"arguments":{"dartCodeDebugSessionID":"session-9008d","type":"dart","request":"launch","program":"C:\\Dev\\Test Projects\\dartcode_4980\\lib\\main.dart","projectRootPath":"C:\\Dev\\Test Projects\\dartcode_4980","cwd":"C:\\Dev\\Test Projects\\dartcode_4980","name":"Flutter (Windows)","deviceId":"windows","deviceName":"Windows (windows-x64)","toolEnv":{"FLUTTER_HOST":"VSCode","PUB_ENVIRONMENT":"vscode.dart-code","FLUTTER_ROOT":"C:\\Dev\\Google\\flutter"},"sendLogsToClient":false,"sendCustomProgressEvents":true,"allowAnsiColorOutput":true,"additionalProjectPaths":["C:\\Dev\\Test Projects\\dartcode_4980"],"args":[],"vmAdditionalArgs":[],"toolArgs":["-d","windows","--devtools-server-address","http://127.0.0.1:9100/"],"vmServicePort":0,"dartSdkPath":"C:\\Dev\\Google\\flutter\\bin\\cache\\dart-sdk","vmServiceLogFile":"C:\\Dev\\Logs\\observatory.flutter_windows_.txt","webDaemonLogFile":"C:\\Dev\\Logs\\web_daemon.flutter_windows_.txt","maxLogLineLength":99999999,"debugSdkLibraries":false,"debugExternalPackageLibraries":false,"showDartDeveloperLogs":true,"evaluateGettersInDebugViews":true,"showGettersInDebugViews":true,"evaluateToStringInDebugViews":true,"flutterSdkPath":"C:\\Dev\\Google\\flutter","useInspectorNotificationsForWidgetErrors":true,"flutterRunLogFile":"C:\\Dev\\Logs\\flutter_run.flutter_windows_.txt","flutterTestLogFile":"C:\\Dev\\Logs\\flutter_test.flutter_windows_.txt","showMemoryUsage":false,"debuggerType":2,"__sessionId":"16366636-2b95-4206-9f63-5d72281075af"}},"type":"request","seq":13}
[12:33:19 PM] [DAP] [Info] <== {"seq":168,"type":"event","body":{"message":"Hot restarting…","progressId":"hotRestart_5","title":"Flutter"},"event":"dart.progressStart"}
[12:33:19 PM] [DAP] [Info] <== {"seq":174,"type":"event","body":{"category":"stdout","output":"Restarted application in 306ms.\n"},"event":"output"}
// Only first restart completes
[12:33:19 PM] [DAP] [Info] <== {"seq":175,"type":"event","body":{"progressId":"hotRestart_3"},"event":"dart.progressEnd"}
[12:33:19 PM] [DAP] [Info] <== {"seq":176,"type":"response","command":"restart","request_seq":10,"success":true}
from dart-code.
I think the issue here is occurring in Flutter. I've written up some notes at flutter/flutter#143371 and will continue to investigate.
from dart-code.
Well spotted; thanks @DanTup - let us know if we can help debug in any way.
from dart-code.
Related Issues (20)
- Include lint documentation in completion in analysis_options.yaml HOT 5
- Test group name starting with the same text is also being run when it shouldn't HOT 1
- An unexpected behavior in the analyzer (I think) - Provider FAILED HOT 4
- Use official icon for Flutter tool window
- Provide DTD address to analysis server
- Flutter gradle builder is not using correct JDK HOT 4
- False positive null warning HOT 3
- Issues moving comments when automatically moving `child` arg to last parameter position of widget constructor HOT 1
- VS Code's new "Run Tests" / "Debug Tests" entries in the explorer context menu do not work for Dart/Flutter HOT 4
- chose HOT 1
- chose HOT 1
- Migrate existing usages of `embed=true` query parameter for DevTools screens to `embedMode=one` HOT 4
- Remove use of page= query param for DevTools embeddings HOT 1
- "The Flutter Daemon has terminated" when connecting a physical android device in USB tethering mode HOT 9
- Use the new "Fix All in Workspace" commands in the "dart fix" prompt
- Dart analysis server at 100% cpu indefinitely when opening the Dart SDK repo (or flutter engine, which includes a nested copy) HOT 8
- `ctrl + alt` shows inferred types (inlay hints) with no option to disable HOT 2
- Building Flutter iOS app using VS Code breaks the build HOT 2
- Allow seeing the "Return value" of an operation in the debug panel HOT 3
- Remove the need for experimentalMacroSupport and gate on SDK version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dart-code.