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

Error from git when running build.cmd as admin #1664

Closed
peter-campora opened this issue Oct 26, 2016 · 3 comments
Closed

Error from git when running build.cmd as admin #1664

peter-campora opened this issue Oct 26, 2016 · 3 comments

Comments

@peter-campora
Copy link

Running build.cmd fails with the errors listed in the Repro steps section.

Repro steps

I'm running cmd/powershell as an admin in the visualfsharp-master directory, and when I try to build the fsharp compiler, I get the errors:
"C:\PathTo\visualfsharp-master\src\fsharp-proto-build.proj" (default target) (1) ->
"C:\PathTo\visualfsharp-master\src\fsharp\FSharp.Build-proto\FSharp.Build-proto.fsproj" (Build target) (2) ->
(GenerateSourceLink target) ->
C:\PathTo\visualfsharp-master\src\FSharpSource.targets(552,5): error MSB3073: The command "git config --get remote.origin.url" exited with code 1. [C:\PathTo\visualfsharp-master\src\fsharp\FSharp.Build-proto\FSharp.Build-proto.fsproj]

"C:\PathTo\visualfsharp-master\src\fsharp-proto-build.proj" (default target) (1) ->
"C:\PathTo\visualfsharp-master\src\fsharp\FSharp.Compiler-proto\FSharp.Compiler-proto.fsproj" (Build target) (3) ->
C:\PathTo\visualfsharp-master\src\FSharpSource.targets(552,5): error MSB3073: The command "git config --get remote.origin.url" exited with code 1. [C:\PathTo\visualfsharp-master\src\fsharp\FSharp.Compiler-proto\FSharp.Compiler-proto.fsproj]"

I also see a, "ERROR: The system was unable to find the specified registry key or value.".

Git is installed, and my internet is working.

Expected behavior

A successful build of the compiler

Actual behavior

I get two "error MSB3073: The command "git config --get remote.origin.url" exited with code 1." errors.

Known workarounds

Provide a description of any known workarounds.

Related information

Provide any related information

  • Operating system - Windows 10
  • Branch - visualfsharp
  • .NET Runtime, CoreCLR or Mono Version - .NET 4.6
  • Editing Tools (e.g. Visual Studio Version) - VS Enterprise 2015
    Git is installed, as is msbuild and Strawberry Perl
@dsyme
Copy link
Contributor

dsyme commented Nov 8, 2016

@peter-campora I believe this is now fixed, could you try again? Or can you check you can run git config --get remote.origin.url please?

@dsyme dsyme closed this as completed Nov 8, 2016
@peter-campora
Copy link
Author

Yes @dsyme , I don't have any issues with git in the build file anymore, but I do have a new issue with use of fsi.exe in C:\PathTo\visualfsharp\src\scripts\fssrgen.targets(27,5):

I'm repairing Visual Studio 15 and I'm going to make sure all of the other software is correctly installed before filing a new ticket.

On another (off topic) note, is writing a script file to interact with a built compiler infeasible (I was able to successfully build the open source code base on a fedora machine)? I basically want to instantiate some research ideas that will use the FSharp constraint solver. So I'm trying to just add a script file and load the necessary dll's and source files to just work with the type system, but I've run into some puzzling errors. I just want to make a script to quickly test out the skeleton of the algorithm, for a paper.

Thanks,
Peter Campora

@dsyme
Copy link
Contributor

dsyme commented Nov 9, 2016

On another (off topic) note, is writing a script file to interact with a built compiler infeasible (I was able to successfully build the open source code base on a fedora machine)?

It might be better to do this in a fork of the FSHarp.Compiler.Service project (basically the same as this repo but building the compiler as a DLL). The tests show how to use the component. You can gradually then make more things public, strip off signature files etc. according to your hacking needs

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

No branches or pull requests

4 participants