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

Notification

Icon
Error

NCrunch not responding at all
noctovis
#1 Posted : Wednesday, August 8, 2012 6:54:45 AM(UTC)
Rank: Newbie

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

Hi everyone,

I've installed NCrunch a while ago and I'm experiencing problems with the plugin all the time.
When I fire up VS2010, NCrunch just doesn't respond.

The NCrunch menu shows:
- Disable NCrunch (meaning NCrunch should be enabled)
- The other items
And none of the items react when I click them.

The indicators are not showing and the NCrunch icon that should be next to the Resharper icon does not show.
The tests aren't running, NCrunch is just not doing anything at all.

I've tried uninstalling and reinstalling, I also ran VS with log and everything shows just fine:
- the plugin loads without errors
- In the registry it's not marked for deleting by the extension manager
- The extension manager also shows is as enabled...

I'm running VS2010, Resharper and a client-specific plugin. I don't think it could be connected to that since I have colleagues here with the same setup running NCrunch without experiencing these problems. I love this tool and would really like it just to work, but it just doesn't happen.

Sometimes (not reproducable consistently), NCrunch starts working again after I:
- Close VS
- Delete the nCrunch configuration file
- Restart VS
=> Then I get the configuration wizard again and everything works just fine, up until the point I shut down VS.
Next time I fire up VS it's the same problem all over.

Anybody has a clue of what I can do?
I'd really appreciate any help!

Thanks,
Laila
Remco
#2 Posted : Wednesday, August 8, 2012 8:39:28 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 Laila,

Thanks for posting!

From what you've described, it seems as though NCrunch is experiencing an internal problem during its initialisation.

Would you be able to submit a bug report (using the NCrunch menu) shortly after starting Visual Studio?

Also, have you noticed this issue appearing for all solutions or just one in particular?


Thanks!

Remco
noctovis
#3 Posted : Wednesday, August 8, 2012 9:14:08 AM(UTC)
Rank: Newbie

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

Hello Remco,

I'd love to submit that bug report, but I think something blocks it here on our network, I saved it though (to a zip), is there an e-mail I can use to send it to you?

Your question about the different solutions:
Well, in a different solution, the menu items are responding, but the ncrunch icon is still missing and so are the indicators.
So the menu works in other solutions, but ncrunch still doesn't do anything.

What to do?

Thanks! Laila
Remco
#4 Posted : Wednesday, August 8, 2012 10:14:57 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 Laila -

I've just PMed you an email address to send the bug report to. I'll take a look at the report and will let you know what's happening.


Thanks!

Remco
Remco
#5 Posted : Wednesday, August 8, 2012 10:51:21 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 Laila -

Thanks for sending through the bug report. I've taken a look, and there doesn't appear to be any exceptions thrown during your initialisation of Visual Studio and the opening of the solution. This is somewhat unfortunate as it means the problem will be a bit tougher to analyse.

The log indicates that NCrunch hasn't yet started any initialisation. You mentioned earlier that only the Disable option was showing in the top menu (instead of Enable). Was this the case at the time you took the bug report? I wonder if this could be something misfiring in VS that is causing the buttons to fall out of alignment with the state of NCrunch.


Cheers,

Remco
noctovis
#6 Posted : Wednesday, August 8, 2012 11:52:24 AM(UTC)
Rank: Newbie

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

Well you are right, when I submitted the bug report, the right menu items were available and clickable.
So that did seem solution related...

Is there anyway I can cleanup any settings per solution, to see if something is corrupt there?

Thanks!
Laila
Remco
#7 Posted : Wednesday, August 8, 2012 9:46:25 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)
The easiest way to clear out the solution settings is just to delete the following two files:

SolutionName.ncrunchsolution (Will be next to your solution sln file)
SolutionName.ncrunchsolution.user (Will be next to your solution sln file)

Also ensure you delete the _NCrunch_SolutionName directory next to your sln file, as this contains cache information that is solution-specific.

Sometimes it can also be useful to delete the settings for the individual projects. Next to each .proj file you'll find a file called 'ProjectName.ncrunchproject'. You can probably find these quickly using the search features in windows explorer.

I hope this does the trick!


Cheers,

Remco
noctovis
#8 Posted : Friday, August 10, 2012 7:08:12 AM(UTC)
Rank: Newbie

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

Hi Remco,

Well it did the trick. For yesterday. But after closing down VS yesterday evening, and firing VS up this morning, everything is back how it was. The menu items aren't working, NCrunch is not reacting at all :(
noctovis
#9 Posted : Friday, August 10, 2012 7:09:14 AM(UTC)
Rank: Newbie

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

Ow, just closed down VS again, started it again and now everything is working fine.
It seems like the it doesn't load the first time, but does load the next time... Weird!
Remco
#10 Posted : Friday, August 10, 2012 10:18:38 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)
I wonder if this may be a race condition of some kind. If it happens to you again, would you mind grabbing another bug report and sending it through? Thanks!
noctovis
#11 Posted : Tuesday, August 14, 2012 9:01:44 AM(UTC)
Rank: Newbie

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

What seems to be helping, is deleting the global configuration for ncrunch, and then refiring visual studio until I get the NCrunch initialization wizard.
Sometimes it takes restarting VS 3 or 4 times, sometimes it works from the first time (after deleting the file).

If the file is not deleted, NCrunch won't react at all, which means I cant send you the bug report since the menu item does not respond :(

Bit hard to debug isn't it :)
noctovis
#12 Posted : Tuesday, August 14, 2012 9:02:21 AM(UTC)
Rank: Newbie

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

I'm running the latest release by the way!
Remco
#13 Posted : Tuesday, August 14, 2012 11:19:55 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)
Do you mind if I throw a bunch of questions at you? This will help me to better understand what is going on:

- When you say you delete the global configuration for NCrunch, do you mean the globalconfig.crunch.xml file under your roaming profile? Are there any other files that seem to make a difference in this behaviour?
- When the issue appears, are there any items in the NCrunch menu that seem to give a response of any kind? If you look under the 'Set engine mode' submenu, do you see any engine modes listed?
- When the issue appears, does it only appear for the solution you use normally? Or does it happen for all of them? (i.e. even small new empty projects?)
- Does removing the 3rd party client VS plugin make any difference?

Thanks!

Remco
noctovis
#14 Posted : Tuesday, August 14, 2012 11:46:45 AM(UTC)
Rank: Newbie

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

No problem at all:
1) Yeps, that's the file I mean
2) When the issue appears, none of the items work, the set engine mode does not show any items
3) I tend to work in the same solution now, but I will test that and let you know what happens
4) Removing the third party client plugin is not helping either :(

Hope we can pinpoint it!
Laila
Remco
#15 Posted : Tuesday, August 14, 2012 10:40:41 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 Laila,

I've done a thorough code review to try and narrow down where the exception could be happening based on the information you've provided me.

At the moment all is pointing towards the VS integration code that executes during NCrunch's initialisation. This means that even if we were to establish the exception being thrown in your environment (which would be difficult to do), there is a very strong likelihood that the exception is being caused by abnormal behaviour within the IDE itself, which is something NCrunch has little control over.

As I'm sure you're aware, Visual Studio is a complex beast with many moving parts. Often VS configuration can be corrupted by plugins that have been uninstalled or reinstalled, and it can be very difficult to figure out why the IDE is behaving strangely.

Considering the amount of time it takes to do and the number of unanswered questions, I don't like suggesting this as an option .. but reinstalling Visual Studio 2010 may very well resolve this problem. At the moment I'm not sure if I can offer any other ideas..
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.073 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download