Search code examples
visual-studio-2017

VS2017 Intellisense is slow and sometimes it crashes, any suggestions?


I'm working with the community edition of VS2017. Version 15.2(26430.14) which is the latest update as of 07/Jul/2017. Intellisense is sporadically slow, and stops normal progress of my coding effort. It seems to "wake up" after about a 10 to 20 second wait. But today, it crashed, and the activity log showed this information.

 <entry>
<record>1709</record>
<time>2017/07/06 00:17:33.497</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.InvalidOperationException: Cannot Match.  The session is dismissed.&#x000D;&#x000A;   
at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.Match()&#x000D;&#x000A;  
at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.OnViewBuffer_Changed(Object sender, TextContentChangedEventArgs e)&#x000D;&#x000A;  
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)

At the time I was editing XAML and adding a Binding to the IsOpen property of a ContextMenu. After closing the editor and reopening, it worked fine...

I've removed all Plug-ins but Code Maid, which I'll try next. However, I'm looking for suggestions to this hiccup.


Solution

  • The root cause of this problem was the new version of CCleaner Cloud Edition. Once I removed this software the problem all intellisense slowness and crashes ceased!