Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 21:18
    Build #7233 passed
  • 21:11
    Build #2989 passed
  • 20:59
    devlead closed #3721
  • 20:59
    devlead commented #3721
  • 20:58
    devlead commented #3954
  • 20:56
    Build #1212 passed
  • 20:55
    devlead closed #2953
  • 20:55

    devlead on develop

    (GH-2953) Adds string Target t… Merge pull request #3954 from F… (compare)

  • 20:55
    devlead closed #3954
  • 20:38
    Build #7232 passed
  • 20:33
    devlead auto_merge_enabled #3954
  • 20:31
    devlead edited #3954
  • 20:30
    devlead milestoned #2953
  • 20:30
    devlead demilestoned #2953
  • 20:30
    devlead unlabeled #2953
  • 20:30
    devlead unlabeled #2953
  • 20:30
    devlead unlabeled #2953
  • 20:30
    devlead unlabeled #2953
  • 20:30
    devlead synchronize #3954
Brian M. Carr
@delphyne
Good morning. I'm trying to figure out if there is a way to determine which architecture cake is running under. The problem i'm trying to solve is the generation of ProtocolBuffer and gRPC classes. The compilers are not .NET compatible, so i need to be able to select the "correct" tool at runtime. Does anyone have any tips on this?
Maksym Diabin
@amdmax
hey guys, qq: vsts, attempting to upload to an s3 bucket. While running locally it works just fine. While running on VSTS machine (agent) having an issue with: "Resolving assembly log4net" that eventually becomes this: Process is terminated due to StackOverflowException.
has anyone experienced anything like that?
Patrik Svensson
@patriksvensson
@delphyne Architecture as in x86/x64?
Martin Björkström
@mholo65
@amdmax using Cake 0.27.0? We have seen similar issues with other addins as well. Will investigate. Issue here cake-build/cake#2132
Gary Ewan Park
@gep13
@/all We will soon start preparing for the 0.27.1 release of Cake. So this is a friendly reminder to pin your Cake version.
cakebot
@cake-build-bot
@/all Version 0.27.1 of the Cake has just been released, https://www.nuget.org/packages/Cake.
Gary Ewan Park
@gep13
@amdmax we have just released 0.27.1 of Cake, which we think will fix the issue that you are seeing.
Can you please take that version of Cake for a spin, and let us know if you are still seeing issues?
Joseph Musser
@jnm2

Can I start an issue asking for the ability to do this without a NullReferenceException?

new FooToolSettings
{
    EnvironmentVariables = { ["FOO"] = "foo" }
}

Rather than this?

new FooToolSettings
{
    EnvironmentVariables = new Dictionary<string, string> { ["FOO"] = "foo" }
}
And the same for almost all of Cake's tool settings collection properties?
They need to lazily initialize to empty collections if they are null when read.
Mattias Karlsson
@devlead
@jnm2 yes issue before PR is preferred. But I think it sounds like a reasonable change. Could potentially be a breaking change for anyone/thing expecting null today using it i.e. to coalesce defaults, indicate not set, etc.
Maksym Diabin
@amdmax
@gep13 thanks, the issue has been resolved! 0.27.1 works like a charm!
Gary Ewan Park
@gep13
@amdmax that is great news! Thanks for following up with that! Apologies for the problem in the first place!
Asbjørn Ulsberg
@asbjornu
Feedback and thoughts welcome! :) https://twitter.com/asbjornu/status/988377154781106176
Gary Ewan Park
@gep13
That's a great video! Thanks for sharing it!
Would you like to add a PR to the resources section of the site to link to it?
norgie
@norgie
@asbjornu
Nice to see more people using the same setup as we do. :-)
Jonathan Dick
@Redth
Hmmm
Assembly 'Cake.Json' with identity 'Cake.Json, Version=3.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Newtonsoft.Json, Version=11.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' which has a higher version than referenced assembly 'Newtonsoft.Json' with identity 'Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed’
i’m not even sure where that’s coming from
ohhh it looks like cake itself is loading 9.0.0
i guess i’ll need to mirror that dependency version for now
Asbjørn Ulsberg
@asbjornu
@gep13: Sure, where do I find the resources section?
Gary Ewan Park
@gep13
@Redth if you could for now, that would be great.
Gary Ewan Park
@gep13
We have spoken about removing the dependency from Cake, but there are issues in doing that /cc @mholo65
@asbjornu yip, that's the page
thank you!
Asbjørn Ulsberg
@asbjornu
:thumbsup:
Jonathan Dick
@Redth
ok cake.json 3.0.1 is out which is cake 0.26 compatible
Gary Ewan Park
@gep13
@Redth nice one! Thank you!
Gary Ewan Park
@gep13
@redth have you got it on your list to update your Url Module as well? :-D
Mattias Karlsson
@devlead
@Redth maybe works ootb with 0.27.1, @daveaglick added some code to sort that assembly binding. Json .NET is indirect dependency based on the NuGet client.
Jonathan Dick
@Redth
this was on 27.1 :/
Mattias Karlsson
@devlead
Ok, interesting, maybe we need more recursion @daveaglick 😎
Dave Glick
@daveaglick
Interesting - @Redth is that being output as a warning or is it an error and failing? Or is this output from building the addin? The changes in 27.1 should at least allow the addin to bind at runtime to whatever version of the assembly was loaded into the AppDomain by Cake itself (previously it would have crashed in this case).
Jonathan Dick
@Redth
i was running a script that used my addin which referenced newtsonsoft.json 11.0.2
and the script failed
saying that 9.0.0.0 was already loaded
Dave Glick
@daveaglick
:frown: Hrm. If you get a chance (and can still reproduce) would you mind sending me the full verbose output?
Jonathan Dick
@Redth
i can try and repro in a bit here.. i delisted the nuget that caused it but i can still access it to make a repro
Dave Glick
@daveaglick
Thanks!
Dave Glick
@daveaglick
Oh, wow - so that's failing even before runtime during the compliation stage. Yeah, the changes I made in 27.x aren't going to help there, they only do what's essentially a binding redirect on the fly at runtime to whatever's already been loaded.
Martin Björkström
@mholo65
Hmmm.. @daveaglick didn't we ship 11.0.2 with Cake 0.27.x?
For full framework, a simple binding redirect between versions 0.0.0.0 - 255.255.255.255 in the app.config should be sufficient.
Dave Glick
@daveaglick
We did, but I suspect the ScriptRunnermust be loading and adding a MetadataReference to 9.0.0, perhaps because some other addin or indirect dependency references it
@Redth Is this the only addin or tool being used in this script?
Jonathan Dick
@Redth
that gist IS the script