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

Notification

Icon
Error

2 Pages<12
Code Coverage Markers Misaligned
chonuff
#21 Posted : Thursday, November 29, 2018 4:15:33 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 11/28/2018(UTC)
Posts: 3
Location: United States of America

Was thanked: 1 time(s) in 1 post(s)
Remco;12863 wrote:
[quote=chonuff;12861]
If you have any luck in identifying what is special about these files and why it only happens for them, I'd really like to know. If I can reproduce the issue, maybe I can fix it for good :)

It's suspicious the way this has suddenly come up with a VS update. I wonder if it might be an internal issue inside VS itself. In which case it may even disappear on its own.


I did notice that it's seems to only happen with short files (one is 11 lines, another is 39). Is it possible that the marker locations are able to fully process before CodeLens pushes the lines down for shorter files? Below are the contents of the shorter file (for the most part):

Code:

using System.Collections.Generic;

namespace Test.NCrunch
{
    public class SimpleObject
    {
        public AnotherObject ChildObject { get; set; }
        public IEnumerable<ListObject1> SomeList { get; set; }
        public IEnumerable<ListObject2> AnotherList { get; set; }
    }
}


I hope this helps.
1 user thanked chonuff for this useful post.
Remco on 11/29/2018(UTC)
Remco
#22 Posted : Thursday, December 13, 2018 1:53:16 AM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 5,478

Thanks: 718 times
Was thanked: 899 time(s) in 855 post(s)
I just wanted to confirm that I've now managed to reproduce this problem, and a fix for it will be shipping with the next release of NCrunch.

The problem was exactly as you suggested: It's a race condition caused by CodeLens. The reconstruction of the view by CodeLens causes the view to change without the markers being realigned. Some code files are affected more than others .. that's the nature of race conditions I guess.

Thanks for your help with reporting this one and narrowing it down.
Users browsing this topic
Guest
2 Pages<12
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.027 seconds.