C
C#16mo ago
Taylor

✅ Suppressions aren't working in vs studio. What do I do?

I keep trying to select "suppress for all" and it does not at all save and make any changes. I've clicked this like 70 times now bc I keep WANTING it to work, but obviously it doesn't work. This is frustrating the hell out of me.
9 Replies
Angius
Angius16mo ago
Did you think of perhaps fixing the issue instead? That guarantees the warning goes away
Taylor
Taylor16mo ago
Yeah, I'm considering it. Trying to wrap my head around why C#8 thinks this is a good idea. Seems dumb as f*** unless there is some optimization reason behind it. It requires adjusting my way of thinking on pass-by-reference types.
Ainz
Ainz16mo ago
I think you should try and fix the issue to handle null, but just to answer the question, when I click Preview Changes and Click apply, it is creating an .editorconfig file on my PC. Is it not doing that for you?
Angius
Angius16mo ago
It makes nullability (almost) the same for value types and reference types, that's the reason behind that change Actually forces you to guard against nulls, so you don't get NullReferenceExceptions as often
Ainz
Ainz16mo ago
iirc, it's mostly or all static compiler analysis
Angius
Angius16mo ago
Yeah The "hurr durr no BC breaks ever or the world will collapse" really made the nullability changes toothless
Anton
Anton16mo ago
disable nullability for the whole project it's not dumb, it's you providing more info to the compiler
Taylor
Taylor16mo ago
I figured it out. Had to delete my .editorconfig file then retry the supression. It recreated the file and added it to the project and now it works.
Accord
Accord16mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts
❔ Pointer Issue.My pathetic code: ```c# unsafe class Test { static void Main() { int a = 1; int b =❔ vs code extension dev-get type of item under cursorafter being annoyed by the lack of quick documentation access for a library that i use, and no exist✅ What other prerequisites are necessary to run service worker as a service on a Windows Server?I have developed a service worker using .NET 7, and it successfully runs when tested through dotnet ✅ Math problem related to drawing a line renderer relative to an object in UnityIf I click on my cube and drag, the line renderer draws in the opposite direction of the cube as exp❔ Hello !I've some small issues with the ComboBoxHello ! I've an API that I use to get some data from a website and I'm trying to add some names to a✅ ASP.NET CORE with React.js or ASP.NET CORE WEB APPSo im creating web app for local caffe(some menu items like food, drinks, etc... and their prices). Hello World won't run in Visual Studio. I have a little C++ and Java experience from long ago. Help?❔ Required select field missing validation error message on iOSHey. If I create a `required` `select` field, and the select field is outside the current viewport (TextBlock and ListBox is not showing up when I run the program WPF C#Please help me, I'm confused why it doesn't show up when my other View like cancellation shows up ju✅ Gaps in understanding a LC solutionIt's about comprehending this solution https://leetcode.com/problems/binary-search/solutions/3365281