-
Notifications
You must be signed in to change notification settings - Fork 45
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
stardoc fails to generate documentation for module extensions #123
Comments
I suspect this is related to #117 and bazelbuild/bazel#14140. |
I don't know enough about #117 to rule it out, but I have a feeling it's unrelated. It seems to be that 'tag_class' and 'module_extension' are new native starlark symbols that are simply not handled with the stardoc parser. I've got a more complete, traceback now for a different project bazelembedded/rules_cipd.
|
Any updates on this? I know that @fmeum has done a bunch of work on bzlmod support. I am guessing that stardoc is now buildable using bzlmod but not supporting documenting extensions. FWIW, I'm getting when I use stardoc 0.5.6
The extension is here: And I added:
|
@silvergasp, as of bazelbuild/bazel@fa65782 we have a native rule in Bazel ( This rule (unlike current Stardoc releases) at least does not crash on Starlark files containing module extensions - but it cannot document module extension objects (because we don't yet have representation for them in the proto). So in the case of the .bzl file given as example in #123 (comment), you will get docs for The remaining steps would be approximately as follows:
|
Stardoc fails when trying to generate documentation for a bzlmod extension;
Steps to reproduce;
Create a module extension;
Then attempt to generate docs for the module extension;
Expected error;
EDIT: This is my .bazelrc, in case you find it useful.
The text was updated successfully, but these errors were encountered: