question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Suppressions don't work (or at least a lot of them).

See original GitHub issue

You can’t suppress messages. None of these three in this example actually suppress the associated errors; all of these were generated by the built-in quick fix that is intended to suppress them, not manually.

    public void Blah()
    {
        try
        {
            Console.WriteLine("Doing something");
        }
        // ReSharper disable once CatchAllClause
        catch (Exception e)
        {
            Console.WriteLine("Oh no! " + e.Message);
            // ReSharper disable once ExceptionNotDocumented
            // ReSharper disable once ThrowingSystemException
            throw;
        }

Pretty sure suppressions don’t work in various other situations, too, but this was a convenient example.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rwv37commented, Oct 26, 2016

Yes, the suppressions are working now. Thanks again.

0reactions
pedromagueijacommented, Oct 26, 2016

Wow, ok, weird indeed. Perhaps a typo in the version. But then now everything is working as expected right?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support inline definitions of suppressions because relative ...
Currently, suppressions need to be defined in a separate xml file. I think it would be useful if that was not necessary.
Read more >
Unwanted Thoughts? Don't Try to Suppress Them
It's time to accept the good/bad news: Thought suppression doesn't work. The harder you try to eliminate something from your mind, ...
Read more >
How do you tell Valgrind to completely suppress a ...
Is there a way to give Valgrind a single suppression rule to make it completely ignore a particular library? And even if there...
Read more >
CheckStyle suppressions not working with config ...
In general, it seems to work fine with multiple files in the zip. Maybe a simple error message such as “File not found”...
Read more >
Valgrind Suppression File Howto - WxWiki - wxWidgets
To check that valgrind is actually using the suppression files, run it with the -v option. The list of suppression files read is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found