-
Notifications
You must be signed in to change notification settings - Fork 304
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
TreatWarningsAsErrors does not treat warnings as errors #2521
Comments
|
Treating warnings as errors was disabled for referenced projects, see #2288. But looks like this affects the actual project as well. |
I've sent #2527 to fix this. This ignores Not sure what's the best solution here, Fable could ignore errors from packages too, but this will likely produce false negatives 🤔 |
Description
When the property
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
is included in the fsproj file, the Fable compiler still issues warnings instead of errors.Repro code
Test.fsproj
Library.fs
Expected and actual results
Expected
Running
dotnet fable
should print an error message.Actual
Running
dotnet build
does print an error message.Running
dotnet fable
does not print an error message.Related information
dotnet fable --version
: 3.2.12The text was updated successfully, but these errors were encountered: