I'm using VS2017 Professional, NCrunch 3.7.0.7, ReSharper Ultimate 2017.1.1.
When I rename a class using ReSharper's rename feature, the file is renamed along with the class. Each rename results in the document being reloaded (I think) and a new set of coverage markers being added to the window.
I have tried reproducing this with a more simple manual rename of the class and the file, and it seems to be only the ReSharper functionality that triggers it. Closing and reopening the window resolves the issue and is an acceptable workaround.
Daily Usage Issues
Multiple markers when renaming class with ReSharper
Started by alastairs on 9,952 views
Remco NCrunch Developer
#10392
17 May 2017 09:59 UTC
Hi, thanks for sharing this problem.
Can you confirm whether you can reproduce this consistently using ReSharper rename? Does it ever work correctly when you do this?
Can you confirm whether you can reproduce this consistently using ReSharper rename? Does it ever work correctly when you do this?
Yes, it's reproducible consistently :)
Remco NCrunch Developer
#10414
19 May 2017 12:10 UTC
I get this too, no R#, just standard VS rename refactor.
Remco NCrunch Developer
#10440
22 May 2017 02:55 UTC
I'm still having trouble reproducing this issue. I'm wondering if it might be caused by a race condition or sequence related issue somewhere, or perhaps surfaced by some specific configuration.
@b33rdy, you mentioned that you get this with a standard VS rename refactor, can you confirm whether you are running ReSharper or any of the JetBrains' tools in your environment? It would be useful if we can rule this out.
What do you have configured for your visual settings? Are you using line numbering or outlining? Do you have anything else added to your left margin? Are you running any other 3rd party plugins that introduce changes to the VS UI?
@b33rdy, you mentioned that you get this with a standard VS rename refactor, can you confirm whether you are running ReSharper or any of the JetBrains' tools in your environment? It would be useful if we can rule this out.
What do you have configured for your visual settings? Are you using line numbering or outlining? Do you have anything else added to your left margin? Are you running any other 3rd party plugins that introduce changes to the VS UI?
Remco wrote:What do you have configured for your visual settings? Are you using line numbering or outlining? Do you have anything else added to your left margin? Are you running any other 3rd party plugins that introduce changes to the VS UI?
I have line numbering and Code Lens enabled in my C# editor windows. Other plugins I have installed that may be conflicting include OzCode and this Trailing Whitespace Visualiser. Everything else (apart from R#, obviously) appears to be out-of-the box Microsoft stuff.
Remco NCrunch Developer
#10454
24 May 2017 06:30 UTC
@b33rdy: It would be really great to know if you see anything in Alastair's setup that is similar in yours. In this way, maybe I can rule out needing to test integration with some products.
FWIW, happens with me as well when I rename with v3.8.0.2 https://www.screencast.com/t/IP6Hl3HQMqXL
I don't recall it happened previously, the recent changes I made are updating vstudio2017 and NCrunch.
(vstudio version info:
)
I don't recall it happened previously, the recent changes I made are updating vstudio2017 and NCrunch.
(vstudio version info:
Microsoft Visual Studio Enterprise 2017
Version 15.2 (26430.6) Release
VisualStudio.15.Release/15.2.0+26430.6
Microsoft .NET Framework
Version 4.6.01586
Installed Version: Enterprise
Architecture Diagrams and Analysis Tools 00369-60000-00001-AA973
Microsoft Architecture Diagrams and Analysis Tools
Visual Basic 2017 00369-60000-00001-AA973
Microsoft Visual Basic 2017
Visual C# 2017 00369-60000-00001-AA973
Microsoft Visual C# 2017
Visual C++ 2017 00369-60000-00001-AA973
Microsoft Visual C++ 2017
Visual F# 4.1 00369-60000-00001-AA973
Microsoft Visual F# 4.1
Application Insights Tools for Visual Studio Package 8.6.00404.2
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017 15.0.30503.0
ASP.NET and Web Tools 2017
ASP.NET Web Frameworks and Tools 2017 5.2.50303.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.0.30209.0
Azure App Service Tools v3.0.0
Azure Data Lake Node 1.0
This package contains the Data Lake integration nodes for Server Explorer.
Azure Data Lake Tools for Visual Studio 2.2.5000.0
Microsoft Azure Data Lake Tools for Visual Studio
Common Azure Tools 1.9
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
JavaScript UWP Project System 2.0
JavaScript UWP Project System
JetBrains ReSharper Ultimate 2017.1.1 Build 108.0.20170407.122957
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2017 JetBrains, Inc.
KofePackagePackage Extension 1.0
KofePackagePackage Visual Studio Extension Detailed Info
Merq 1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.
Microsoft Azure Hive Query Language Service 2.2.5000.0
Language service for Hive query
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2017 - v2.9.50131.1
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
Mono Debugging for Visual Studio Mono.Debugging.VisualStudio
Support for debugging Mono processes with Visual Studio.
NCrunch
Continuous Testing Tool for .NET
Copyright © 2010-2016 Remco Software Ltd
NuGet Package Manager 4.2.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
ReSharper.AutoFormatOnSave 1.0
Runs silent Reformat Code command upon file save.
SQL Server Data Tools 15.1.61702.140
Microsoft SQL Server Data Tools
ToolWindowHostedEditor 1.0
Hosting json editor into a tool window
TypeScript 2.2.2.0
TypeScript tools for Visual Studio
Visual Studio Spell Check Everywhere VSSpellCheckEverywhere
An extension that enables spell checking within any Visual Studio file editor or tool window that uses WPF text boxes.
https://GitHub.com/EWSoftware/VSSpellChecker
Visual Studio Spell Checker VSSpellChecker
An editor extension that checks the spelling of comments, strings, and plain text as you type or interactively with tool windows.
https://GitHub.com/EWSoftware/VSSpellChecker
Visual Studio Tools for Universal Windows Apps 15.0.26430.06
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
Web Extension Pack 2017 15.0.2
The easiest way to set up Visual Studio for the ultimate web development experience.
Xamarin 4.5.0.443 (c871575)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin.Android SDK 7.3.0.13 (448f54f)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 10.10.0.30 (30b6e87)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
)
Edited 24 May 2017 12:22 UTC
Remco NCrunch Developer
#10646
19 Jun 2017 11:04 UTC
Ok, I still haven't reproduced this problem, but I've had a go at fixing it.
The fix involves a broad scanning system to try and find existing coverage bars and unmounting them every time a new bar is mounted. Because I have no way to know if this has solved the problem, I'm wondering if anyone would be interested in giving the build below a try?
http://downloads.ncrunch.net/NCrunch_Console_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_Console_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_LicenseServer_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2008_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2012_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2012_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2013_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2013_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2015_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2015_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2017_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2017_3.10.0.2.zip
The fix involves a broad scanning system to try and find existing coverage bars and unmounting them every time a new bar is mounted. Because I have no way to know if this has solved the problem, I'm wondering if anyone would be interested in giving the build below a try?
http://downloads.ncrunch.net/NCrunch_Console_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_Console_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_GridNodeServer_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_LicenseServer_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2008_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2010_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2012_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2012_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2013_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2013_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2015_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2015_3.10.0.2.zip
http://downloads.ncrunch.net/NCrunch_VS2017_3.10.0.2.msi
http://downloads.ncrunch.net/NCrunch_VS2017_3.10.0.2.zip
I have tried with 3.10.0.2 / vs2017 above and it seems to have resolved the issue for me!
What I noted when trying to produce a stable repro before upgrading are:
* It only happened if I had Solution Explorer visible.
* It only happened when I rename file via RS (Ctrl+R,Ctrl+R), renaming the file via Solution Explorer (F2) did not reproduce the issue.
What I noted when trying to produce a stable repro before upgrading are:
* It only happened if I had Solution Explorer visible.
* It only happened when I rename file via RS (Ctrl+R,Ctrl+R), renaming the file via Solution Explorer (F2) did not reproduce the issue.
Remco NCrunch Developer
#10662
20 Jun 2017 08:25 UTC
GreenMoose wrote:I have tried with 3.10.0.2 / vs2017 above and it seems to have resolved the issue for me!
Horray! Hopefully others here can also confirm if they still see the issue.
Post a reply
Log in to reply.