OmniSharp 在加载时挂起 Cake.Bakery.exe
OmniSharp hangs when loading Cake.Bakery.exe
我是 Cake 的新手。
我正在尝试按照此处所述为 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 的评论)解决了这个问题。
谢谢奥古斯托!
我是 Cake 的新手。
我正在尝试按照此处所述为 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 的评论)解决了这个问题。 谢谢奥古斯托!