Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 04:23
    Build #457 passed
  • Oct 21 18:44
    OhYash commented #1561
  • Oct 21 18:43
    OhYash commented #1561
  • Oct 21 16:04
    Build #5504 passed
  • Oct 21 15:56
    Build #762 passed
  • Oct 21 15:56
    Build #2624 passed
  • Oct 21 15:44

    devlead on develop

    (build) Travis CI use Ubuntu bi… (compare)

  • Oct 21 12:15
    Build #2039 passed
  • Oct 21 11:31
    terrance00 starred cake-build/cake
  • Oct 20 21:03
    ushenkodmitry starred cake-build/cake
  • Oct 20 14:55
    codylruff starred cake-build/cake
  • Oct 19 13:19
    mvestergaard commented #2253
  • Oct 19 13:16
    devlead commented #2253
  • Oct 19 13:04
    mvestergaard commented #2253
  • Oct 19 12:58
    devlead commented #2253
  • Oct 19 12:29
    mvestergaard commented #2253
  • Oct 19 12:26
    mvestergaard commented #2253
  • Oct 19 12:24
    devlead commented #2253
  • Oct 19 11:59
    mvestergaard commented #2253
Jonathan Dick
@Redth
hmmm... it would be super slick if there was a BuildSystem.SourceVersion property that tried to get the right info on its own instead of having to know what build system it's on to get it
and SourceBranch for that matter
Gary Ewan Park
@gep13
@Redth we are starting to do that in Cake.Recipe
Or at least, something similar
Jonathan Dick
@Redth
cake.recipe is a no go here unfortunately
Gary Ewan Park
@gep13
@Redth you could adapt what is currently being done there though
Geert van Horrik
@GeertvanHorrik
GitHub integration. I was just thinking about interacting with the github status via the github status API. I couldn't find anything on the documentation website (reference / etc). Is there no integration yet with the GH status API in Cake build? https://developer.github.com/v3/repos/statuses/
The more I use cake, the more I see how powerful it is. It allows me to do devops without the clicking. "Just" create a generic shared cake build script, and you can patch all projects at once instead of having to click through hundreds of devops pipelines (kindof defeats the purpose), so really happy with Cake :)
Gary Ewan Park
@gep13
@GeertvanHorrik glad to hear that you are liking using it!
Not sure I follow on what you are trying to achieve though with the status API?
Are you saying you want to hook up the status checks through a Cake script?
Geert van Horrik
@GeertvanHorrik
so whenever my cakebuild script status (and IsLocalBuild == false), I want to set status to pending
I basically want the build server just to be responsible for running cake scripts (per stage) and managing the secrets, the rest will be put into the cake scripts
Gary Ewan Park
@gep13
Oh, I see what you mean...
Hmm, no, I don't think there are any addin's that can help with that side of things... yet :-)
Geert van Horrik
@GeertvanHorrik
Yes, next thing I wnated to do / ask: interested in creating one? I think i'll do something similar to the Windows store submission one I did
it's been a while since I did it, so might need to refresh my brains, but happy to work on that
Gary Ewan Park
@gep13
Yes, I think that there would be interest in this, yes. I personally am not in a position to help out, but I could create the repository, if you wanted to get started with it.
Geert van Horrik
@GeertvanHorrik
Yes, if you can create the repo, then I'll do the rest
Gary Ewan Park
@gep13
What name would you want it to have? If you let me know, I can get it created in the Cake-Contrib Organisation, and I can give you admin access to it.
Geert van Horrik
@GeertvanHorrik
I am thinking of Cake.GitHub (we can add much more in it, for now just status, but maybe other people want to contribute creating pull requests, or syncing, or ...)
in the end people can put the whole GH public api in there (which just runs octokit under the hood)
Gary Ewan Park
@gep13
Before I do that, I can get you to do a little investigation for me?
Seems like there are few things out there that "might" already do some of what you are after
Would be good to avoid duplication
Geert van Horrik
@GeertvanHorrik
Will definitely check them out, I always use the cake website as my single source of truth
Gary Ewan Park
@gep13
@GeertvanHorrik normally I do as well, but I had at the back of my head that there were some addins related to GitHub already, so I went searching and turned those up.
Kubik2000
@Kubik2000

hey please does anyone have a suggestion
`
Task("Frontend-Restore")
.IsDependentOn("Clean")
.Does(() =>
{
var NpmSettings = new NpmInstallSettings();
NpmSettings.Global = false;
NpmSettings.Production = false;
NpmSettings.LogLevel = NpmLogLevel.Error;
NpmSettings.WorkingDirectory = buildFrontendPath;
NpmInstall(NpmSettings);
});

Task("Frontend-Build")
.IsDependentOn("Frontend-Restore")
.Does(() =>
{
var NpmRunScriptSettings = new NpmRunScriptSettings();
NpmRunScriptSettings.ScriptName = "build";
NpmRunScriptSettings.WorkingDirectory = buildFrontendPath;
NpmRunScriptSettings.LogLevel = NpmLogLevel.Error;
NpmRunScript(NpmRunScriptSettings);
});
`
it is logged as follows
<s> [webpack.Progress] 0% compiling
<s> [webpack.Progress] 10% building 0/0 modules 0 active
all in red making teamcity think that the build failed
which it didn't do you have som idea how to force this to log data not as an error

