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

Can't build on Windows #484

Closed
danroth27 opened this issue Apr 1, 2016 · 6 comments
Closed

Can't build on Windows #484

danroth27 opened this issue Apr 1, 2016 · 6 comments

Comments

@danroth27
Copy link

C:\Users\danroth27\Documents\GitHub\omnisharp-roslyn [dev]> .\build.ps1
Preparing to run build script...

Could not find Cake.exe at C:\Users\danroth27\Documents\GitHub\omnisharp-roslyn\scripts\.tools\Cake\Cake.exe
At C:\Users\danroth27\Documents\GitHub\omnisharp-roslyn\scripts\cake-bootstrap.ps1:132 char:5
+     Throw "Could not find Cake.exe at $CAKE_EXE"
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Could not find ...s\Cake\Cake.exe:String) [], RuntimeException
    + FullyQualifiedErrorId : Could not find Cake.exe at C:\Users\danroth27\Documents\GitHub\omnisharp-roslyn\scripts\.tools\Cake\Cake.exe

Looks like the cake path needs a version number:

C:\Users\danroth27\Documents\GitHub\omnisharp-roslyn [dev]> dir .\scripts\.tools\

    Directory: C:\Users\danroth27\Documents\GitHub\omnisharp-roslyn\scripts\.tools

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----        3/29/2016  10:56 AM                Addins
d-----        3/29/2016   9:30 AM                Cake.0.9.0
-a----        3/29/2016   9:30 AM            105 packages.config

@danroth27
Copy link
Author

@troydai

@hal-ler
Copy link
Contributor

hal-ler commented Apr 1, 2016

It should be installing Cake using NuGet with "-ExcludeVersion". You are also missing the NuGet executable downloaded into .tools. Can you delete the .tools folder and try again using the -Verbose command line option?

@david-driscoll
Copy link
Member

Someone else had this exact issue last week, but I couldn't replicate it. I wonder @danroth27 do you have nuget.exe in your path? Perhaps its a nuget version issue at play?

@david-driscoll
Copy link
Member

@danroth27 if you have a chance to pull down branch use-local-nuget and try building locally to ensure that this is the true fix to the problem you're seeing.

@danroth27
Copy link
Author

Here's my nugget version:

C:\Users\danroth27\Documents\GitHub\omnisharp-roslyn [dev]> nuget
NuGet Version: 3.3.0.212

After deleting .tools and running again with -Verbose:

C:\Users\danroth27\Documents\GitHub\omnisharp-roslyn [dev]> .\build.ps1 -Verbose
Preparing to run build script...
VERBOSE: Creating tools directory...
VERBOSE: Downloading packages.config...
VERBOSE: GET http://cakebuild.net/bootstrapper/packages with 0-byte payload
VERBOSE: received 105-byte response of content type text/xml; charset=utf-8
VERBOSE: Trying to find nuget.exe in PATH...
VERBOSE: Found in PATH at C:\users\danroth27\documents\nuget\NuGet.exe.
VERBOSE: Restoring tools from NuGet...
VERBOSE: Feeds used:
  C:\Users\danroth27\AppData\Local\NuGet\Cache
  C:\Users\danroth27\.nuget\packages\
  https://www.myget.org/F/omnisharp-roslyn-ci/api/v3/index.json

Restoring NuGet package Cake.0.9.0.
WARNING: Unable to find version '0.9.0' of package 'Cake'.
Could not find Cake.exe at
C:\Users\danroth27\Documents\GitHub\omnisharp-roslyn\scripts\.tools\Cake\Cake.exe
At C:\Users\danroth27\Documents\GitHub\omnisharp-roslyn\scripts\cake-bootstrap.ps1
:132 char:5
+     Throw "Could not find Cake.exe at $CAKE_EXE"
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (Could not find ...s\Cake\Cake
   .exe:String) [], RuntimeException
    + FullyQualifiedErrorId : Could not find Cake.exe at C:\Users\danroth27\Docum
   ents\GitHub\omnisharp-roslyn\scripts\.tools\Cake\Cake.exe

The use-local-nuget branch built fine for me as does the dev branch after a clean clone.

Thanks.

@david-driscoll
Copy link
Member

Awesome, going to merge the branch anyway to avoid this in the future hopefully. Thanks!

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

3 participants