Omnisharp-vscode: Warnings during build are treated as errors

Created on 20 Jan 2018  路  4Comments  路  Source: OmniSharp/omnisharp-vscode

Steps to reproduce

  • dotnet new console
  • modify program.cs and add an unsigned variable
  • add default task and launch configuration
  • debug the project

Expected behavior

Project runs.

Actual behavior

The preLaunchTask 'build' terminated with exit code 1. This happens because there was a warning during build. The build actually did complete successfully.

Bug

Most helpful comment

If I comment the problemMatcher line in tasks.json I don't get stopped when building with warnings. But do when I get errors.

All 4 comments

Thanks for filing. I can definitely reproduce this. It doesn't appear that the warning was actually elevated to an error in the build but VS Code seems to be refusing to launch the debugger due to the warning.

If I comment the problemMatcher line in tasks.json I don't get stopped when building with warnings. But do when I get errors.

This issue is incredibly annoying. I'm glad it's not just me.

Closing this as the issue has been fixed in the newest release.

Was this page helpful?
0 / 5 - 0 ratings