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

Missing references in inherited docstrings make documentation fail #2453

Closed
astrojuanlu opened this issue Mar 22, 2023 · 7 comments
Closed
Assignees
Labels
Component: Documentation 📄 Issue/PR for markdown and API documentation Issue: Bug Report 🐞 Bug that needs to be fixed

Comments

@astrojuanlu
Copy link
Member

Now docs are failing because of something else:

WARNING: Cannot resolve forward reference in type annotations of "kedro.framework.cli.jupyter.JupyterCommandGroup.shell_complete": name 'CompletionItem' is not defined
WARNING: Cannot resolve forward reference in type annotations of "kedro.framework.cli.jupyter.JupyterCommandGroup.shell_complete": name 'CompletionItem' is not defined

(see gh-2452, gh-2450)

I noticed this locally yesterday but I thought it was because I was breaking havoc.

It's unclear what changed here because we didn't touch anything and there haven't been click releases recently.

@astrojuanlu astrojuanlu added Component: Documentation 📄 Issue/PR for markdown and API documentation Issue: Bug Report 🐞 Bug that needs to be fixed labels Mar 22, 2023
astrojuanlu added a commit that referenced this issue Mar 22, 2023
"Temporary" (hopefully) workaround for gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
@stichbury
Copy link
Contributor

All the way down...
🐢
🐢
🐢

astrojuanlu added a commit that referenced this issue Mar 22, 2023
* Do not initialize Mermaid JS

Fix gh-2451.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Allow warnings in documentation

"Temporary" (hopefully) workaround for gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

---------

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
@astrojuanlu
Copy link
Member Author

It was #2353

@astrojuanlu astrojuanlu mentioned this issue Mar 22, 2023
5 tasks
@astrojuanlu astrojuanlu changed the title "Cannot resolve forward reference in type annotations" makes documentation fail Missing references in inherited docstrings make documentation fail Mar 23, 2023
@astrojuanlu
Copy link
Member Author

Also appearing now in gh-2421 and gh-2459:

/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.add_command:1:<autosummary>:1: WARNING: py:class reference target not found: Command
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.add_command:1:<autosummary>:1: WARNING: py:class reference target not found: Command
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.add_command:1:<autosummary>:1: WARNING: py:class reference target not found: click.core.Parameter
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.add_command:1:<autosummary>:1: WARNING: py:class reference target not found: Context
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.add_command:1:<autosummary>:1: WARNING: py:class reference target not found: click.core.Command
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.add_command:1: WARNING: py:class reference target not found: Command
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.command:16: WARNING: py:class reference target not found: click.core.Command
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.command:16: WARNING: py:class reference target not found: click.core.Command
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of kedro.framework.cli.jupyter.JupyterCommandGroup.command_class:: WARNING: py:class reference target not found: click.core.Command
<unknown>:1: WARNING: py:class reference target not found: click.core.Context
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.get_command:1: WARNING: py:class reference target not found: Command
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.get_command:5: WARNING: py:class reference target not found: click.core.Command
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Command.get_help_option:4: WARNING: py:class reference target not found: click.core.Option
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Command.get_params:2: WARNING: py:class reference target not found: click.core.Parameter
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.group:16: WARNING: py:class reference target not found: click.core.Group
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Group.group:16: WARNING: py:class reference target not found: click.core.Group
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of kedro.framework.cli.jupyter.JupyterCommandGroup.group_class:: WARNING: py:class reference target not found: Group
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.BaseCommand.main:6: WARNING: py:class reference target not found: Command
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.BaseCommand.main:35: WARNING: py:class reference target not found: Context
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.BaseCommand.make_context:1: WARNING: py:class reference target not found: Context
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.BaseCommand.make_context:16: WARNING: py:class reference target not found: click.core.Context
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.BaseCommand.make_context:26: WARNING: py:class reference target not found: click.core.Context
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.Command.make_parser:4: WARNING: py:class reference target not found: click.parser.OptionParser
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.MultiCommand.resolve_command:2: WARNING: py:class reference target not found: click.core.Command
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.MultiCommand.shell_complete:5: WARNING: py:class reference target not found: click.core.Context
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.MultiCommand.to_info_dict:5: WARNING: py:meth reference target not found: click.Context.to_info_dict
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.MultiCommand.to_info_dict:8: WARNING: py:class reference target not found: click.core.Context
/home/circleci/project/kedro/framework/cli/jupyter.py:docstring of click.core.MultiCommand.to_info_dict:9: WARNING: py:class reference target not found: Context

I can reproduce this in current main.

@astrojuanlu astrojuanlu moved this to In Progress in Kedro Framework Mar 23, 2023
@astrojuanlu astrojuanlu self-assigned this Mar 23, 2023
@astrojuanlu
Copy link
Member Author

And I'm quite sure the second set of messages come from sphinx-doc/sphinx#9884, which is unfortunately open

astrojuanlu added a commit that referenced this issue Mar 23, 2023
See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
astrojuanlu added a commit that referenced this issue Mar 23, 2023
See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
astrojuanlu added a commit that referenced this issue Mar 23, 2023
See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
astrojuanlu added a commit that referenced this issue Mar 23, 2023
See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
@astrojuanlu

This comment was marked as resolved.

