You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runtime Environment:
OS Name: Windows
OS Version: 6.2.9200
OS Platform: Windows
RID: win8-x64
VS Code version:1.7.1
C# Extension version:1.5.1
Steps to reproduce
I am trying to develop a web Api solution using .NET cor and VS code. There was an update to C# extension which I installed today. Post update, I get following error while trying to load the intellisense. I have tried increasing the projectloadtimeout, but it is of no use
Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Diagnostics.DiagnosticSourceEventSource' threw an exception. ---> System.MissingMethodException: Method not found: 'Void System.Diagnostics.Tracing.EventSource..ctor(System.Diagnostics.Tracing.EventSourceSettings)'.
at System.Diagnostics.DiagnosticSourceEventSource..ctor()
at System.Diagnostics.DiagnosticSourceEventSource..cctor()
--- End of inner exception stack trace ---
at System.Diagnostics.DiagnosticListener..ctor(String name)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildHostingServices()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at OmniSharp.Program.Main(String[] args) in C:\Projects\omnisharp-roslyn\src\OmniSharp.Host\Program.cs:line 143
at Program.Main(String[] args) in C:\Projects\omnisharp-roslyn\src\OmniSharp\Program.cs:line 21
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).
Can you help? I can provide more details if needed
Expected behavior
Intellisense has to load
Actual behavior
Intellisense does not work
The text was updated successfully, but these errors were encountered:
Thanks! I can reproduce this on Windows 8.1 x64 with no Visual Studio installed. I suspect it's a problem with the version of the .NET Framework that's installed.
OK. I've updated the downloads for Windows to include this PR on OmniSharp: OmniSharp/omnisharp-roslyn#669. This will display a dialog telling the user to install .NET Framework 4.6 along with a link to download it from.
Note: OmniSharp must require .NET Framework 4.6 because the new MSBuild 15.0 that it uses does.
Environment data
dotnet --info
output:.NET Command Line Tools (1.0.0-preview2-003133)
Product Information:
Version: 1.0.0-preview2-003133
Commit SHA-1 hash: 74df06500c
Runtime Environment:
OS Name: Windows
OS Version: 6.2.9200
OS Platform: Windows
RID: win8-x64
VS Code version:1.7.1
C# Extension version:1.5.1
Steps to reproduce
I am trying to develop a web Api solution using .NET cor and VS code. There was an update to C# extension which I installed today. Post update, I get following error while trying to load the intellisense. I have tried increasing the projectloadtimeout, but it is of no use
OmniSharp: -s c:\aspnetwebapi --hostPID 13824 --stdio DotNet:enablePackageRestore=false --encoding utf-8
Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Diagnostics.DiagnosticSourceEventSource' threw an exception. ---> System.MissingMethodException: Method not found: 'Void System.Diagnostics.Tracing.EventSource..ctor(System.Diagnostics.Tracing.EventSourceSettings)'.
at System.Diagnostics.DiagnosticSourceEventSource..ctor()
at System.Diagnostics.DiagnosticSourceEventSource..cctor()
--- End of inner exception stack trace ---
at System.Diagnostics.DiagnosticListener..ctor(String name)
at Microsoft.AspNetCore.Hosting.WebHostBuilder.BuildHostingServices()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at OmniSharp.Program.Main(String[] args) in C:\Projects\omnisharp-roslyn\src\OmniSharp.Host\Program.cs:line 143
at Program.Main(String[] args) in C:\Projects\omnisharp-roslyn\src\OmniSharp\Program.cs:line 21
[ERROR] Error: OmniSharp server load timed out. Use the 'omnisharp.projectLoadTimeout' setting to override the default delay (one minute).
Can you help? I can provide more details if needed
Expected behavior
Intellisense has to load
Actual behavior
Intellisense does not work
The text was updated successfully, but these errors were encountered: