Code Monkey home page Code Monkey logo

Comments (3)

DanTup avatar DanTup commented on June 18, 2024 1

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.

DanTup avatar DanTup commented on June 18, 2024 1

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.

simplenotezy avatar simplenotezy commented on June 18, 2024 1

Well spotted; thanks @DanTup - let us know if we can help debug in any way.

from dart-code.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.