-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OmniSharp.Roslyn.CSharp.Services.Diagnostics.CSharpDiagnosticWorkerWithAnalyzers timing out #1688
Comments
Diagnostic timeout is separate thing of project load routines. Theres DocumentAnalysisTimeoutMs in omnisharp.json you can try configure but my bet is that it will timeout even if you add nearly infinite time for it (however thats something you can try). There have been problems with certain analyzers with certain kind of files that caused them to hang in analysis. Problem is usually releated that theres something missing / differently configured than in visual studio workspaces. One of issues were fixed by #1566, however it seems there some left. Things to debug:
|
Thank you for the response, I'll try to reproduce/debug in the near future when work allows. |
Hi, we have a large code base 120 projects in a solution and we are experiencing this timeout on several large files. What information can we contribute to help work towards a solution? |
Have this with some large files. Is there a configurable timeout? |
Happens to ms on Unity's Mathematics classes.
|
Open the {
"RoslynExtensionsOptions": {
"enableDecompilationSupport": true,
"enableAnalyzersSupport": true,
"enableImportCompletion": true,
"enableAsyncCompletion": true,
"documentAnalysisTimeoutMs": 600000,
"LocationPaths": [
"c:/Users/Vahid/.vscode/extensions/josefpihrt-vscode.roslynator-3.2.2/roslyn/common",
"c:/Users/Vahid/.vscode/extensions/josefpihrt-vscode.roslynator-3.2.2/roslyn/analyzers",
"c:/Users/Vahid/.vscode/extensions/josefpihrt-vscode.roslynator-3.2.2/roslyn/refactorings",
"c:/Users/Vahid/.vscode/extensions/josefpihrt-vscode.roslynator-3.2.2/roslyn/fixes"
]
}
} I have installed the Roslynator too. |
I'm attempting to use Omnisharp with the Roslyn analyzers feature enabled (in VSCode) and it keeps timing out on a particularly large file containing my database context that was generated by Entity Framework Core's scaffolding tools. The database description and files in question aren't mine to distribute, so I'm unable to provide them to help reproduce. Is there a way to set the timeout myself since I expect this to take a while to process? The Project Load Timeout option, even set to a ridiculously long 5 minutes doesn't change anything.
I'm using the latest stable versions of the extensions and .NET Core SDK.
Omnisharp log below.
The only packages bringing in analyzers currently are Entity Framework's diagnostic analyzer
The text was updated successfully, but these errors were encountered: