Since upgrading to version 16.1 of visual studio 2019, I've started getting repeated performance warnings that coderush is slowing down typing. Has anyone else reported anything similar? It's happening often enough within a single launch of visual studio to be annoying. I've attached my logs from the last few days. If I can provide any further information, please let me know
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hi Kevin,
Thank you for reporting this and providing the log files.
I see a number of errors that may potentially affect the typing experience and need some time to examine these errors in more detail. I will get back to you as soon as I have any results.
I also noticed that most of these errors are related to the Code Places and Rich Comments features. While we are examining these errors, may I ask you to help us verify whether or not these features are the cause the slowdown you're experiencing? Would you please temporarily disable these features and let me know if this makes a difference? Please do the following:
1) Disable the Code Places.
2) Disable Rich Comments.
3) Restart Visual Studio and let me know whether or not this helps.
I look forward to your answer.
Hi Dmitry,
Tried that, and it seems to have improved things, but not completely removed the problem. I got the message immediately on starting my first edit after restarting visual studio, then once or maybe twice more within the session. I've attached the new log file for the session
Kevin
Thank you for the new log file. I analyzed it and found two problems. We will process them, however, they cannot be related to the slowing of typing.
To help us find the cause of the issue, please perform the following steps:
Thanks Dmitry, I'll see what I can do. I must say though that I have not had the issue today at all. One thing that might be relevant: yesterday I was doing some fairly large scale refactorings, with changes to related components across multiple assemblies. As a result there was a lot of broken code during the day. I wonder could that have impacted on coderush to cause the message? Anyway, I will have a look tomorrow to see if I can reproduce the messages, and if so will record the data and upload it here.
Kevin
>I wonder could that have impacted on coderush to cause the message?
Unfortunately, I cannot determine the cause of the problem based on the information I have.
We will continue analyzing problems from your log files. If we have any progress, we will notify you in the context of the current ticket.
> I will have a look tomorrow to see if I can reproduce the messages, and if so will record the data and upload it here.
Thank you. This information will be very helpful. We look forward to receiving data from you.
It looked like the problem had gone away, but I've had it a number of times in my current editing session. Caught the last one with the performance monitoring switched on, and will include the logs. Whilst I'm at it, I've recorded something else strange. Not sure whether this is a coderush issue or a VS2019 issue, as I installed VS2019 v16.1 and a coderush update at around the same time. Since doing so I've noticed quite a lot of times when intellisense isn't picking up completions that it should be. As it happened, this manifested itself whilst I was recording the performance data, so I've recorded it for you to take a look at. Here's a link to the screencast. I'm trying to type the class private variable "_legKey", but it won't recognise it, despite it working fine a few seconds earlier on the other half of the And. Also once it incorrectly selects "Key" as a completion, and I delete it, it starts working again, and correctly offers up _legKey. I've spotted this numerous times over the last week or so, but not had the chance to catch it until now
Forgot to add, this had been happening for almost every field in the select part of the Linq statement at the top of the screenshot, which is why I was trying to retype that statement to reproduce the error. I can't say for sure if this is only happening withing Linq statements, but I feel it might be
Just been looking at the logs, but I can't see any extra data in them - have I sent the right stuff through? The performance monitor was definitely enabled
Experiencing the slowdown message a lot this morning, mostly with linq statement, but not exclusively. I've enabled performance monitoring again, but I can't see any extra data in the logs. Was I supposed to do anything with the Save To button on the options screen for the performance monitoring. It would be a shame if the profiling from this morning isn't collecting what you need, as there are lots of incidents
New logs from this morning. I've just disabled the performace monitoring, pressed the ok button, and shut down visual studio. I still don't see any extra log information in there though :-(
>Just been looking at the logs, but I can't see any extra data in them - have I sent the right stuff through? The performance monitor was definitely enabled
Yes, you are right - your archives with logs do not contain performance information. After enabling "Performance Monitor", the CodeRush logs folder should contain files in the UIPerformance*.log format, but there are no such files in your logs folder.
Could you please try performing the steps for collecting performance logs again? Before you do it, close all visual studio instances and remove the existing CodeRush logs folder.
Also, please make sure that you confirm enabling of "Performance Monitor" by pressing the OK button. I have recorded a screencast showing how the performance logs are collected on my side.
If the new logs folder will not contain UIPerformance*.log files, could you provide us with your CodeRush settings folder (CodeRush->Support->Settings Folder) so that we can understand why the performance logs are not collected on your side.
I also noticed that you specified v19.1.3 in the Build field of this ticket. If you are indeed working with v19.1.3, I recommend updating to v19.1.4 we recently published via: Tools->Extensions and Updates->Updates->Visual Studio Marketplace->CodeRush->Update button, restart Visual Studio.
>Since doing so I've noticed quite a lot of times when intellisense isn't picking up completions that it should be.
I have created separate tickets on your behalf for the problems you described. We will process the issues in these new tickets: Intellisense isn't picking up completions.
Okay, deleting the logs folder has done the trick, I now get the UIPerformance.*.log file. However, I accidentally hit "do not show this message again" on the coderush typing message. Do you know how to reset that? In VS2017 it never used to take any notice when I tried to switch off messages like that, not sure if VS2019 is the same.
I've attached the logs I recorded anyway, but having switched that message off, i've no idea if the logs are relevant
Also yes, I am using 19.1.4 - not sure if I reported this incorrectly when I raised this, or I've updated since
Thank you for the log files. We are currently analyzing the "UIPerformance 2019-06-07 15.38.03.log", please give us some time.
We will notify you about our progress in the context of the current ticket.
>Do you know how to reset that?
You can turn on/off "don't show …" message via Help->"Visual Studio Performance Manager" dialog.
I don't seem to have an option on there to change the message status: https://www.screencast.com/t/4WNTfQHBhr. The only option there is to disable the extension, which I assume would disable Coderush
I analyzed "UIPerformance 2019-06-07 15.38.03.log" and didn't find any stack entries related to CodeRush.
However I have found the following stack entry:
at RedGate.Client.ActivationPluginShim.LicensingClient.()
at RedGate.Client.ActivationPluginShim.LicensingClient.GetLicence()
at RedGate.Client.ActivationPluginShim.LicensingClientGui.()
at RedGate.Client.Shims.Common.ClientConnectionTracker.TrackConnectionOf(Action action)
at RedGate.Client.ActivationPluginShim.LicensingClientGui.GetLicence()
at RedGate.Client.ActivationPluginShim.LicensingClientGuiMultiplexer.GetLicence()
at RedGate.Client.ActivationPluginShim.MutatingLicensingClientGui.GetLicence()
at RedGate.Versioning.Client.Licensing.RedgateLicensor.GetLicence()
at RedGate.Versioning.Client.Licensing.RedgateLicensor.IssueLicence()
at RedGate.Versioning.Client.Licensing.Api.LicensingSentry.IsLicensed()
at RedGate.Versioning.Client.Licensing.Api.LicensingSentry.GrantsAccess()
at RedGate.Versioning.Client.VsShell.VisualStudio.Windows.ToolWindow.SqlChangeAutomationToolWindow.SetToolWindowName()
at RedGate.Versioning.Client.VsShell.VisualStudio.Windows.ToolWindow.SqlChangeAutomationToolWindow.Initialize()
As far as I understand you have other extensions besides CodeRush, which is installed in Visual Studio on your side. I assume that the problem can be related with the RedGate extension. Could you try to temporary disable the extension via: Extensions->Manage Extensions->Installed->RedGate extension-> Disable button, restart Visual Studio, try to reproduce the problem, and provide us with your results.
That's done, but unless I can find a way to re-enable that message I'm a bit stuck, I think
It appears that I misinformed you in my previous reply. I was sure that the "Manage Visual Studio Performance" window provides a way to configure the "performance notification" settings. I now see that this is not the case.
I checked this locally, but I was not able to find a way to reset these performance notifications settings (we even tried to reset Visual Studio settings, but without success). Searching over the Internet did not help either: I found a number of articles that describe this performance monitoring feature, but none of them describes how or where to configure it. So, I cannot suggest a solution at the moment. I will update this thread if I find a way to configure or reset these settings.
Would you please clarify whether you are still seeing slowdowns when typing in the code editor?
These were never especially noticeable slow downs, it was more that the constant appearance of the error message was annoying, and also that I thought you'd want to know about it.
Looks like I went through pretty much the same steps you did trying to track a way to reset the settings down. If I get any other messages I'm planning to use the sysinternals filesystem/registry monitoring tool to see what gets updated when I tell it to hide the message. If that helps I'll post it here, but otherwise I'm not sure how to progress this issue :-(
Kevin
I tried to find the registry key responsible for resetting Performance->Extensions->Typing list, but without success.
For this reason, I wrote an issue to Visual Studio Developer community - Visual Studio 2019 - The "Manage Visual Studio Performance" dialog does not provide a way to reset the "Don't show this message again" settings.
I will monitor the issue and as soon as we will get answer, we will try to reproduce the problem on your side.
>These were never especially noticeable slow downs, it was more that the constant appearance of the error message was annoying
If so, I recommend you to enable again CodeRush features: Code Places and Rich Comments and enable RedGate extension, until we get answer from Visual Studio Developer community.
Also, I suggest you to update CodeRush to the latest version via: Extensions->Manage Extensions->Updates->Visual Studio Marketplace->CodeRush->Update button. The new version contains
some performance improvements.
> If I get any other messages I'm planning to use the sysinternals filesystem/registry monitoring tool to see what gets updated when
Take into account that Visual Studio uses a Visual Studio private registry file - How to examine Visual Studio 2017 registry
Snap - Reset performance notifications
Thank you for the provided link. Let's wait for the answers to our questions.
Hi Dmitry,
I am having the same issues as Kevin with CodeRush slow performance.
I attached the CR and VS logs in the same zip file.
I am running VS Enterprise 2019 v16.3.7 and CR v19.2.3.
Please feel free to move this to a new ticket if you consider it.
Thanks!
Hello,
I've created a separate ticket on your behalf (T829453: VS 2019 reports CodeRush is slowing typing). It has been placed in our processing queue and will be answered shortly.