Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

During flutter pub cache clean, "OS Error: The system cannot find the path specified" #4155

Open
christopherfujino opened this issue Feb 27, 2024 · 1 comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@christopherfujino
Copy link
Member

Environment

  • Dart version (run dart --version):
  • OS kind and version (e.g. "Windows 10, version 1809" or "macOS 12.4"):
  • Are you using the Chinese community mirror or a corporate firewall?
    no

Problem

File system exception while trying to delete the pub cache via flutter pub cache clean:

 flutter pub cache clean
This will remove everything inside C:\Users\Nixos\AppData\Local\Pub\Cache.
You will have to run `flutter pub get` again in each project.
Are you sure? (y/N)? y
Removing pub cache directory C:\Users\Nixos\AppData\Local\Pub\Cache.
Deletion failed, path = 'C:\Users\Nixos\AppData\Local\Pub\Cache' (OS Error: The system cannot find the path specified.
, errno = 3)

I'm fairly sure this is a purely pub/dart:io issue, as it doesn't look like the flutter tool is doing much here (other than setting some env variables) before delegating to pub cache clean.

Flutter tracking issue: flutter/flutter#144140

@sigurdm
Copy link
Contributor

sigurdm commented Feb 29, 2024

I asked some questions on the flutter version on this issue.

@sigurdm sigurdm added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants