Skip to content
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

-Werror and -extra_checks flags don't work as documented #140

Closed
ekuefler opened this issue Apr 18, 2015 · 1 comment
Closed

-Werror and -extra_checks flags don't work as documented #140

ekuefler opened this issue Apr 18, 2015 · 1 comment
Assignees

Comments

@ekuefler
Copy link
Contributor

These flags are described at http://bazel.io/docs/bazel-user-manual.html#-Werror, but all of my attempts to pass them on the command line lead to errors:

$ bazel build ... -Werror:+all
Invalid options syntax: -Werror:+all
$ bazel build ... -Werror:all
Invalid options syntax: -Werror:all
$ bazel build ... -Werror:+all,-deprecation,-unchecked
Invalid options syntax: -Werror:+all,-deprecation,-unchecked
$ bazel build ... --javacopt="-Werror:+all,-deprecation,-unchecked"
INFO: Found 262 targets...
INFO: From Building src/main/java/com/ekuefler/libinterpolators.jar (3 files):
blaze javac: invalid flag: -Werror:+all,-deprecation,-unchecked
Usage: blaze javac <options> <source files>
use -help for a list of possible options
$ bazel build ... -extra_checks
Invalid options syntax: -extra_checks
$ bazel build ... -extra_checks:on
Invalid options syntax: -extra_checks:on
$ bazel build ... --extra_checks:on
Unrecognized option: --extra_checks:on
@damienmg
Copy link
Contributor

Sorry for that these are flags for error-prone support that is not yet open-sourced.

I will remove that from the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants