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

Notification

Icon
Error

NCrunch code coverage icons not displayed when using MoeIDE extension
MrClyfar
#1 Posted : Wednesday, March 22, 2017 2:54:29 PM(UTC)
Rank: Member

Groups: Registered
Joined: 8/6/2011(UTC)
Posts: 17

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Visual Studio Enterprise 2017
NCrunch 3.5.0.1

I've been playing about with a Visual Studio extension called MoeIDE. It's purpose is to allow the user to apply a background image to the whole of the Visual Studio IDE.

After applying an image to my IDE, I noticed that the NCrunch code coverage symbols, which usually appear on the left of a code file, are no longer visible. I happen to have Resharper installed and it's unit test related symbols, which appear further to the left of a code file compared to NCrunch, are visible.

Possibly the way the image is applied to the IDE is causing a problem for NCrunch with it's rendering of the code coverage icons. NCrunch is still running happily away in theb ackground, executing tests etc. But it can't seem to render the icons whilst this extension is enabled. When I disabled the extension, the NCrunch icons appeared as per normal.

Jason.



Remco
#2 Posted : Wednesday, March 22, 2017 10:12:47 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 Jason,

Thanks for sharing this issue.

NCrunch adds its icons to the VS IDE by extending the WPF model with a few new elements. It took some trial and error to get this playing nicely with other plugins and tools, and there are many variables to consider (i.e. VS colour scheme etc).

My first guess would be that MoeIDE is overlapping the NCrunch margin. So it's basically a plugin clash - neither plugin was ever tested and designed to work with the other.

If you wish support to be extended to include this plugin, you're very welcome to vote for it as a feature request in user voice.
MrClyfar
#3 Posted : Thursday, March 23, 2017 8:17:03 AM(UTC)
Rank: Member

Groups: Registered
Joined: 8/6/2011(UTC)
Posts: 17

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
I had a feeling it was z-order (or the WPF equivalent) related.

I'll post an entry on the UserVoice site now.

Thanks.
Jason.
Der-Albert.com
#4 Posted : Friday, March 24, 2017 3:37:37 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 209

Thanks: 11 times
Was thanked: 53 time(s) in 50 post(s)
Btw. the coloring is gone on my machine while working, and is not coming back. restart of VS2017 does not help.
Remco
#5 Posted : Friday, March 24, 2017 10:47:27 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)
Der-Albert.com;10117 wrote:
Btw. the coloring is gone on my machine while working, and is not coming back. restart of VS2017 does not help.


Are you using the above extension, or anything similar that might affect visual layouts?

Does running "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe /setup" resolve the problem?
Der-Albert.com
#6 Posted : Sunday, March 26, 2017 1:22:07 PM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 209

Thanks: 11 times
Was thanked: 53 time(s) in 50 post(s)
No, no special extensions. Except ReSharper. Currenty the color gutters are shown and actionable.
Remco
#7 Posted : Sunday, March 26, 2017 10:41:55 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)
Der-Albert.com;10119 wrote:
No, no special extensions. Except ReSharper. Currenty the color gutters are shown and actionable.


Sorry.. I'm now confused. Is this an intermittent issue? Or are there different colours that are out of alignment for you? (i.e. not the markers)
Der-Albert.com
#8 Posted : Monday, March 27, 2017 10:33:13 AM(UTC)
Rank: Advanced Member

Groups: Registered
Joined: 5/17/2011(UTC)
Posts: 209

Thanks: 11 times
Was thanked: 53 time(s) in 50 post(s)
There was no color gutters on some lines, white gutter on clearly covered lines, single gutter at the start of the method (on that timeframe i wrote the me too). but in another project (fresh, never run with NCrunch) yesterday everthing everthing was fine.

Today i opened the wrongly colored project, and it was broken again. so I closed VS2017, deleted the _NCrunch_SolutionName Folder and opened the solution again and, everything was colored nicely.
Remco
#9 Posted : Monday, March 27, 2017 12:16:00 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)
Der-Albert.com;10121 wrote:
There was no color gutters on some lines, white gutter on clearly covered lines, single gutter at the start of the method (on that timeframe i wrote the me too). but in another project (fresh, never run with NCrunch) yesterday everthing everthing was fine.

Today i opened the wrongly colored project, and it was broken again. so I closed VS2017, deleted the _NCrunch_SolutionName Folder and opened the solution again and, everything was colored nicely.


This looks like a coverage index corruption related issue rather than a visual issue. At the moment I'm not aware of anything in the engine that can cause this corruption, but would certainly like to learn more about use cases that can do so. If you can find a way to reproduce this problem, please do let me know.
MrClyfar
#10 Posted : Saturday, April 1, 2017 12:24:01 PM(UTC)
Rank: Member

Groups: Registered
Joined: 8/6/2011(UTC)
Posts: 17

Thanks: 1 times
Was thanked: 2 time(s) in 2 post(s)
Hello.

Der-Albert.com, are you able to record a quick video of what you are experiencing? Often, being able to see the symptom(s) can be a massive help.

There are free tools such as CamStudio that can record videos. http://camstudio.org/. Only thing is, I'm not sure whether this forum can accept file attachments(?)

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