Xcode 7.3语法高亮/自动完成间歇性地停止工作

时间:2016-07-14 19:24:35

标签: xcode xcode7 syntax-highlighting xcode7.3

Xcode中的语法突出显示对我来说经常打开和关闭。我只是在键入(有时不是),语法高亮,自动完成和错误检查功能只会停止工作几秒钟然后再回来。

Video of the issue.

我几乎专门用开发快照编写Swift代码。

Xcode Version 7.3 (7D175)  
Toolchain: Swift Development Snapshot 2016-05-09 (a)
OS X 10.11.5
Macbook Pro (Retina, 15-inch, Late 2013)
NVIDIA GeForce GT 750M 2048 MB

已安装的插件:

  • 背光
  • GitDiff
  • LigatureXcodePlugin
  • Xvim

但我也没有加载任何插件而经历过这种情况。我至少回到了7.X测试版。但7.3似乎更糟糕。 Haven没有尝试过Xcode 8 beta,因为它不支持Swift开发快照。

有没有办法阻止这种情况发生?

更新

我注意到,当发生此错误时,会向控制台写入一些错误消息:

7/14/16 12:28:41.121 Xcode[15239]: #DVTSourceControl Error: -300 The remote repository could not be found.
Underlying Error: 
Method: __80-[DVTSourceControlManager remoteBranchFromRepository:forBranch:completionBlock:]_block_invoke_2
7/14/16 12:28:45.094 Xcode[15239]:  IDESourceKitService: SourceKit Service error: Connection interrupted
7/14/16 12:28:45.230 Xcode[15239]:  IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:28:45.231 Xcode[15239]:  IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:28:45.231 Xcode[15239]:  IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:29:57.888 Xcode[15239]:  IDESourceKitService: SourceKit Service error: Connection interrupted
7/14/16 12:29:58.107 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:29:58.324 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:29:58.355 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:29:59.132 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:29:59.251 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:29:59.388 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:29:59.468 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:29:59.588 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:30:01.051 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:30:01.269 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:30:01.771 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:30:01.920 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:30:02.113 Xcode[15239]: [MT] IDESourceKitService: SourceKit Service error: restoring service
7/14/16 12:30:08.139 Xcode[15239]: [default] Failed to updated bookmark for item (null) [1F5EEA59-15A1-49CA-89D8-30FA73C64572] - URL:file:///Users/me/work/HTTPFile/HTTPFile/HTTPFile.xcodeproj with error Error Domain=NSCocoaErrorDomain Code=260 "The file couldn’t be opened because it doesn’t exist."
7/14/16 12:30:08.139 Xcode[15239]: -[SFLListItem synthesizeMissingPropertyValues] Failed to updated bookmark for item (null) [1F5EEA59-15A1-49CA-89D8-30FA73C64572] - URL:file:///Users/me/work/HTTPFile/HTTPFile/HTTPFile.xcodeproj with error Error Domain=NSCocoaErrorDomain Code=260 "The file couldn’t be opened because it doesn’t exist."
7/14/16 12:30:08.140 Xcode[15239]: [default] Failed to updated bookmark for item (null) [1F5EEA59-15A1-49CA-89D8-30FA73C64572] - URL:file:///Users/me/work/HTTPFile/HTTPFile/HTTPFile.xcodeproj with error Error Domain=NSCocoaErrorDomain Code=260 "The file couldn’t be opened because it doesn’t exist."
7/14/16 12:30:08.140 Xcode[15239]: -[SFLListItem synthesizeMissingPropertyValues] Failed to updated bookmark for item (null) [1F5EEA59-15A1-49CA-89D8-30FA73C64572] - URL:file:///Users/me/work/HTTPFile/HTTPFile/HTTPFile.xcodeproj with error Error Domain=NSCocoaErrorDomain Code=260 "The file couldn’t be opened because it doesn’t exist."
7/14/16 12:30:12.000 Xcode[15239]:  IDESourceKitService: SourceKit Service error: Connection interrupted

0 个答案:

没有答案