Anon
@makotech222
Hi guys, first time here. Have a question regarding intellisense in VSCode. I have the latest Extensions installed in the latest VSCode install, for reference. The intellisense seems to fail due to my folder structure. Currently, my project has a root directory, with build tools in it, as well as an src folder. The .sln file in in the src folder, so it is one level down from the root directory. In this case, it looks like Omnisharp starts throwing tons of exceptions when trying to load intellisense for my cake file. If I move the sln up to root directory, it works. Is there any way to get intellisense to work without moving my sln file?
During the error case, the omnisharp console correctly loads the cake files, as well as the cake bakery scripts.
The exceptions look ike this
[fail]: OmniSharp.Roslyn.CSharp.Services.Diagnostics.CSharpDiagnosticWorkerWithAnalyzers Analysis of project (ProjectId, #807bd3dc-6295-4d02-811a-f638775262ba - aaf74495-cdea-4e92-8da6-58262bf9da71) failed, underlaying error: System.ArgumentException: Submission can only include script code. Parameter name: trees[1] at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.AddSyntaxTrees(IEnumerable1 trees)
at Microsoft.CodeAnalysis.SolutionState.CompilationTracker.<BuildDeclarationCompilationFromScratchAsync>d25.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.SolutionState.CompilationTracker.<BuildCompilationInfoFromScratchAsync>d
24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.SolutionState.CompilationTracker.<GetOrBuildCompilationInfoAsync>d22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.CodeAnalysis.SolutionState.CompilationTracker.<GetCompilationSlowAsync>d
19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at OmniSharp.Roslyn.CSharp.Services.Diagnostics.CSharpDiagnosticWorkerWithAnalyzers.<AnalyzeProject>d__18.MoveNext() in D:\a\1\s\src\OmniSharp.Roslyn.CSharp\Workers\Diagnostics\CSharpDiagnosticWorkerWithAnalyzers.cs:line 200`
Preferably, I'd like to just open a cake file by itself, without relying on loading the entire folder in vscode
Geert van Horrik
@GeertvanHorrik
@gep13 took a quick look at all of them, they seem to be very minimalistic / abandoned.
Anon
@makotech222
Any way to add a prefix to Zip() operations? I'd like to zip up my files and put them all into a directory in the zip
I can kinda get it to work by copying files to a directory structure first, but its pretty messy
Martin Björkström
@mholo65

@makotech222 in VSCode, try clicking the OmniSharp icon and select Cake project system. OmniSharp will search for .sln and use that as workspace root, this will make it miss your Cake files.

The exception you are seeing, seems however related to Analyzers, which is weird that you don’t see that if you move your .sln to root.

Gary Ewan Park
@gep13
@GeertvanHorrik I have created a new repository here: https://github.com/cake-contrib/Cake.Github and given you permissions to administer it. I have also created a new project in AppVeyor for you as well. Let me know if there is anything else that you need.
Geert van Horrik
@GeertvanHorrik
Thanks! Will try to work on it, can't give an ETA though :)
Gary Ewan Park
@gep13
@GeertvanHorrik understood. Let me know if you need anything else.
Anon
@makotech222
@mholo65 Yeah, the cake project is already selected. That's where it's throwing the errors. Moving the sln file fixes it though.
Martin Björkström
@mholo65

@makotech222 and if you disable analyzers?

Add this to omnisharp.json

{
  "RoslynExtensionsOptions": {
    "EnableAnalyzersSupport": false
  }
}
Anon
@makotech222
Hmm slightly different exception
[2019-10-13 16:50:22.936] [renderer1] [error] Problem invoking 'GetCodeActions' on OmniSharp server: "System.ArgumentException: Submission can only include script code.\r\nParameter name: trees[1]\r\n at Microsoft.CodeAnalysis.CSharp.CSharpCompilation.AddSyntaxTrees(IEnumerable1 trees)\r\n at Microsoft.CodeAnalysis.SolutionState.CompilationTracker.<BuildDeclarationCompilationFromScratchAsync>d__25.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n`
ending with
End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at OmniSharp.Endpoint.EndpointHandler2.<Process>d16.MoveNext() in D:\a\1\s\src\OmniSharp.Host\Endpoint\EndpointHandler.cs:line 131\r\n--- End of stack trace from previous location where exception was thrown ---\r\n at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n at OmniSharp.Stdio.Host.<HandleRequest>d13.MoveNext() in D:\a\1\s\src\OmniSharp.Stdio\Host.cs:line 215"
`
Magnus Lindhe
@mgnslndh
Hi! I'm using Cake.ReportGenerator and I want to force the use of the net47 version of the executable. It is possible by setting the ToolPath like this ToolPath = "./tools/ReportGenerator.4.3.1/tools/net47/reportgenerator.exe" but I would rather not have to specify the version number. Is it possible to resolve the path somehow?
Kim J. Nordmo
@AdmiringWorm
@mgnslndh use the tool resolution and pass in the subdirectory + executable name.
ie:
ToolPath = Context.Tool.Resolve("net47/reportgenerator.exe")
Magnus Lindhe
@mgnslndh
Thanks @AdmiringWorm! Works like a charm!