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

Notification

Icon
Error

Build Failure with VS2012 Split App Project Template
BenBtg
#1 Posted : Wednesday, August 8, 2012 7:59:28 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/8/2012(UTC)
Posts: 4
Location: Bristol

Thanks: 1 times
Hi NCrunch seems to be working pretty well in VS2012 except I'm getting I'm getting this odd build error when using the Split App Project Template.
Don't get any issues with the Blank or Grid App project templates.

Below seems to be the relevant error in the log. Any idea what might be the cause?

[20:47:22.8615-Core-38] Publishing Event: [TestTreeUpdatedEvent]
[20:47:22.8615-Core-38] Event [TestTreeUpdatedEvent] is being published on thread UIThread to subscriber: TestsWindow.#=q21r7whZgilxX7XuUfkXc5VauVewKohStZ$H6eNo76yU=
[20:47:23.7096-UI-1] ERROR (Internal): System.ArgumentNullException: Value cannot be null.
Parameter name: path2
at System.IO.Path.Combine(String path1, String path2)
at nCrunch.VSAddIn.UI.TestTree.TreeNodes.ProjectNode.GetTextOutput()
at nCrunch.VSAddIn.UI.TestTree.TestsWindow.#=qtqTzW2sFK4vEwTWm5iQ3AqW3U_MAHRhL52k_c6culaY=()
at nCrunch.VSAddIn.UI.TestTree.TestsWindow.#=qzUPQ6GwlQj1xXhT1sbTaKbaN$tjBAjMJBQ4zEeHbA_fJJTy$LNA3fKTeNxD$Wm$N()
at nCrunch.VSAddIn.UI.TestTree.TestsWindow.#=qlAvqsLygQxKMhbGpl0LZkPepIW5kcbDZ2PeVdOTBj3E=(Action #=qBExoIgfU3pha3PjkNRyp3w==)

BTW thanks for a fantastic tool.
NCrunch rocks!
Remco
#2 Posted : Wednesday, August 8, 2012 9:59:07 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi Ben,

Thanks for posting! And I'm glad you're enjoying the tool!

This is an issue that appears irregularly in the 1.40b build. There is a certain combination of steps that can cause it to happen, although it likely isn't the main source of your build error. Essentially it's a failure of NCrunch to properly report the output text associated with the project you've selected in the Tests Window.

A fix has been prepared as part of the 1.41b build that is due out very soon.

Do you experience build issues consistently with the template you're using? Or does it happen only on occasion? You may be able to pull up the true error by turning up your 'Log Verbosity' in your global NCrunch configuration, then looking at the results of the build task in the Processing Queue.


Cheers,

Remco
BenBtg
#3 Posted : Wednesday, August 8, 2012 10:40:01 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/8/2012(UTC)
Posts: 4
Location: Bristol

Thanks: 1 times
I experience the issue consistently with that standard template. For what its worth I think I have narrowed down the problem file to the LayoutAwarePage.cs found in the Split App template.
If I remove that file from my project NCrunch builds it fine. Something in that file cause NCrunch to fail, although I've not been able to narrow down any further what that may be.
Remco
#4 Posted : Thursday, August 9, 2012 2:43:17 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Thanks for the analysis. Are you able to confirm the full name of the template you're using? Is it one that requires a Windows 8 installation?
BenBtg
#5 Posted : Thursday, August 9, 2012 9:47:15 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 8/8/2012(UTC)
Posts: 4
Location: Bristol

Thanks: 1 times
Yes it is the "Windows Metro style\Split App (XAML)" template.
Yes it requires Windows 8
Strangely the Grid App temaplate which also includes the LayoutAwarePage.cs appears to work fine.
Remco
#6 Posted : Thursday, August 9, 2012 10:24:09 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Thanks for letting me know. Right now NCrunch doesn't officially support Metro style applications yet (these are still a very new addition and much of the documentation is still a bit light), but I'll make a note to check this template to see if it causes any problems when the support is properly added in future.
Remco
#7 Posted : Monday, August 13, 2012 3:49:49 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
For anyone interested, 1.41b has just been released with a fix for the ArgumentNullException issue described above. While this doesn't add support for the Metro template Ben described, it should improve the error handling in this area.
1 user thanked Remco for this useful post.
BenBtg on 8/13/2012(UTC)
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.048 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download