【问题标题】:VS2017 Intellisense is slow and sometimes it crashes, any suggestions?VS2017 Intellisense 很慢,有时会崩溃,有什么建议吗?
【发布时间】:2019-03-28 23:25:19
【问题描述】:

我正在使用 VS2017 的社区版。 版本 15.2(26430.14) 是截至 2017 年 7 月 7 日的最新更新。 Intellisense 偶尔会很慢,并且会阻止我的编码工作的正常进展。它似乎在大约 10 到 20 秒的等待后“醒来”。但是今天,它崩溃了,活动日志显示了这个信息。

 <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)

当时我正在编辑 XAML 并向 ContextMenu 的 IsOpen 属性添加绑定。关闭编辑器并重新打开后,它工作正常......

我已经删除了除 Code Maid 之外的所有插件,接下来我会尝试。不过,我正在寻找解决此问题的建议。

【问题讨论】:

    标签: visual-studio-2017


    【解决方案1】:

    我遇到了类似的问题。我关闭了 Visual Studio 并删除了 .vs(隐藏)文件夹并重新启动。它会自动重新生成文件夹。

    【讨论】:

    • 切特,那个文件夹在哪里?
    • 在解决方案文件夹中。
    • 上述解决方案有效,但只能持续很短的时间,虽然 Intellisense 时间更好,但它们仍然不是应该的...... Intellisense 不应该影响编码时的性能......在我看来.
    【解决方案2】:

    我也有这个问题。见链接 (https://support.microsoft.com/en-us/help/2894215/you-experience-performance-issues-product-crashes-or-rendering-issues)

    这似乎是某些显示驱动程序引起的问题。推荐的解决方法是禁用 VS2017 的硬件加速。我这样做了,它解决了我的问题。 Intellisense 现在正在以我可以打字的速度运行。

    我附上了解决方法的链接截图,以防链接失效。

    【讨论】:

    • 对我来说,它只是禁用了自动调整。无论是否使用 GPU,现在 id 似乎都没有什么不同。在游戏电脑上工作。
    【解决方案3】:

    这个问题的根本原因是 CCleaner 云版的新版本。一旦我删除了这个软件,所有智能感知缓慢和崩溃的问题都停止了!

    【讨论】:

      猜你喜欢
      • 2021-08-11
      • 2011-04-17
      • 1970-01-01
      • 2018-12-13
      • 1970-01-01
      • 2011-03-30
      • 2021-10-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多