astrojuanlu added a commit that referenced this issue Mar 23, 2023
astrojuanlu added a commit that referenced this issue Mar 23, 2023
See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
astrojuanlu added a commit that referenced this issue Mar 23, 2023
astrojuanlu added a commit that referenced this issue Mar 23, 2023
See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
astrojuanlu added a commit that referenced this issue Mar 23, 2023
astrojuanlu added a commit that referenced this issue Mar 28, 2023
See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
astrojuanlu added a commit that referenced this issue Mar 28, 2023
astrojuanlu added a commit that referenced this issue Mar 28, 2023
See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
astrojuanlu added a commit that referenced this issue Mar 28, 2023
astrojuanlu added a commit that referenced this issue Mar 28, 2023
See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
astrojuanlu added a commit that referenced this issue Mar 28, 2023
astrojuanlu added a commit that referenced this issue Mar 28, 2023
See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
astrojuanlu added a commit that referenced this issue Mar 28, 2023
jmholzer pushed a commit that referenced this issue Mar 29, 2023
* Do not initialize Mermaid JS

Fix gh-2451.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Allow warnings in documentation

"Temporary" (hopefully) workaround for gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

---------

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
Signed-off-by: Jannic Holzer <[email protected]>
astrojuanlu added a commit that referenced this issue Mar 30, 2023
See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
astrojuanlu added a commit that referenced this issue Mar 30, 2023
astrojuanlu added a commit that referenced this issue Mar 30, 2023
* Remove unused docs/package.json

Nowadays sphinx-autobuild offers similar functionality.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix Sphinx language config

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix circular imports

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove unused documentation extensions

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Try to not move files around

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix CSS paths

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix file hierarchy

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix Read the Docs configuration

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Update documentation dependencies

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Manually fix JupyterCommandGroup API docs

See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Install all documentation dependencies

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Restore test requirements

kedro.extras.datasets is still being tested.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove all autosummary members from problematic class

See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Temporarily disable nitpicky mode for linkcheck

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Upgrade Read the Docs to Python 3.8

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix destination of linkcheck

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Minor fixes to docstrings

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Minor reference fix

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Cap sphinx-autodoc-typehints version

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Restore nitpicky linkcheck

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Restore treating documentation warnings as errors

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove redundant build-docs CI job

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Ignore .rst files generated to support docs build

Signed-off-by: Jo Stichbury <[email protected]>

* Explain ignored documentation files

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Move linkcheck to Read the Docs

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove old devserver Makefile target

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix databricks broken reference

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix pyspark broken reference

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix other broken references

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

---------

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
Signed-off-by: Jo Stichbury <[email protected]>
Co-authored-by: Jo Stichbury <[email protected]>
jmholzer pushed a commit that referenced this issue Mar 30, 2023
* Remove unused docs/package.json

Nowadays sphinx-autobuild offers similar functionality.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix Sphinx language config

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix circular imports

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove unused documentation extensions

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Try to not move files around

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix CSS paths

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix file hierarchy

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix Read the Docs configuration

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Update documentation dependencies

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Manually fix JupyterCommandGroup API docs

See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Install all documentation dependencies

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Restore test requirements

kedro.extras.datasets is still being tested.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove all autosummary members from problematic class

See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Temporarily disable nitpicky mode for linkcheck

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Upgrade Read the Docs to Python 3.8

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix destination of linkcheck

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Minor fixes to docstrings

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Minor reference fix

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Cap sphinx-autodoc-typehints version

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Restore nitpicky linkcheck

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Restore treating documentation warnings as errors

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove redundant build-docs CI job

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Ignore .rst files generated to support docs build

Signed-off-by: Jo Stichbury <[email protected]>

* Explain ignored documentation files

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Move linkcheck to Read the Docs

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove old devserver Makefile target

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix databricks broken reference

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix pyspark broken reference

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix other broken references

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

---------

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
Signed-off-by: Jo Stichbury <[email protected]>
Co-authored-by: Jo Stichbury <[email protected]>
Signed-off-by: Jannic Holzer <[email protected]>
jmholzer pushed a commit that referenced this issue Mar 30, 2023
* Remove unused docs/package.json

Nowadays sphinx-autobuild offers similar functionality.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix Sphinx language config

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix circular imports

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove unused documentation extensions

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Try to not move files around

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix CSS paths

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix file hierarchy

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix Read the Docs configuration

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Update documentation dependencies

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Manually fix JupyterCommandGroup API docs

See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Install all documentation dependencies

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Restore test requirements

kedro.extras.datasets is still being tested.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove all autosummary members from problematic class

See gh-2453.

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Temporarily disable nitpicky mode for linkcheck

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Upgrade Read the Docs to Python 3.8

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix destination of linkcheck

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Minor fixes to docstrings

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Minor reference fix

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Cap sphinx-autodoc-typehints version

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Restore nitpicky linkcheck

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Restore treating documentation warnings as errors

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove redundant build-docs CI job

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Ignore .rst files generated to support docs build

Signed-off-by: Jo Stichbury <[email protected]>

* Explain ignored documentation files

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Move linkcheck to Read the Docs

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Remove old devserver Makefile target

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix databricks broken reference

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix pyspark broken reference

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

* Fix other broken references

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>

---------

Signed-off-by: Juan Luis Cano Rodríguez <[email protected]>
Signed-off-by: Jo Stichbury <[email protected]>
Co-authored-by: Jo Stichbury <[email protected]>
@astrojuanlu
Copy link
Member Author

Addressed in gh-2459.

@github-project-automation github-project-automation bot moved this from In Progress to Done in Kedro Framework Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation 📄 Issue/PR for markdown and API documentation Issue: Bug Report 🐞 Bug that needs to be fixed
Projects
Archived in project
Development

No branches or pull requests

2 participants