-
Notifications
You must be signed in to change notification settings - Fork 236
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
[BUG] Space inside project path causes failure #103
Comments
@znjameswu I need a bit more information on this. It seems that FVM was not installed. |
Oh yes, I just found out it was due to fvm not installed. The installation process seems to have some kind of issue (
copied from |
FYI, the error output of
|
I will take a look seems Windows specific. |
@znjameswu I made an adjustment on how it calls the commands on windows. Could you try the latest version 1.1.7. Not sure why this would happen since fvm uses the path package to ensure compatibility with different OSs |
I tested installing other versions of Flutter. It seems fine now. |
I was able to reproduce this bug in a minimal reproducible settings. Seems like a Demoimport 'package:process_run/cmd_run.dart';
import 'package:process_run/process_run.dart';
void main(List<String> arguments) async{
final version = 'master';
final kFlutterRepo = 'https://github.com/flutter/flutter.git';
final versionDirectoryPath = r'ANY_PATH_WITH_A_SPACE_INSIDE';
final args = [
'clone',
'-c',
'advice.detachedHead=false',
'--progress',
'--depth',
'1',
'--single-branch',
'-b',
version,
'--depth',
'1',
kFlutterRepo,
versionDirectoryPath
];
final process = await run(
'git',
args,
// stdout: stdout,
// stderr: stderr,
verbose: true,
// runInShell: Platform.isWindows,
);
} It will output $ git clone -c advice.detachedHead=false --progress --depth 1 --single-branch -b master --depth 1 https://github.com/flutter/flutter.git "PATH"
'C:\Program' is not recognized as an internal or external command,
operable program or batch file. What is curious is that the logged git command is perfectly legal but there will always be an error starting with 'C:\Program'. So I suspect a bug in |
@leoafarias |
Thanks @znjameswu I have deployed 1.2.2 |
@all-contributors please add znjameswu for bug |
I've put up a pull request to add @znjameswu! 🎉 |
Dart SDK version: 2.9.0
fvm version: 1.1.5
Platform: win10 x64
I happen to have a space in my project path. And when I run 'fvm flutter`, it causes failure. Something like:
The text was updated successfully, but these errors were encountered: