Skip to content
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

Stop terrorizing with popups! #6125

Closed
sdudnic opened this issue Aug 14, 2023 · 3 comments · Fixed by dotnet/roslyn#69494
Closed

Stop terrorizing with popups! #6125

sdudnic opened this issue Aug 14, 2023 · 3 comments · Fixed by dotnet/roslyn#69494

Comments

@sdudnic
Copy link

sdudnic commented Aug 14, 2023

First of all,

  • where is the documentation for all the settings of this C# extension?
    I saw the description of some features, but there is no docs on settings, at least, I didn't found it, is not easy to find. I stress the docs of the settings available.

Now on the problem I encountered:

  1. Open Visual Studio Code
  2. Open a asp.net web application project built with .NET 5. Note I have installed SDK .NET 7, but I have a project in .NET 5 and I don't want actually to migrate it.
  3. It starts popping up the popup with the message "There were problems loading myproj.web.csproj. See log for details", I close it, it reappears, I close it, it reappears more and more.
    image

StackOverflow question asked here.

Note I have installed SDK .NET 7, but I have a project in .NET 5 and I don't want actually to migrate it.

I have nothing against a single popup of warning to update to more recent version, but not every 2 seconds, it makes me crazy and impossible to debug the application.

VS Code settings here, as I didn't found a documentation on these, I put them more or less randomly:

"omnisharp.path": "latest",
"omnisharp.useEditorFormattingSettings": false,
"csharp.suppressBuildAssetsNotification": true,
"csharp.suppressDotnetRestoreNotification": true,
"csharp.showOmnisharpLogOnError": false,
"csharp.suppressDotnetInstallWarning": true,
"csharp.suppressProjectJsonWarning": true,
"omnisharp.loggingLevel": "error",
"csharp.unitTestDebuggingOptions": {

}

Environment data

dotnet --info output:

.NET SDK:
 Version:   7.0.307     
 Commit:    7b77e35a2b  

Runtime Environment:    
 OS Name:     Windows   
 OS Version:  10.0.19045
 OS Platform: Windows   
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\7.0.307\

Host:
  Version:      7.0.10
  Architecture: x64
  Commit:       a6dbb800a4

.NET SDKs installed:
  3.1.426 [C:\Program Files\dotnet\sdk]
  5.0.408 [C:\Program Files\dotnet\sdk]
  5.0.416 [C:\Program Files\dotnet\sdk]
  6.0.203 [C:\Program Files\dotnet\sdk]
  6.0.316 [C:\Program Files\dotnet\sdk]
  7.0.110 [C:\Program Files\dotnet\sdk]
  7.0.306 [C:\Program Files\dotnet\sdk]
  7.0.307 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
  Microsoft.AspNetCore.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.20 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 6.0.21 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.AspNetCore.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
  Microsoft.NETCore.App 3.1.23 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.15 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.20 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 6.0.21 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.NETCore.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
  Microsoft.WindowsDesktop.App 3.1.32 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 5.0.17 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.5 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.12 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.13 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.15 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.20 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 6.0.21 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.9 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
  Microsoft.WindowsDesktop.App 7.0.10 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
  x86   [C:\Program Files (x86)\dotnet]
    registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

VS Code version:

Version: 1.81.1 (user setup)
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09T22:22:42.175Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19045

C# Extension version: v2.0.357

OmniSharp log

[Info  - 1:19:35 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.9748797
[Warn  - 1:19:37 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
[Info  - 1:19:37 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.6904995
[Warn  - 1:19:40 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
[Info  - 1:19:40 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.6602501
[Warn  - 1:19:42 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
[Info  - 1:19:42 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.6032622
[Warn  - 1:19:44 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
[Info  - 1:19:44 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.5165965
[Warn  - 1:19:46 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
[Info  - 1:19:46 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.5761025
[Warn  - 1:19:48 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
[Info  - 1:19:48 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.4864370
[Warn  - 1:19:49 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
[Info  - 1:19:49 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.4679226
[Warn  - 1:19:52 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
[Info  - 1:19:52 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.6175536
[Warn  - 1:19:53 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
[Info  - 1:19:53 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.4470724
[Warn  - 1:19:55 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
[Info  - 1:19:55 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.4659246
[Warn  - 1:19:57 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
[Info  - 1:19:57 PM] [LanguageServerProjectSystem]Completed (re)load of all projects in 00:00:01.4788951
[Warn  - 1:20:01 PM] [LanguageServerProjectSystem]Warning while loading c:\proj\myproject\src\myproject.Web\myproject.Web.csproj: The target framework 'net5.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/dotnet-core-support for more information about the support policy.
@arunchndr
Copy link
Member

There are some vscode limitations we worked around here for the popups in dotnet/roslyn#69455. Looks like there may be a lingering bug.

@sdudnic
Copy link
Author

sdudnic commented Aug 16, 2023

could you guide me on my first question, where is the documentation on settings?

@dibarbet
Copy link
Member

Unfortunately we don't have a lot of documentation on all the settings as we're still in the progress of migrating all the existing O# options to the new LSP server.

However - the VSCode settings page should contain individual documentation for various settings. There settings in the "OmniSharp" category are currently only respected by O#.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants