You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have faced impediment that in Windows I need to provide full path to flutter executable because PATH value is ignored due to the documentation
Using an absolute path for executable is recommended since resolving the executable path is platform-specific. On Windows, both any PATH set in the environment map parameter and the path set in working Directory parameter are ignored for the purposes of resolving the executable path.
And the main problem location of flutter is totally dynamic and machine dependant.
final process =awaitProcess.start(
cmds.removeAt(0),
cmds,
runInShell:true,
mode: isVerbose ?ProcessStartMode.inheritStdio :ProcessStartMode.normal,
);
In dart:io there is property isWindows, we can explicitly apply runInShell flag for Windows OS.
P.S.: I seems command should be runned with mode ProcessStartMode.inheritStdio in such case
The text was updated successfully, but these errors were encountered:
vvvictor07
added a commit
to vvvictor07/flutterw
that referenced
this issue
Apr 10, 2024
I have faced impediment that in Windows I need to provide full path to
flutter
executable becausePATH
value is ignored due to the documentationAnd the main problem location of flutter is totally dynamic and machine dependant.
flutterw/packages/flutterw/lib/src/shell.dart
Line 40 in dfe70bf
As for me quist fix was to run command in Shell:
In
dart:io
there is property isWindows, we can explicitly applyrunInShell
flag for Windows OS.P.S.: I seems command should be runned with mode
ProcessStartMode.inheritStdio
in such caseThe text was updated successfully, but these errors were encountered: