微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

加载 Cake.Bakery.exe 时 OmniSharp 挂起

如何解决加载 Cake.Bakery.exe 时 OmniSharp 挂起

我是蛋糕的新手。
我正在尝试为 Cake VSCode 配置 IntelliSense,如下所述: https://cakebuild.net/docs/integrations/editors/vscode/intellisense

我收到以下 OmniSharp 错误

[info]: OmniSharp.Cake.Services.CakeScriptService
        Using Cake.Bakery at C:/Work/VisibleFolder/Bakery/Cake.Bakery.0.5.1/Cake.Bakery.exe

[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).

我已将超时时间从 1 分钟增加到 10 分钟。那没有帮助。
重新安装扩展和重新启动 VSCode 也没有帮助。

如何对 Cake.Bakery.exe 进行故障排除?我可以为它启用日志吗?

我尝试在另一台虚拟机上执行相同的步骤。我收到了一个不同的 OmniSharp 失败错误

OmniSharp.Stdio.Host

回复

{
  "Request_seq": 7,"Command": "/v2/codestructure","Running": true,"Success": false,"Message": "\"System.NullReferenceException: Object reference not set to an instance of an object.\\r\\n   at OmniSharp.Cake.Extensions.ResponseExtensions.<TranslateAsync>d__7.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Cake\\\\Extensions\\\\ResponseExtensions.cs:line 153\\r\\n--- End of stack trace from prevIoUs location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Cake.Services.RequestHandlers.CakeRequestHandler`2.<Handle>d__14.MoveNext()\\r\\n--- End of stack trace from prevIoUs location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<GetFirstNotEmptyResponseFromHandlers>d__19.MoveNext()\\r\\n--- End of stack trace from prevIoUs location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<HandleRequestForLanguage>d__20.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 230\\r\\n--- End of stack trace from prevIoUs location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Endpoint.EndpointHandler`2.<Process>d__16.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Host\\\\Endpoint\\\\EndpointHandler.cs:line 131\\r\\n--- End of stack trace from prevIoUs location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptiondispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at OmniSharp.Stdio.Host.<HandleRequest>d__13.MoveNext() in D:\\\\a\\\\1\\\\s\\\\src\\\\OmniSharp.Stdio\\\\Host.cs:line 215\"","Body": null,"Seq": 28,"Type": "response"
}

解决方法

安装 0.6.2(根据 Augusto 的评论)解决了该问题。 谢谢奥古斯托!

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。