-
Notifications
You must be signed in to change notification settings - Fork 417
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
Pass the logger for loading projects. So errors occur in loading projects can be printed out. #2288
Pass the logger for loading projects. So errors occur in loading projects can be printed out. #2288
Conversation
…ects can be printed out. omnisharp-vscode issue #4832
Thanks. Do you have an example of this change - logs before and after? |
@filipw this PR is to address the issue Some key error info missing when failed in loading some projects, in which situation it's no way to figure out what's exactly going wrong. Log examples before and after the change are hereOmniSharp Log before the change
OmniSharp log after the change, containing the info of specific missing .NET SDK version in its error messages
|
Looks like the difference in this case are the following lines. [info]: OmniSharp.Stdio.Host
Omnisharp server running using Stdio at location 'c:\Source\GitHub\ILSpy' on host 45896.
[info]: OmniSharp.MSBuild.ProjectManager
Loading project: c:\Source\GitHub\ILSpy\ICSharpCode.Decompiler\ICSharpCode.Decompiler.csproj
+ [fail]: OmniSharp.MSBuild.ProjectLoader
+ C:\Program Files\dotnet\sdk\5.0.100\Sdks\Microsoft.NET.Sdk\Sdk not found. Check that a recent enough .NET SDK is installed and/or increase the version specified in global.json.
+ [fail]: OmniSharp.MSBuild.ProjectLoader
+ The SDK 'Microsoft.NET.Sdk' specified could not be found.
[fail]: OmniSharp.MSBuild.ProjectManager
Failed to load project file '{projectFilePath}'.
Microsoft.Build.Exceptions.InvalidProjectFileException: The SDK 'Microsoft.NET.Sdk' specified could not be found. c:\Source\GitHub\ILSpy\ICSharpCode.Decompiler\ICSharpCode.Decompiler.csproj |
That looks good then 👍 |
@cateyes99 Thanks. We are looking into it. This seems to be a result of merging the vnext branch into master which increased the number of artifacts being built. |
Tracking a fix in #2293. Once it merges we will need to update this branch with the changes. |
Thanks @cateyes99 ! |
My pleasure 😄 |
Pass the logger for loading projects. So errors occur in loading projects can be printed out.
omnisharp-vscode issue #4832