Closed
Description
Splitting out from google/flutter-desktop-embedding#342 (comment)
Summarizing the error:
Build process failed
#0 throwToolExit (package:flutter_tools/src/base/common.dart:24:3)
#1 buildWindows (package:flutter_tools/src/windows/build_windows.dart:56:5)
[...]
[ +13 ms] 'C:\Program' is not recognized as an internal or external command,
[ +3 ms] operable program or batch file.
That looks very much like the vcvars64 path was split on spaces. What doesn't make sense about that is that this path pretty much always has spaces, so I don't understand why this would happen to someone else, but not be reproducible for me.
I'll make a branch tomorrow with some additional logging to make sure that's indeed what's happening (and not a strange issue with finding the vcvars64.bat path, for instance). Meanwhile, @contrix09 is there anything unusual about your CMD.exe configuration (e.g., something that might cause paths to be processed an extra time)?