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

Building documentation fails with Bazel 6 #1853

Closed
ylecornec opened this issue Jan 4, 2023 · 1 comment
Closed

Building documentation fails with Bazel 6 #1853

ylecornec opened this issue Jan 4, 2023 · 1 comment

Comments

@ylecornec
Copy link
Member

Building documentation targets from the docs directory with Bazel 6 fails with the following error:

./external/bazel_tools/tools/cpp/cc_configure.bzl:194:26: name 'module_extension' is not defined
com.google.devtools.build.skydoc.SkydocMain$StarlarkEvaluationException: name 'module_extension' is not defined
	at com.google.devtools.build.skydoc.SkydocMain.recursiveEval(SkydocMain.java:393)
	at com.google.devtools.build.skydoc.SkydocMain.recursiveEval(SkydocMain.java:402)
	at com.google.devtools.build.skydoc.SkydocMain.recursiveEval(SkydocMain.java:402)
	at com.google.devtools.build.skydoc.SkydocMain.eval(SkydocMain.java:260)
	at com.google.devtools.build.skydoc.SkydocMain.main(SkydocMain.java:163)
Stardoc documentation generation failed: name 'module_extension' is not defined

It seems that stardoc fails to parse files from @bazel_tools which use the recent module_extension feature.

See this similar issue: bazelbuild/stardoc#123

@ylecornec
Copy link
Member Author

This seems to be fixed by updating stardoc to version 0.5.3

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

No branches or pull requests

1 participant