You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the VS Code extension is assuming developer's Dart Frog code is legitimate. However, sometimes the codebase might have errors that will cause the daemon to exit the application without the developer wanting so. For example, importing dart:html (as show in in demo video). In such cases, the debug session requires to be detached.
Steps To Reproduce
Install dependencies (from: extensions/vscode):
npm i
Start the extension development host (F5):
Open a Dart Frog project route and include an import statement that imports dart:html:
import'dart:html';
import'package:dart_frog/dart_frog.dart';
ResponseonRequest(RequestContext context) {
returnResponse(body:'Welcome to Dart Frog!');
}
Debug the server
See error
Expected Behavior
To detach the application on premature application exit
To inform the user about the error that causes the premature application exit
Demonstration
CleanShot.2023-09-14.at.07.49.38.mp4
The text was updated successfully, but these errors were encountered:
Description
Currently, the VS Code extension is assuming developer's Dart Frog code is legitimate. However, sometimes the codebase might have errors that will cause the daemon to exit the application without the developer wanting so. For example, importing
dart:html
(as show in in demo video). In such cases, the debug session requires to be detached.Steps To Reproduce
dart:html
:Expected Behavior
To inform the user about the error that causes the premature application exitDemonstration
CleanShot.2023-09-14.at.07.49.38.mp4
The text was updated successfully, but these errors were encountered: