mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This pull request is created by [automatic cherry pick workflow](https://github.com/flutter/flutter/blob/main/docs/releases/Flutter-Cherrypick-Process.md#automatically-creates-a-cherry-pick-request) Please fill in the form below, and a flutter domain expert will evaluate this cherry pick request. ### Issue Link: None ### Changelog Description: Calling `FileSystemEntity.watch(...)` will throw on Mac OS and Windows. ### Impact Description: Calling `FileSystemEntity.watch(...)` will throw on Mac OS and Windows, instead of correctly watching the path. ### Workaround: No user level work-around. `dart:io` is broken. ### Risk: What is the risk level of this cherry-pick? ### Test Coverage: Are you confident that your fix is well-tested by automated tests? It's tested by tests in Dart SDK ### Validation Steps: Run a Mac OS or Windows app with the following `main`. It should do nothing - rather than throw an exception. ```dart import 'dart:async'; import 'dart:io'; void main() async { final sub = Directory.systemTemp.watch(recursive: true).listen((_) {}); await Future.delayed(Duration(seconds: 1)); sub.cancel(); } ```
Flutter Engine
Setting up the Engine development environment
See here
gclient bootstrap
Flutter engine uses gclient to manage dependencies.
If you've already cloned the flutter repository: