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

Notification

Icon
Error

No coverage markers after upgrading
Balfa
#1 Posted : Wednesday, August 15, 2012 7:44:50 PM(UTC)
Rank: Member

Groups: Registered
Joined: 12/7/2011(UTC)
Posts: 14
Location: Dallas

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
I just upgraded from NCrunch_VS2010_1.39.15b to NCrunch_VS2010_1.41.0.50 and now I have no more coverage markers anywhere in my code. Not in the test classes themselves, not in the code being tested, nowhere!
Everything still works as before. All my tests show in the NCrunch Tests window, and the jobs come and go in the NCrunch Processing Queue when I make code changes. I just don't get the dots :(

Also, NCrunch no longer shows up in the VS2010 extension manager.

I uninstalled before installing this. Also, I briefly installed 1.40.24b, because 1.41 came out the same day I decided to upgrade to that. But I didn't really get a chance to try 1.40.
Did I do something bad? :(
Balfa
#2 Posted : Wednesday, August 15, 2012 8:27:03 PM(UTC)
Rank: Member

Groups: Registered
Joined: 12/7/2011(UTC)
Posts: 14
Location: Dallas

Thanks: 2 times
Was thanked: 2 time(s) in 2 post(s)
Blimey, I found this:
https://www.ncrunch.net/...g_missing-code-coverage

After following those instructions -- replacing "2012" with "2010" (and "11.0" with "10.0" ;) ) -- it's fixed!

Hooray!
Remco
#3 Posted : Wednesday, August 15, 2012 9:34:21 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi, thanks for posting!

Yes, this does sound like the same problem as described for the 2012 RC (Adornment layers messed up).

Glad you managed to fix it!


Cheers,

Remco
liddellj
#4 Posted : Tuesday, December 11, 2012 4:11:25 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/11/2012(UTC)
Posts: 5
Location: United Kingdom

Thanks: 1 times
Hi, I am also seeing the above issue - no markers are shown, but otherwise NCrunch is running, however it does not appear in the Visual Studio Extension Manager. All the BETA versions worked fine. It's only since upgrading to a release version that the issue has appeared. However - the link in the post above to a solution no longer appears to be valid.

I'm running VS 2010 Pro, and NCrunch 1.43.23. If you need any more info please let me know.
Remco
#5 Posted : Tuesday, December 11, 2012 7:56:37 PM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi, thanks for reporting this problem! Would you be able to submit a bug report straight after enabling NCrunch on a solution? I'll take a look at the log file and help you troubleshoot from there.


Cheers,

Remco
liddellj
#6 Posted : Wednesday, December 12, 2012 8:40:52 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/11/2012(UTC)
Posts: 5
Location: United Kingdom

Thanks: 1 times
Done. I have given the bug report the same title as this thread and referenced this URL, so you should be able to pick it out. I am also running the following extensions, in case it is relevant:

Chutzpah - A JavaScript Test Runner
Mindscape Web Workbench
NuGet Package Manager
PowerCommands for Visual Studio 2010
SlowCheetah - XML Transforms
SpecFlow

I am running Windows 7 64 Bit.
Remco
#7 Posted : Wednesday, December 12, 2012 8:56:25 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Hi, thanks for sending through the log. Unfortunately, it was captured a little too late in the process, or this is a very large solution (the initialisation went off the top of the log). If you can perhaps send through another smaller capture on a small solution, that would be great.

Meanwhile, I'm wondering if you might be able to try the following:

1. Uninstall NCrunch entirely from your system (all versions for all versions of Visual Studio)
2. Ensure that the directory '\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Extensions\Remco Software' and all its contents are completely deleted.
3. Run the following command: \Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe /setup
4. Wait for devenv.exe to finish its work (kill it after 15 minutes if it doesn't stop)
5. Load up Visual Studio 2010 and open any solution
6. Close down Visual Studio
7. Install the latest version of NCrunch
8. Run the following command again: \Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe /setup
9. Wait for devenv.exe to finish its work (kill it after 15 minutes if it doesn't stop)

... Then load up VS2010 again to see if the problem is fixed.

Previously where this issue has surfaced, it's been a Visual Studio configuration problem where the IDE somehow confuses the adornment layers between extensions. Performing a completely clean reinstall of NCrunch should reset the adornment layers and will usually solve the problem. I'm keen to hear if this does the trick!

Cheers,

Remco
liddellj
#8 Posted : Wednesday, December 12, 2012 9:25:37 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/11/2012(UTC)
Posts: 5
Location: United Kingdom

Thanks: 1 times
I tried following the steps above but it hasn't fixed the issue. NCrunch is still not listed as an extension (although it's obviously running), and there are no markers. I tried submitting a second bug report, almost immediately after enabling NCrunch. It's not a large solution.

Let me know if that report contains what you need.
Remco
#9 Posted : Wednesday, December 12, 2012 9:43:47 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Thanks for the fresh report. The report confirms that this is an adornment layer problem, which means that its definitely a Visual Studio caching/configuration issue.

Considering that a reinstall didn't seem to reset whatever is being cached by VS, I think the next thing to try may be to load VS under a different mode to see if this has any effect. Try loading VS2010 using the following command line:

\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe /RootSuffix Exp

This problem has been reported a few times over the last couple of years. In each situation, it was resolved via clean reinstallation of NCrunch. Sometimes multiple reinstalls were required. The true underlying cause of the issue still isn't known to me, although I have seen it also reported for other Visual Studio plugins that rely on the adornment layers.
liddellj
#10 Posted : Wednesday, December 12, 2012 9:57:38 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/11/2012(UTC)
Posts: 5
Location: United Kingdom

Thanks: 1 times
Hmm. That seems to fix it (listed as an extension, markers visible). However - it's not loaded any of my other preferences or plugins, so not really a permanent solution.

I'll try uninstalling it again and maybe rebooting before re-installing. Will let you know how I get on.

liddellj
#11 Posted : Wednesday, December 12, 2012 10:13:26 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 12/11/2012(UTC)
Posts: 5
Location: United Kingdom

Thanks: 1 times
Ok, just followed the uninstall-reinstall steps again with a reboot in-between and it's working!

To be honest, I have a feeling I didn't properly read your steps the first time and may have missed a step - so not sure if the reboot actually mattered.

Thanks for your help!
Remco
#12 Posted : Wednesday, December 12, 2012 10:50:17 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1286 time(s) in 1193 post(s)
Great to hear! Visual Studio can be a strange beast when it comes to plugin caching. These sorts of problems can always be a bit fiddly, but I'm glad we managed to sort it out :)

Cheers,

Remco
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.087 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download