Repository navigation
Description
Command
flutter pub get --no-exampleSteps to Reproduce
- ...
- ...
- ...
Logs
FileSystemException: Deletion failed, OS Error: The directory is not empty, errno = 145
#0 _Directory._deleteSync (dart:io/directory_impl.dart:216:7)
#1 FileSystemEntity.deleteSync (dart:io/file_system_entity.dart:425:7)
#2 ForwardingFileSystemEntity.deleteSync (package:file/src/forwarding/forwarding_file_system_entity.dart:70:16)
#3 ErrorHandlingDirectory.deleteSync.<anonymous closure> (package:flutter_tools/src/base/error_handling_io.dart:717:22)
#4 _runSync (package:flutter_tools/src/base/error_handling_io.dart:1118:16)
#5 ErrorHandlingDirectory.deleteSync (package:flutter_tools/src/base/error_handling_io.dart:716:12)
#6 ErrorHandlingFileSystem.deleteIfExists (package:flutter_tools/src/base/error_handling_io.dart:132:20)
#7 _createPlatformPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:1262:29)
#8 createPluginSymlinks (package:flutter_tools/src/flutter_plugins.dart:1193:5)
#9 refreshPluginsList (package:flutter_tools/src/flutter_plugins.dart:1333:5)
<asynchronous suspension>
#10 FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:445:5)
<asynchronous suspension>
#11 PackagesGetCommand.runCommand.<anonymous closure> (package:flutter_tools/src/commands/packages.dart:409:11)
<asynchronous suspension>
#12 Pool.forEach.run (package:pool/pool.dart:183:19)
<asynchronous suspension>
#13 Pool.withResource (package:pool/pool.dart:127:14)
<asynchronous suspension>
#14 Future.wait.<anonymous closure> (dart:async/future.dart:567:21)
<asynchronous suspension>
#15 Pool.forEach.onListen.<anonymous closure> (package:pool/pool.dart:203:23)
<asynchronous suspension>
#16 _StreamController.close (dart:async/stream_controller.dart:640:3)
<asynchronous suspension>[!] Flutter (Channel stable, 3.47.5, on Microsoft Windows [Version 10.0.19045.3803], locale en-US) [3.4s]
• Flutter version 3.47.5 on channel stable at C:\Users\macsud\Downloads\flutter_windows_3.47.5-stable\flutter
! The flutter binary is not on your path. Consider adding C:\Users\macsud\Downloads\flutter_windows_3.47.5-stable\flutter\bin to your path.
! The dart binary is not on your path. Consider adding C:\Users\macsud\Downloads\flutter_windows_3.47.5-stable\flutter\bin to your path.
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 6a19cca564 (8 days ago), 2026-09-17 14:13:22 -0400
• Engine revision af7e796e16
• Dart version 3.13.4
• DevTools version 2.60.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-record-use, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration
• If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.
[✓] Windows Version (10 Pro 64-bit, 22H2, 2009) [36.7s]
[✓] Android toolchain - develop for Android devices (Android SDK version 36.0.0) [13.3s]
• Android SDK at C:\Users\macsud\AppData\Local\Android\sdk
• Emulator version 37.1.11.0 (build_id 15917651) (CL:N/A)
• Platform android-37.0, 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 25.0.3+-15898627-b508.16)
• All Android licenses accepted.
[✓] Chrome - develop for the web [2.3s]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[✓] Visual Studio - develop Windows apps (Visual Studio Community 2026 18.10.2) [2.3s]
• Visual Studio at C:\Program Files\Microsoft Visual Studio\18\Community
• Visual Studio Community 2026 version 18.10.12217.157
• Windows 10 SDK version 10.0.26100.0
[✓] Connected device (3 available) [916ms]
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19045.3803]
• Chrome (web) • chrome • web-javascript • Google Chrome 154.0.8037.58
• Edge (web) • edge • web-javascript • Microsoft Edge 153.0.4234.48
[✓] Network resources [1,931ms]
• All expected network resources are available.
! Doctor found issues in 1 category.
Flutter Application Metadata
Type: app
Version: 6.0.0+6
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: stable
Creation framework version: 6a19cca
Plugins
app_links-7.2.1
image_picker_ios-0.8.13+8
in_app_purchase_storekit-0.4.13
mobile_scanner-7.4.2
printing-5.15.1
shared_preferences_foundation-2.5.7
url_launcher_ios-6.4.2
flutter_plugin_android_lifecycle-2.0.35
image_picker_android-0.8.13+23
in_app_purchase_android-0.5.3
shared_preferences_android-2.4.28
url_launcher_android-6.3.33
file_selector_macos-0.9.5+1
image_picker_macos-0.2.2+1
url_launcher_macos-3.2.6
app_links_linux-1.0.3
file_selector_linux-0.9.4+1
gtk-2.2.0
image_picker_linux-0.2.2
path_provider_linux-2.2.2
shared_preferences_linux-2.4.1
url_launcher_linux-3.2.3
file_selector_windows-0.9.3+6
image_picker_windows-0.2.2
path_provider_windows-2.3.0
shared_preferences_windows-2.4.1
url_launcher_windows-3.1.6
app_links_web-1.0.4
image_picker_for_web-3.1.1
shared_preferences_web-2.4.3
url_launcher_web-2.4.3
Activity
mbcorona commentedon Sep 25, 2026
Thanks for the report @macsudkoroma12-lgtm
Confirmed on master: _createPlatformPluginSymlinks recursively deletes the symlink directory (flutter_plugins.dart), and on Windows that can fail with errno 145 (ERROR_DIR_NOT_EMPTY) when a child is locked or the delete races.
Routing to team-tool.