-
Notifications
You must be signed in to change notification settings - Fork 676
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 no longer runs on most of my projects #3033
Comments
I'm doing more debugging... There appears to be a problem with OmniSharp trying to load projects that have |
@smashedapples20 OmniSharp expects your projects to be restored. I suspect that if you update your access tokens that this will resolve itself. However, if you want to get more informative logs, you can set the setting "omnisharp.loglevel" to "debug". |
@rchande Everything is restored. Both |
Upping to "debug" didn't change the log content. |
@smashedapples20 Sorry, apparently the option is called |
I just found that... running now. |
I pared it down to a single project (not in a solution), and now I have the debug outputStarting OmniSharp server at 4/30/2019, 11:55:53 AM Target: c:\repos\Redacted\SharedComponents\srcOmniSharp server started. Loaded OmniSharp.Cake, Version=1.32.0.0, Culture=neutral, PublicKeyToken=null No solution files found in 'c:\repos\Redacted\SharedComponents\src' Adding project 'c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj' |
it could be that you are running into problem with wildcard package references / runtime versions? |
@filipw You're a wizard! That was it... I got so focused on the fact that the references I was eliminating were Azure DevOps feeds instead of using wildcards. Thank you for your help! |
Issue Description
I wish I could try to explain what's going on. OmniSharp is failing to run on most of my project, but I have at least one that it's still working on. I can't find any differences to explain why it runs on some but not on others. The log output doesn't give any hint (to me at least) that anything is even wrong.
The log on the projects that fail to load properly seems to end abruptly after "Adding project …" where the projects that load correctly go on to an "Update project" step.
Steps to Reproduce
Have projects with some package references to NuGet packages stored in an Azure DevOps feed.
One or more of the following:
Expected Behavior
Everything continues to work as normal
Actual Behavior
Seemingly arbitrary projects fail to have the OmniSharp features work
Logs
OmniSharp log
Log of failing project
Starting OmniSharp server at 4/30/2019, 10:57:17 AM Target: c:\repos\Redacted\SharedComponents\SharedComponents.slnOmniSharp server started.
Path: C:\Users\Redacted.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18\OmniSharp.exe
PID: 10600
Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Visual Studio Professional 2017 15.9.28307.344 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
2: StandAlone 15.0 - "C:\Users\Redacted.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18.msbuild\Current\Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Professional 2017 15.9.28307.344 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\repos\Redacted\SharedComponents'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.WorkspaceInitializer
Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
info: OmniSharp.MSBuild.ProjectSystem
Detecting projects in 'c:\repos\Redacted\SharedComponents\SharedComponents.sln'.
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\repos\Redacted\SharedComponents\test\SharedComponentsTest.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\repos`Reacted`\SharedComponents\testUtils\SharedComponentsTestUtilities.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\repos\Redacted\SharedComponents'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\repos\Redacted\SharedComponents' on host 19316.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\repos\Redacted\SharedComponents\src\SharedComponents.csproj'
Log of project that still loads properly
Starting OmniSharp server at 4/30/2019, 10:43:16 AM Target: c:\repos\Redacted\Core\Core.slnOmniSharp server started.
Path: C:\Users\Redacted.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18\OmniSharp.exe
PID: 17772
Starting OmniSharp on Windows 6.2.9200.0 (x64)
info: OmniSharp.Services.DotNetCliService
DotNetPath set to dotnet
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Located 2 MSBuild instance(s)
1: Visual Studio Professional 2017 15.9.28307.344 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
2: StandAlone 15.0 - "C:\Users\Redacted.vscode\extensions\ms-vscode.csharp-1.19.0.omnisharp\1.32.18.msbuild\Current\Bin"
info: OmniSharp.MSBuild.Discovery.MSBuildLocator
Registered MSBuild instance: Visual Studio Professional 2017 15.9.28307.344 - "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin"
info: OmniSharp.Cake.CakeProjectSystem
Detecting Cake files in 'c:\repos\Redacted\Core'.
info: OmniSharp.Cake.CakeProjectSystem
Could not find any Cake files
info: OmniSharp.WorkspaceInitializer
Project system 'OmniSharp.DotNet.DotNetProjectSystem' is disabled in the configuration.
info: OmniSharp.MSBuild.ProjectSystem
Detecting projects in 'c:\repos\Redacted\Core.sln'.
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\repos\Redacted\Core\src\Core.csproj'
info: OmniSharp.MSBuild.ProjectManager
Queue project update for 'c:\repos\Redacted\Core\test\CoreTest.csproj'
info: OmniSharp.Script.ScriptProjectSystem
Detecting CSX files in 'c:\repos\Redacted\Core'.
info: OmniSharp.Script.ScriptProjectSystem
Could not find any CSX files
info: OmniSharp.WorkspaceInitializer
Invoking Workspace Options Provider: OmniSharp.Roslyn.CSharp.Services.CSharpWorkspaceOptionsProvider
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\repos\Redacted\Core\src\Core.csproj
info: OmniSharp.WorkspaceInitializer
Configuration finished.
info: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\repos\Redacted\Core' on host 5268.
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\repos\Redacted\Core\src\Core.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\repos\Redacted\Core\src\Core.csproj'
info: OmniSharp.MSBuild.ProjectManager
Loading project: c:\repos\Redacted\Core\test\CoreTest.csproj
info: OmniSharp.MSBuild.ProjectManager
Successfully loaded project file 'c:\repos\Redacted\Core\test\CoreTest.csproj'.
info: OmniSharp.MSBuild.ProjectManager
Adding project 'c:\repos\Redacted\Core\test\CoreTest.csproj'
info: OmniSharp.Roslyn.CSharp.Services.Refactoring.V2.CachingCodeFixProviderForProjects
Skipping code fix provider 'Xunit.Analyzers.FixProviders.MemberFixBase' because it's language doesn't match 'C#'.
info: OmniSharp.MSBuild.ProjectManager
Update project: Core
info: OmniSharp.MSBuild.ProjectManager
Update project: CoreTest
C# log
Environment information
VSCode version: 1.33.1
C# Extension: 1.19.0
Dotnet Information
.NET Core SDK (reflecting any global.json): Version: 2.2.105 Commit: 7cecb35b92Runtime Environment:
OS Name: Windows
OS Version: 10.0.17763
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\2.2.105\
Host (useful for support):
Version: 2.2.3
Commit: 6b8ad509b6
.NET Core SDKs installed:
1.1.9 [C:\Program Files\dotnet\sdk]
1.1.10 [C:\Program Files\dotnet\sdk]
1.1.11 [C:\Program Files\dotnet\sdk]
2.1.201 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.300 [C:\Program Files\dotnet\sdk]
2.1.402 [C:\Program Files\dotnet\sdk]
2.1.503 [C:\Program Files\dotnet\sdk]
2.2.105 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.11 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.0.13 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.8 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download
Visual Studio Code Extensions
The text was updated successfully, but these errors were encountered: