Fix ProcessException: The system cannot find the file specified. via adding runInShell: true argument.
Description
There is an exception while running on Windows, probably for incorrect flutter permissions provided on my pc. I couldn't figure it out on my system directly, so I got it fixed by adding runInShell: true argument to Process.start.
Unhandled exception:
ProcessException: The system cannot find the file specified.
Command: flutter build web -t C:\Coding\flutter\flutter_embedding\.dart_tool/jaspr/flutter_target.dart --output=C:\Coding\flutter\flutter_embedding\build/flutter
#0 _ProcessImpl._start (dart:io-patch/process_patch.dart:402:33)
#1 Process.start (dart:io-patch/process_patch.dart:38:20)
#2 FlutterHelper.buildFlutter (package:jaspr_cli/src/helpers/flutter_helpers.dart:38:40)
<asynchronous suspension>
Fix
ProcessException: The system cannot find the file specified.
via addingrunInShell: true
argument.Description
There is an exception while running on Windows, probably for incorrect flutter permissions provided on my pc. I couldn't figure it out on my system directly, so I got it fixed by adding
runInShell: true
argument toProcess.start
.Type of Change
Ready Checklist
///
).If you need help, consider asking for advice on the #contribute channel on Discord.