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.

Incorrect error codes reported

See original GitHub issue

Version Used:

I’m updating Windows Forms SDK/toolset from P6 to RC1, and our builds fail with errors which we have already suppressed. E.g.: image

It appears instead of CS0618 we must now be suppressing SYSLIB0011 but I had to spend time to figure it out on my own. Likewise we have other failures, e.g. image …and only VS is telling me that I now need to suppress a different one: image

Few builds:

Steps to Reproduce:

  1. Clone this commit: https://github.com/dotnet/winforms/commit/2427ee0140db52050535e9459384e6527610720d
  2. Run .\build.cmd
  3. Observe multiple failures

Expected Behavior:

Errors must either correctly report codes or use the existing suppression rules.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
RikkiGibsoncommented, Sep 17, 2020

/+warnaserror seems to be the problem. The minimal repro project https://github.com/dotnet/roslyn/issues/47736#issuecomment-693708428 gives an unexpected error CS0618 when either <WarningsAsErrors>SYSLIB0011</WarningsAsErrors> is specified or <TreatWarningsAsErrors>true</TreatWarningsAsErrors> is specified.

Thanks to @jmarolf for helping me track this down. I suppose this bug didn’t have the chance to negatively impact more people since corefx didn’t add custom diagnostic IDs until recently.

1reaction
RussKiecommented, Sep 17, 2020

One thing I totally forgot to mention (sorry), to start Windows Forms solution in VS you need to run:

restore.cmd
start-vs.cmd

This will restore the necessary dependencies and set env vars for VS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error codes in Device Manager in Windows
Lists the error codes that may be reported by Device Manager and the possible resolutions in Windows.
Read more >
Diagnostic Trouble Codes - What They Mean & How to Fix ...
Code P0411 : Secondary Air Injection System Incorrect Flow Detected. Learn what Trouble Code P0411 means, the cause, and how to fix it....
Read more >
A Complete Guide and List of HTTP Status Codes
A complete list of HTTP status codes with explaination of what they are, why they occur and what you can do to fix...
Read more >
Jurisdiction M Part A - CERT Error: Incorrect Coding
CERT Error: Incorrect Coding ... These codes may be ICD-CM, HCPCS, CPT or modifiers. Here are issues that lead to incorrect coding:.
Read more >
Desktop Underwriter Credit-related Error Codes Job Aid
111311. Credit agency error: Last name is missing or invalid. • Ensure the borrower's last name is in the last name field on...
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