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

The system cannot find the file specified #1

Open
vhphuc opened this issue Jul 5, 2022 · 13 comments
Open

The system cannot find the file specified #1

vhphuc opened this issue Jul 5, 2022 · 13 comments

Comments

@vhphuc
Copy link

vhphuc commented Jul 5, 2022

Command line throw following error on Win 11. Command run in the project root path

Error

Running: freeze -> flutter pub run build_runner build --delete-conflicting-outputs

Unhandled exception:
ProcessException: The system cannot find the file specified.

My pubspec.yaml

scripts:
  laucher_icons: flutter pub run flutter_launcher_icons:main
  freeze: flutter pub run build_runner build --delete-conflicting-outputs
  build_android: flutter build appbundle -t lib/src/main_release.dart
  build_ios: flutter build ios --no-codesign -t lib/src/main_release.dart
@rodydavis
Copy link
Owner

Which platform are you running on?

@vhphuc
Copy link
Author

vhphuc commented Jul 9, 2022

I run it on Window 11, Powershell. Tried on 2 PC.
I installed with this cmd

dart pub global activate flutter_scripts

@rodydavis
Copy link
Owner

Haven’t tested on windows, but I can try a few things!

@TahaTesser
Copy link

Running into this issue on my personal machine (Windows 11).

@rodydavis
Copy link
Owner

Interesting. Does windows handle dart Process differently for where the script is run from?

@pankaj-nikam
Copy link

Yes, same issue on Windows 11. I am not sure if the root cause is Windows 😉

@rodydavis
Copy link
Owner

I have a windows test device now and will work on getting it to behave the same!

@S0NN1
Copy link

S0NN1 commented May 2, 2023

Any updates on the matter?

@swarajkumarsingh
Copy link

Hey everyone, it is working on windows 10, but not sure about windows 11

@ChristophKe
Copy link

@swarajkumarsingh still running in this problemon windows 10.

@swarajkumarsingh
Copy link

@swarajkumarsingh still running in this problemon windows 10.

Could you please share the screenshot and flutter doctor results

@swarajkumarsingh
Copy link

@swarajkumarsingh still running in this problemon windows 10.

Yes it is still working

@rodydavis
Copy link
Owner

I'll work on cutting a new release and port it to the latest tool chain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants