【发布时间】:2016-02-23 08:01:02
【问题描述】:
我正在尝试在 VisualGDB 上添加 Visual Studio 的试用版,以测试一些 Linux 交叉编译。在那个包中包含了 Clang IntelliSense,它基本上阻止了我编写任何代码。
例如,当我尝试包含某些内容时,我键入“#”,而 IntelliSense 会给我建议。但是我无法继续输入,也无法使用 enter 或鼠标选择任何建议。我唯一能做的就是按退格键或在外面用鼠标单击,然后在一次输入一个字母时重复。它看起来像这样:
如您所知,这样工作是不可能的。我还没有发现任何有类似问题的人,我什至找不到如何在 Visual Studio 中禁用它。
我在 Clang IntelliSense 诊断控制台中也收到大量错误,就像我在键盘上按下的每种类型一样:
[+0:00:19.511] Method not found: 'Boolean Sysprogs.LanguageServices.Interfaces.IUniversalDeclarationCollection.PerformCustomFinalCommit(Microsoft.VisualStudio.TextManager.Interop.IVsTextView, System.String, Int32, Int32, Char)'. while trying to handle character event in the completion form
[+0:00:19.511] Stack trace:
[+0:00:19.511] at Sysprogs.LanguageServices.CompletionSetImpl.OnCommit(String textSoFar, Int32 index, Int32 selected, UInt16 commitChar, String& completeWord)
[+0:00:19.511] at aoc.a.a(Char A_0, Int32 A_1, Boolean A_2, Boolean& A_3, Boolean& A_4)
[+0:00:19.667] Method not found: 'Boolean Sysprogs.LanguageServices.Interfaces.IUniversalDeclarationCollection.PerformCustomFinalCommit(Microsoft.VisualStudio.TextManager.Interop.IVsTextView, System.String, Int32, Int32, Char)'. while trying to handle character event in the completion form
[+0:00:19.667] Stack trace:
[+0:00:19.667] at Sysprogs.LanguageServices.CompletionSetImpl.OnCommit(String textSoFar, Int32 index, Int32 selected, UInt16 commitChar, String& completeWord)
[+0:00:19.667] at aoc.a.a(Char A_0, Int32 A_1, Boolean A_2, Boolean& A_3, Boolean& A_4)
编辑我设法将 Clang IntelliSense 诊断控制台中的 IntelliSense 引擎更改为使用 Visual C++ IntelliSense,所以现在我至少可以继续工作了。让 Clang 工作仍然很好,因为我认为它包含在 VisualGDB 安装中是有原因的。
【问题讨论】:
标签: c++ visual-studio-2010 gdb clang