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

Notification

Icon
Error

NCrunch configuration wizards gets hidden under VS window
dariusdamalakas
#1 Posted : Wednesday, September 28, 2016 11:06:17 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/10/2013(UTC)
Posts: 42
Location: Lithuania

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
Hi, I used to be getting this strange behaviour long time ago, but this week i have to constantly switch from one VS solution to the other (we've got 40+ microservices, and i need to make minor changes to most of them).

Issue and rough steps to reproduce:
When opening VS for a new project which has no NCrunch setting files, NCrunch automatically shows configuration wizard screen. That is usually fine, but sometimes if you click away on other windows, the configuration wizard gets hidden. Now, sine it is a modal window, you literally can not click anywhere else in VS - editor, solution folder, menus, nothing works. The only thing that is active is that window, which is hidden.
Conf window does not appear in taskbar, and i've tried getting to it using alt tab, and then clicking ctrl space and 'm' to move it, really no luck.
I cant even close VS - have to kill it with end task.

The only safe way to guard against this is to open .sln file and wait for config dialog to appear. Surely, not always i have the patience to wait as I like to do other things whilst VS is working. Happens both on dual monitor, and single monitor setups

Solution ideas:
a) make this window appear in taskbar
b) Do not show config window for new projects automatically
c) use default settings for new projects?

anything is fine. It's quite annoying. I would have not reported this, but this is getting in my way now, happened twice today already, and once yesterday.

Thnks

p.s. given that i only need to make a small change and i stull run NCrunch means i can not live without it :) great job, and awesome tool!
Remco
#2 Posted : Thursday, September 29, 2016 2:03:58 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1287 time(s) in 1194 post(s)
Hi, thanks for sharing this problem!

What you've described is defective behaviour. Normally, the modal should stay on top of VS at all times. If you select VS or click any window in VS, the modal should be brought to the front. The modal should also show on the taskbar.

Can you confirm which version of Windows you're running? Also, do you have any other significant VS extensions installed?
dariusdamalakas
#3 Posted : Thursday, September 29, 2016 2:08:03 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/10/2013(UTC)
Posts: 42
Location: Lithuania

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
Windows 10, NCrunch and Resharper, no other extensions
Remco
#4 Posted : Thursday, September 29, 2016 2:55:39 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1287 time(s) in 1194 post(s)
I'm having trouble reproducing this problem. Are you running on VS2015?

Do you have any other software on your machine that uses modal dialogs? If so, can you make it behave the same way the NCrunch modal dialogs are behaving for you? I'm wondering if this might be some kind of system-level problem.

Edit: It would also be very interesting to know if the NCrunch 'About' modal dialog has the same behaviour. This dialog has a slight variation in how the dialog is created.
dariusdamalakas
#5 Posted : Thursday, September 29, 2016 8:56:21 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/10/2013(UTC)
Posts: 42
Location: Lithuania

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
Sure, i can help reproducing this, but I need your help as well expalining when NCrunch configuration wizard is being shown when I open solution. I have removed all *ncrunch* files from the repo, and reopenend the project, but VS did not open the configuration wizard, instead, NCrunch was left as disabled. Can you explain on what conditiions this is triggered?
Remco
#6 Posted : Thursday, September 29, 2016 9:58:13 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1287 time(s) in 1194 post(s)
Make sure you've removed the .ncrunchsolution file and the .ncrunchsolution.user file. With these gone, NCrunch should show the wizard automatically when you enable it on the solution.

You can also trigger the wizard manually through the NCrunch menu.
dariusdamalakas
#7 Posted : Friday, September 30, 2016 7:22:47 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/10/2013(UTC)
Posts: 42
Location: Lithuania

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
No, that does not work. I have removed all "*ncrunch*" files from the repository. Opening solution in VisualStudio does not trigger the wizard dialog. Does NCrunch have a temp folder where it might cache its settings?

Also, triggering wizzard manually is pointless - it works as expected. The issue can be reproduced like this:

a) Start visual studio
b) Open solution file
c) before ncrunch wizard opens, navigate to another previously opened VS instance.
d) make sure that ncrunch wizard definitely opens.
e) In some cases you dont see wizard window at all, as it is completely hidden by other windows, in some cases you might see the wizard behind some VS toolbox window, especially if you use dual monitor setup. In that case, you can click on wizard at will be brought to front. But if you dont see it - then basta, VS won't respond to any clicks because of the wizard window, and the only way to proceed is to kill the VS process and restart. In second case wizard is not being shown automatically. This is in fact what I am seeing now - deleting nrunch solution files does not trigger nrunch config window.


NCrunch 2.26.0.1
Remco
#8 Posted : Sunday, October 2, 2016 6:03:34 AM(UTC)
Rank: NCrunch Developer

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

Thanks: 957 times
Was thanked: 1287 time(s) in 1194 post(s)
I've included a speculative fix for this in v2.27. I'm wondering if you might be interested in giving it a try?

https://www.ncrunch.net/download.
dariusdamalakas
#9 Posted : Tuesday, October 4, 2016 7:51:02 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/10/2013(UTC)
Posts: 42
Location: Lithuania

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
Thanks. Downloaded and installed. As said above, not really sure how to definitely trigger config dialog. Will let you know if this still comes up with 2.27
1 user thanked dariusdamalakas for this useful post.
Remco on 10/4/2016(UTC)
dariusdamalakas
#10 Posted : Thursday, October 6, 2016 12:25:08 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 1/10/2013(UTC)
Posts: 42
Location: Lithuania

Thanks: 4 times
Was thanked: 5 time(s) in 5 post(s)
Ok, had a chance to clone a repo with 2 .sln files. Opened them both at same time, navigated to other windows, came back, clicked on VS and it showed conf wizard window. Not a 100% confidence level, but it does look like this is working now. Thanks alot!
1 user thanked dariusdamalakas for this useful post.
Remco on 10/6/2016(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.062 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download