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
[ERROR] Error: OmniSharp server load timed out. #1585
Comments
I've also been getting this error and have been disabling OmniSharp > reload vscode > enable OmniSharp > reload vscode and it works again. |
@pixelypants Thank you for answer. I tried: disable extension (always) -> restart -> enable (always), but doesn't work. |
I'll be working on improving the start up performance/experience of the OmniSharp server soon. In the meantime, you can set the 'omnisharp.projectLoadTimeout' setting in VS Code as the error says to do. By default, this is set to 60 and increasing it can help. |
Perfect. It really helps. Thank you! |
The Timeout setting, I set to 1200 then only it works. But I have to wait for so long to complete the OmniSharp server to load completely. |
@technicalganesh: How long does it take to load your project? Do you have details about the size of your project? What sorts of projects are they? |
@DustinCampbell: Thanks for considering my issue. Mine is a .Net core 2 solution with 6 Projects in it. Among them 5 are .Net Standard Class Libraries. These are ofcourse loading faster and no issues I am facing with them. The one that takes me to the hell is the MVC Web Project It does have 6 controllers including the HomeController, a Startup.cs file, Program.cs and three to four simple static helper classes. But it has a bunch of client-side libraries like, Angular and other js stuffs. I uninstall the OmniSharp and reinstalled it. But, found no use of doing it. I hope you understand the situation. The Output Window of OmniSharp was showing as below.... It took more than 15 minutes to contunue from this : /Users/ganesh/Projects/Diamond/DiamondCut/DiamondCut.Web/DiamondCut.Web.csproj.
|
You mentioned adding Angular and lots of JavaScript files slows down project loading. Is it possible that you're encountering this issue? https://github.com/dotnet/cli/issues/7525 |
@DustinCampbell , At this point you are a great man to save my life....! Thanks a lot!... I just added these line given below as mentioned in the thread but with respect to my folder structure and this thing pushed the loading of OmniSharp in couple of seconds, But, Is it going to create any side effects in terms of building for deployment or so? Just wanted to confirm if you know. Once again thanks to you! |
Excellent! Thanks for verifying! |
You might not have noticed my question just I updated in the above comment.... "But, Is it going to create any side effects in terms of building for deployment or so? Just wanted to confirm if you know." |
I did miss that --thanks! I don't believe it will affect deployment, but I'm not an expert in ASP.NET projects. It would be best to try a However, I expect it will affect your build by making it faster. Assuming there are no files in |
Yes! It builds faster....! |
This helps saving hell lot of time! Thank you @DustinCampbell & @technicalganesh |
I had the same problem with Omnisharp, Where intelligence was not working even with a Console application. I had to install .Net Framework 4, 4.5 and 4.7.2. Thanks, |
Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute). Please how can I extend the default delay time? Are there any alternatives to resolve this? |
@jeriwice You can do as directed in this comment #1585 (comment) |
Had to reinstalled the C# extension (v1.18.0 now) and this issue seems to have come up again. I have tried setting the default to 120 and 1200 and continue to get the output in the log seen below. I tried uninstalling/reinstalling, restarting OmniSharp but just keep getting the time out error. I was able to get omnisharp started by downgrading to 1.17.1 (using these instruction https://tpodolak.com/blog/2017/04/09/downgrading-visual-studio-code-extension/) ################################################## OmniSharp server started. [ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute). #####################################################
|
@TopGuo i have also this problem.
|
@matheusicaro you have a different issue. see #3545 (comment) |
Hello, I am having the timeout issue too, Using v1.23.9 and omnisharp.projectLoadTimeout set to 1200, so after 20 mins it still drops the timeout error. My .sln includes 2 asp .net core 3.1 projects and it is not a big codebase |
Omg, after hundreds of tries, this finaly worked for me! Thank you <3 |
You should add the path where the .net6 is installed in the OmniSharp configuration. |
Environment data
VS Code version: 1.13.1 (1.13.1)
C# Extension version: 1.11.0-beta4 (or 1.10.0 - tried both)
Steps to reproduce
Just start vscode in 6/21/2017 morning (maybe vscode automatically installed any updates. I'm not sure)
Expected behavior
Start omnisharp, working intellisence, "go to definiton", etc.
Actual behavior
The same problem with release versions of CLI (1.0.4)
Can you help me, what is wrong? Thank you very much, for your time.
The text was updated successfully, but these errors were encountered: