Hi,
I'm evaluating NCrunch for a number of F# projects I am working on. I've let NCrunch work over a small solution and it builds a number of the dlls successfully but for a small number they fail to build with the following exception
[17:04:14.1933-LocalBuildTask-34] ERROR (Internal): System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at nCrunch.Core.BuildManagement.ReferencedAssemblySet.AdjustAssemblyReferencesUsingReferencesOutputFromBuild(FilePath[] assembliesUsedByBuild)
at nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, CustomEnvironmentVariable[] customEnvironmentVariables)
at nCrunch.Core.Processing.BuildTaskLogic.DoProcessTaskAndReturnSuccessFlag()
at nCrunch.Core.Processing.TaskLogic.ProcessTaskAndReturnSuccessFlag()
at nCrunch.Client.Processing.LocalProcessingTask.ProcessTaskAndReturnSuccessFlag()
at nCrunch.Client.Processing.ProcessingQueue.#=q_vyIzYQsi20eEpIpxNwCkQ==(LocalProcessingTask #=ql59clHcEc0_22CWMfMeExQ==)
It's not immediately obvious to me what might be wrong - the same projects all build fine in Visual Studio (I'm using VS2010) and via MSBuild.
Any idea how I can get more information / debug output on the underlying problem so I can try and work out how I need to tweak my project?
Thanks!
Adam
Build/Test Issues
An item with the same key has already been added
Started by sherga on 10,900 views
Remco NCrunch Developer
#5622
02 Apr 2014 20:51 UTC
Hi Adam,
Thanks for reporting this issue. It looks like the NCrunch build is reporting some kind of reference duplication in its output. Probably this is related to a library or toolset used by some of your projects.
Would you be able to submit a bug report straight after NCrunch has tried to build one of these failing projects? Hopefully the log file in the report will give us some more information.
Cheers,
Remco
Thanks for reporting this issue. It looks like the NCrunch build is reporting some kind of reference duplication in its output. Probably this is related to a library or toolset used by some of your projects.
Would you be able to submit a bug report straight after NCrunch has tried to build one of these failing projects? Hopefully the log file in the report will give us some more information.
Cheers,
Remco
Hi Remco,
Thanks for the quick reply - I've just restarted VS, let NCrunch start processing my solution and then as soon as the first project has errored in this way I've submitted a bug report via the NCrunch menu. Hopefully this will provide some more information about what is wrong.
Cheers
Adam
Thanks for the quick reply - I've just restarted VS, let NCrunch start processing my solution and then as soon as the first project has errored in this way I've submitted a bug report via the NCrunch menu. Hopefully this will provide some more information about what is wrong.
Cheers
Adam
Remco NCrunch Developer
#5628
03 Apr 2014 09:10 UTC
Thanks Adam. Unfortunately the log didn't show which reference was the direct cause of the problem, but I think this is an issue best solved by making NCrunch more resilient to this kind of build behaviour.
I'd like to provide you with a fixed build. If all goes well, hopefully I can get this to you tomorrow.
I'd like to provide you with a fixed build. If all goes well, hopefully I can get this to you tomorrow.
Sounds good - very happy to try out an experimental build when you have one.
Cheers
Cheers
Remco NCrunch Developer
#5634
04 Apr 2014 03:01 UTC
Hi Adam,
Give this build a try and let me know how it goes:
http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.12.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.12.zip
http://downloads.ncrunch.net/NCrunch_VS2008_2.6.0.12.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.12.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.12.zip
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.12.msi
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.12.zip
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.12.msi
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.12.zip
This is an early build of 2.6 .. it's passed all the regression tests, so I hope it's stable - please let me know if it isn't :)
Give this build a try and let me know how it goes:
http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.12.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_2.6.0.12.zip
http://downloads.ncrunch.net/NCrunch_VS2008_2.6.0.12.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.12.msi
http://downloads.ncrunch.net/NCrunch_VS2010_2.6.0.12.zip
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.12.msi
http://downloads.ncrunch.net/NCrunch_VS2012_2.6.0.12.zip
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.12.msi
http://downloads.ncrunch.net/NCrunch_VS2013_2.6.0.12.zip
This is an early build of 2.6 .. it's passed all the regression tests, so I hope it's stable - please let me know if it isn't :)
Hi Remco,
Unfortunately I can't access any of the links - I get 'Access Denied' (I've tried from a few environments / platform / work & home and it's the same result). I've logged in/out of the NCrunch site but it made no difference.
Cheers
Adam
Unfortunately I can't access any of the links - I get 'Access Denied' (I've tried from a few environments / platform / work & home and it's the same result). I've logged in/out of the NCrunch site but it made no difference.
Cheers
Adam
Remco NCrunch Developer
#5636
04 Apr 2014 07:45 UTC
Sorry, this was my mistake. I forgot to make the links public. Try again now.
Hi - I've downloaded and installed and my solution is now successfully 'crunched' with no errors (or changes needed on my side) - initial thoughts are very positive. Thank you!
Remco NCrunch Developer
#5638
04 Apr 2014 08:58 UTC
Excellent! I'm glad this did the trick. Thanks for the feedback :)
Post a reply
Log in to reply.