Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Build fails, but in broken state, no tests running
kierenj
#1 Posted : Tuesday, October 24, 2017 11:10:54 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/25/2016(UTC)
Posts: 20
Location: United Kingdom

Thanks: 3 times
Was thanked: 1 time(s) in 1 post(s)
I have a solution with a .NET Core project and lots of .NET Framework projects. It's been working fine until "some point in the past couple of weeks" - no major additions, sorry I can't be more specific.

I'm on latest VS 2017 (15.4.1)

NCrunch tests status bar: "1 project is failing to build"
VS NCrunch status bar: brown circle around "1" - "1 project is failing to build, NCrunch engine is idle".

.NET Core project (RedactedAuth): ok, green tick (no tests - correct)
Unit test project: green question mark, lots of tests shown, "Build successful".
.NET class library project: "Last build successful, rebuilding", clock icon. Note: no build is in progress.

Selecting any of these 3 projects yields no details (e.g. exceptions) in the lower pane.

The "Tests" output pane shows:

[24/10/2017 12:03:09 Error] The operation failed as details for project RedactedAuth could not be loaded.

...but I'm not sure that's NCrunch related.

Let me know if I can provide any further info.
kierenj
#2 Posted : Tuesday, October 24, 2017 11:46:47 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/25/2016(UTC)
Posts: 20
Location: United Kingdom

Thanks: 3 times
Was thanked: 1 time(s) in 1 post(s)
I enabled detailed logging and found this. Not sure if it's related..

ENGINE - [12:44:26.5157-Core-26] Event [ErrorEvent:[Error:
Context: (global)
Category: Internal
Message: An item with the same key has already been added.
Details: 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.BuildEnvironment.(BuildOutput )
at nCrunch.Core.BuildManagement.BuildEnvironment.Build(SnapshotComponent snapshotComponentToBuild, IList`1 referencedComponents, GridClientId gridClientId, IList`1 customEnvironmentVariables, IPlatformBuildExtender extender)
at nCrunch.Core.Processing.BuildTaskLogic.DoProcessTaskAndReturnSuccessFlag()
at nCrunch.Core.Processing.TaskLogic.ProcessTaskAndReturnSuccessFlag()
at nCrunch.Client.Processing.LocalProcessingTask.ProcessTaskAndReturnSuccessFlag()
at nCrunch.Client.Processing.ProcessingQueue..()
]] is being processed on Core thread with subscriber: ErrorHandler.
Remco
#3 Posted : Tuesday, October 24, 2017 11:47:18 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for sharing this problem.

Probably the build for the .NET class library has hung or terminated unexpectedly. Is there any information showing for this project in the Processing Queue Window?
kierenj
#4 Posted : Tuesday, October 24, 2017 11:48:29 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/25/2016(UTC)
Posts: 20
Location: United Kingdom

Thanks: 3 times
Was thanked: 1 time(s) in 1 post(s)
Hi thanks for the response. No unfortunately the output window (umm, the bottom pane) is blank for all of the projects in question when selected
Remco
#5 Posted : Tuesday, October 24, 2017 11:49:03 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,145

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
2 users thanked Remco for this useful post.
kierenj on 10/24/2017(UTC), adamskinner on 10/27/2017(UTC)
kierenj
#6 Posted : Tuesday, October 24, 2017 11:59:13 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/25/2016(UTC)
Posts: 20
Location: United Kingdom

Thanks: 3 times
Was thanked: 1 time(s) in 1 post(s)
That works, thanks very much for the super quick response :)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.045 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download