Starting OmniSharp server at 2017-9-20 22:51:29
Target: /Users/Tom/Projects/TomSweet/TomSweet.sln
OmniSharp server started wth Mono
Path: /Users/Tom/.vscode/extensions/ms-vscode.csharp-1.12.1/.omnisharp/run
PID: 2879
OmniSharp: -s /Users/Tom/Projects/TomSweet/TomSweet.sln --hostPID 2842 --stdio DotNet:enablePackageRestore=false --encoding utf-8 --loglevel information formattingOptions:useTabs=false formattingOptions:tabSize=4 formattingOptions:indentationSize=4
锘匡豢{"Event":"log","Body":{"LogLevel":"INFORMATION","Name":"OmniSharp.Startup","Message":"Omnisharp server running using Stdio at location '/Users/Tom/Projects/TomSweet' on host 2842."},"Seq":1,"Type":"event"}
[info]: OmniSharp.DotNet.DotNetProjectSystem
Initializing in /Users/Tom/Projects/TomSweet
[info]: OmniSharp.DotNet.DotNetProjectSystem
Auto package restore: False
[info]: OmniSharp.DotNet.DotNetProjectSystem
Update workspace context
[info]: OmniSharp.DotNet.DotNetProjectSystem
Resolving projects references
[info]: OmniSharp.MSBuild.MSBuildProjectSystem
OmniSharp initialized with Mono MSBuild.
MSBUILD_EXE_PATH: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/msbuild/15.0/bin/MSBuild.dll
MSBuildExtensionsPath: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild
TargetFrameworkRootPath: /Library/Frameworks/Mono.framework/Versions/5.2.0/lib/mono/xbuild-frameworks
RoslynTargetsPath: /Users/Tom/.vscode/extensions/ms-vscode.csharp-1.12.1/.omnisharp/omnisharp/msbuild/Roslyn
CscToolPath: /Users/Tom/.vscode/extensions/ms-vscode.csharp-1.12.1/.omnisharp/omnisharp/msbuild/Roslyn
[info]: OmniSharp.MSBuild.MSBuildProjectSystem
Detecting projects in '/Users/Tom/Projects/TomSweet/TomSweet.sln'.
[info]: OmniSharp.MSBuild.MSBuildProjectSystem
Loading project: /Users/Tom/Projects/TomSweet/TomSweet.Web/TomSweet.Web.csproj
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).
macOS Sirrra 10.12.6 (16G29)
Visual Code 1.16.1 (1.16.1)
ms-vscode.csharp-1.12.1
Mono JIT compiler version 5.2.0.215 (d15-3/da80840 Thu Jul 20 16:43:07 EDT 2017)
Have you tried setting the 'omnisharp.projectLoadTimeout' to a higher number as mentioned in the error? I'm not sure how large your project is, but it seems that MSBuild is taking longer that 1 minute to perform a designtime build of it.
Also, I've heard of projects taking a long time to be processed by MSBuild when there are a large number of non-C# files that should be excluded. There have been several issues reported about this, for example: https://github.com/dotnet/cli/issues/7525.
Mine was the latter of what @DustinCampbell said. Awesome!
@DustinCampbell
i have set the omnisharp.projectLoadTimeout to 3000,and it works well ,tku
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.
Hope this will help in case of issue with Omnisharp.
Thanks,
Shashi Bhan
Most helpful comment
Have you tried setting the 'omnisharp.projectLoadTimeout' to a higher number as mentioned in the error? I'm not sure how large your project is, but it seems that MSBuild is taking longer that 1 minute to perform a designtime build of it.
Also, I've heard of projects taking a long time to be processed by MSBuild when there are a large number of non-C# files that should be excluded. There have been several issues reported about this, for example: https://github.com/dotnet/cli/issues/7525.