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

Add git.exe requirement to documentation and give better error message if not found #262

Open
MatthiasWeiser opened this issue Jul 28, 2016 · 4 comments

Comments

@MatthiasWeiser
Copy link
Contributor

Description

Scaffold fails if git.exe is not in %PATH%

Repro steps

Use a machine without git.exe in %PATH%. I use the VS Plugin plus github for Windows, but both seem no to touch %PATH.

git.exe remote -v
git.exe init
FsiEvaluationException:

'Error: System.Exception: Start of process git.exe failed. Das System kann die angegebene Datei nicht finden
bei [email protected](String message) in C:\code\fake\src\app\FakeLib\ProcessHelper.fs:Zeile 79.
bei Fake.ProcessHelper.ExecProcessWithLambdas(FSharpFunc2 configProcessStartInfoF, TimeSpan timeOut, Boolean silent, FSharpFunc2 errorF, FSharpFunc2 messageF) in C:\code\fake\src\app\FakeLib\ProcessHelper.fs:Zeile 79. bei Fake.ProcessHelper.ExecProcessAndReturnMessages(FSharpFunc2 configProcessStartInfoF, TimeSpan timeOut) in C:\code\fake\src\app\FakeLib\ProcessHelper.fs:Zeile 106.
bei Fake.Git.CommandHelper.runGitCommand(String repositoryDir, String command) in C:\code\fake\src\app\FakeLib\Git\CommandHelper.fs:Zeile 28.
bei Fake.Git.CommandHelper.gitCommand(String repositoryDir, String command) in C:\code\fake\src\app\FakeLib\Git\CommandHelper.fs:Zeile 60.
bei Fake.Git.Repository.init(String repositoryDir, Boolean bare, Boolean shared) in C:\code\fake\src\app\FakeLib\Git\Repository.fs:Zeile 40.
bei <StartupCode$FSI_0005>.$FSI_0005_Init$fsx.main@() in C:\Users\Dell\Documents\GitHub\Ardmore\Shadow\init.fsx:Zeile 236.
Stopped due to error'

Expected behavior

ProjectScaffold succeeds

Actual behavior

See error above

Known workarounds

Not known

Related information

See above

@forki
Copy link
Member

forki commented Jul 28, 2016

please install git and put it in path.

@forki forki closed this as completed Jul 28, 2016
@MatthiasWeiser
Copy link
Contributor Author

Would be nice if this is at least mentioned as a requirement for using ProjectScaffold.

@cloudRoutine
Copy link
Member

It could also have a better error message

@forki forki reopened this Jul 28, 2016
@forki forki changed the title git.exe Add git.exe requirement to documentation and give better error message if not found Jul 28, 2016
@forki
Copy link
Member

forki commented Jul 28, 2016

changed title and made it up-for-grabs

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

No branches or pull requests

3 participants