<#20979 JVM BUILD file symbol help text isn't show...
# github-notifications
c
#20979 JVM BUILD file symbol help text isn't shown in `help`/`help-all` Issue created by huonw Describe the bug There's a few "JVM shading rules" (and similar types) that set
help
as instructed by their ABC: pants/src/python/pants/jvm/target_types.py Lines 602 to 614 in </pantsbuild/pants/commit/ec86d19cd954cd49a9562880a7c0dbc45632778c|ec86d19> However, it seems like this isn't hooked up right: these rules are BUILD file symbols and the help isn't obeyed: for instance, for pants/src/python/pants/jvm/target_types.py Lines 693 to 695 in </pantsbuild/pants/commit/ec86d19cd954cd49a9562880a7c0dbc45632778c|ec86d19>
Copy code
PANTS_VERSION=2.22.0.dev3 pants --backend-packages=pants.backend.experimental.java help shading_zap
Copy code
`shading_zap` BUILD file symbol
-------------------------------

Signature: shading_zap(pattern: 'str') -> None

JvmShadingZapRule(pattern: 'str')
The default
JvmShadingZapRule(...)
text appears to just be reiterating the dataclass definition. I think these BUILD file symbols use the doc string, not
help
, so potentially the example above should be formatted as something like this:
Copy code
class JvmShadingZapRule(JvmShadingRule): 
    "Removes from the final artifact the occurrences of the `pattern`." 

    alias = "shading_zap"
This appears to affect: •
shading_keep
shading_relocate
shading_rename
shading_zap
duplicate_rule
jvm_exclude
scala_exclude
(The last three aren't
JvmShadingRule
subclasses but follow a similar pattern.) Pants version 2.22.0.dev3 OS both Additional info • Will appear in online docs too after pantsbuild/pantsbuild.org#216 • Relevant issues: • #18117#14832 pantsbuild/pants