[img=https://i.ibb.co/NTmgypj/Screenshot-2024-03-18-110809.png]Covering test not found[/img]
RDI was working wonderfully on a fairly sizable project (Love this new feature btw, ❤️) But now I'm getting the above message when clicking on the RDI markers in the margin, even on covered code.
Let me know if there's anything I can do to help you diagnose the issue.
The root cause of this error is when NCrunch can't find any code coverage for the first line of this method. Clearly, this makes no sense here as the method is covered. I suspect perhaps it's somehow resolving to the wrong method when you're trying to open the overlay.
It's my assumption that re-running the test doesn't resolve the issue.
Does this happen consistently for all your tests? Or just in certain places?
I haven’t seen anywhere in the code base where RDI is now functioning. Whether looking at a test or any covered method. Even methods with 100s of covering tests. (I’ve not checked the whole code base 🤣) The RDI markers in the margin are all faded green - as you might be able to tell from the image. Whereas, the coverage markers are bright green. It looks like it thinks it’s stale.
Re-running tests does not fix the issue, as you suspected.
I saw the RDI Storage Management window but couldn’t see how to reset/refresh it. Can I just delete the RDI storage folder?
At this stage in the system, RDI won't actually be touching the log files yet, so I don't think deleting them will resolve the issue .. but yes, you can just wipe the RDI storage folder and it will reset RDI's data.
I suspect something is wrong with your cached data. Could you try deleting your NCrunch cache file? Usually this is under the .NCrunch_Solution directory by your solution file. Make sure to leave the execution times cache file (otherwise the engine will lose your timings).
We're getting closer to tracking down this issue. It seems to be intermittent, but I'm working with a user that can make it happen with useful regularity. I'll let you know when we have it cornered.