-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add Documentation to Rules Emitted by bazel info build-language
#15817
Comments
Looks like key code was marked deprecated 6 years ago, even though it is a key part of the IntelliJ plugin. I think perhaps as a part of this fix, the Commit from 6 years ago: f07b76e#diff-a9d20b275e47b3ac9bdf13c11289270428ec0db8f69e9e1f1dee80909cedd4c2R568
bazel/src/main/java/com/google/devtools/build/lib/runtime/commands/info/BuildLanguageInfoItem.java Line 47 in 33f7648
|
Related issues from the bazel intellij plugin repo |
Would be interested in implementing, pending some kind of green light. Sketch of the design:
Do something similar for attributes (note that protos for rules/attributes already have a Tests:
Also, probably remove |
cc/ @ckolli5 -- hoping you might be able to weigh in or cc/ someone else |
I don't recall making InfoItem deprecated, also as @meisterT signals, this is for native rules only. Not sure if I can be of much help here. I refactored InfoItem to be able to inject the product name so that "Bazel" would be printed in the right places but I don't recall anything related to build-language. |
Some of the rules will remain in Bazel, so adding more info for native rules shouldn't hurt. |
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale. |
Note that add245c added info for Starlarkified |
Description of the feature request:
Add documentation to the result of
bazel info build-language
What underlying problem are you trying to solve with this feature?
bazel info build-language
is relied upon by the IntelliJ plugin (i.e. see https://github.com/bazelbuild/intellij/blob/master/base/src/com/google/idea/blaze/base/lang/buildfile/sync/BuildLangSyncPlugin.java#L125 -- this runsbazel info build-language
and then parses the output).Because
bazel info build-language
does not emit documentation, all that is displayed for a given internal rule is the following (which is generated by the plugin and is the same for every built-in rule):By adding documentation to the rules emitted, better documentation can be displayed for IntelliJ bazel users.
The text was updated successfully, but these errors were encountered: