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

GlobalSuppression doesn't take effect #8056

Closed
TamasSzalisznyi opened this issue Mar 12, 2025 · 2 comments
Closed

GlobalSuppression doesn't take effect #8056

TamasSzalisznyi opened this issue Mar 12, 2025 · 2 comments

Comments

@TamasSzalisznyi
Copy link

Type: Bug

Issue Description

Some warnings are suppressed in the global suppression file but they are still reported in the project

Steps to Reproduce

add a suppression with higher scope. I'm using namespace and type usually

Expected Behavior

warning should be not visible more

Actual Behavior

warnings are visible

Image

Logs

C# log

Post the output from Output-->C# here

exthost.log
extensionTelemetry.log
ms-dotnettools.vscode-dotnet-runtime.zip
exthost.zip
ms-dotnettools.csdevkit.zip

C# LSP Trace Logs

Post the output from Output-->C# LSP Trace Logs here. Requires `dotnet.server.trace` to be set to `Trace`

Environment information

VSCode version: 1.84.2
C# Extension: 2.50.27
Using OmniSharp: false

Dotnet Information .NET SDK: Version: 8.0.403 Commit: c64aa40a71 Workload version: 8.0.400-manifests.18f19b92 MSBuild version: 17.11.9+a69bbaaf5

Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Users\tszalisz\dotnet8\sdk\8.0.403\

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.

Host:
Version: 8.0.10
Architecture: x64
Commit: 81cabf2857

.NET SDKs installed:
8.0.403 [C:\Users\tszalisz\dotnet8\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.10 [C:\Users\tszalisz\dotnet8\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.10 [C:\Users\tszalisz\dotnet8\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 8.0.10 [C:\Users\tszalisz\dotnet8\shared\Microsoft.WindowsDesktop.App]

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

Environment variables:
DOTNET_ROOT [C:\Users\tszalisz\dotnet8]

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Visual Studio Code Extensions
Extension Author Version Folder Name
autodocstring njpwerner 0.6.1 njpwerner.autodocstring-0.6.1
copilot GitHub 1.250.0 github.copilot-1.250.0
copilot-chat GitHub 0.10.2 github.copilot-chat-0.10.2
csdevkit ms-dotnettools 1.7.27 ms-dotnettools.csdevkit-1.7.27-win32-x64
csharp ms-dotnettools 2.50.27 ms-dotnettools.csharp-2.50.27-win32-x64
debugpy ms-python 2024.0.0 ms-python.debugpy-2024.0.0-win32-x64
even-better-toml tamasfe 0.19.2 tamasfe.even-better-toml-0.19.2
gitlens eamodio 16.3.2 eamodio.gitlens-16.3.2
intellicode-api-usage-examples VisualStudioExptTeam 0.2.8 visualstudioexptteam.intellicode-api-usage-examples-0.2.8
pylint ms-python 2025.2.0 ms-python.pylint-2025.2.0
python ms-python 2024.2.1 ms-python.python-2024.2.1
robotcode d-biehl 0.82.3 d-biehl.robotcode-0.82.3
vscode-dotnet-runtime ms-dotnettools 2.2.8 ms-dotnettools.vscode-dotnet-runtime-2.2.8
vscode-eslint dbaeumer 3.0.8 dbaeumer.vscode-eslint-3.0.8
vscode-pylance ms-python 2024.3.2 ms-python.vscode-pylance-2024.3.2
vscode-xml redhat 0.28.0 redhat.vscode-xml-0.28.0-win32-x64
vscodeintellicode VisualStudioExptTeam 1.3.1 visualstudioexptteam.vscodeintellicode-1.3.1
vscodeintellicode-csharp ms-dotnettools 2.2.3 ms-dotnettools.vscodeintellicode-csharp-2.2.3-win32-x64

Extension version: 2.50.27
VS Code version: Code 1.84.2 (1a5daa3a0231a0fbba4f14db7ec463cf99d7768e, 2023-11-09T10:51:52.184Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Xeon(R) Platinum 8358P CPU @ 2.60GHz (6 x 2594)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
Load (avg) undefined
Memory (System) 20.00GB (7.90GB free)
Process Argv --crash-reporter-id 345204b3-35d1-47c0-9b2b-fd5dba7f51cc
Screen Reader no
VM 100%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
vscrp:30673768
962ge761:30959799
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl2:31139839
pythonrstrctxt:31112756
nativeloc2:31192216
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
f5992895:31254866
jda6j935:31233686
4d2d8976:31256800
31787653:31256342

@dibarbet
Copy link
Member

@TamasSzalisznyi would you mind updating your C# extension to the latest prerelease (2.70.15)? It looks like you're on a very old version and there was a bug with suppressions previously.

Image

@dibarbet
Copy link
Member

dibarbet commented Apr 1, 2025

closing, not actionable

@dibarbet dibarbet closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants