Coder Social home page Coder Social logo

Docs failing about spine-toolbox HOT 5 CLOSED

PekkaSavolainen avatar PekkaSavolainen commented on June 26, 2024
Docs failing

from spine-toolbox.

Comments (5)

manuelma avatar manuelma commented on June 26, 2024 1

Sorry @PekkaSavolainen I forgot to tell you. I removed the "inherited-members" option and restablished viewcode. I don't need "inherited-members" anymore. Yes, it's cool, I'll take care of it. Thank you!

from spine-toolbox.

PekkaSavolainen avatar PekkaSavolainen commented on June 26, 2024

We should also duplicate the docs/requirements.txt from spinetoolbox to spinedb-api side.

from spine-toolbox.

PekkaSavolainen avatar PekkaSavolainen commented on June 26, 2024

Now docs/requirements.txt on both toolbox and spinedb-api branches 0.8-dev and master are compatible with Spine Toolbox requirements. Bottom line is that the newest Sphinx version we can use is 5.1.1 until we support a more recent dagster version.
The sphinx.ext.viewcode extension is enabled on toolbox side but disabled on spinedb-api because of this error when running build_doc (or make html) script.

Exception occurred:
  File "C:\Users\ttepsa\.conda\envs\sphinx4\lib\site-packages\sphinx\ext\viewcode.py", line 269, in collect_pages
    lines[start])
IndexError: list index out of range
The full traceback has been saved in C:\Users\ttepsa\AppData\Local\Temp\1\sphinx-err-zn5i7mox.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!

from spine-toolbox.

PekkaSavolainen avatar PekkaSavolainen commented on June 26, 2024

Yesterday, It looks like I left sphinx.ext.viewcode enabled on spinedb-api side when I was supposed to disable it (in commit spine-tools/Spine-Database-API@eea4e31). I thought enabling it was going to crash the CI on readthedocs.org but to my surprise it actually passed. After that commit there's been a few updates to that part of the code, so I tried running build_docs locally in commit spine-tools/Spine-Database-API@9e4f5eb. It gives me this error

[AutoAPI] Ignoring C:\data\GIT\SPINEDBAPI\spinedb_api\alembic\versions/9da58d2def22_create_entity_group_table.py
[AutoAPI] Ignoring C:\data\GIT\SPINEDBAPI\spinedb_api\alembic\versions/bba1e2ef5153_move_to_entity_based_design.py
[AutoAPI] Ignoring C:\data\GIT\SPINEDBAPI\spinedb_api\alembic\versions/bf255c179bce_get_rid_of_unused_fields_in_parameter_.py
[AutoAPI] Ignoring C:\data\GIT\SPINEDBAPI\spinedb_api\alembic\versions/ce9faa82ed59_create_entity_alternative_table.py
[AutoAPI] Ignoring C:\data\GIT\SPINEDBAPI\spinedb_api\alembic\versions/defbda3bf2b5_add_tool_feature_tables.py
[AutoAPI] Ignoring C:\data\GIT\SPINEDBAPI\spinedb_api\alembic\versions/fbb540efbf15_add_support_for_mysql.py
[AutoAPI] Ignoring C:\data\GIT\SPINEDBAPI\spinedb_api\alembic\versions/fd542cebf699_drop_on_update_clauses_from_object_and_.py
[AutoAPI] Reading files... [100%] C:\data\GIT\SPINEDBAPI\spinedb_api\spine_io\importers\__init__.pyconnector.py
[AutoAPI] Mapping Data... [  1%] C:\data\GIT\SPINEDBAPI\spinedb_api\compatibility.py
Extension error:
Handler <function _process_docstring at 0x000001E55A74E830> for event 'autodoc-process-docstring' threw an exception (exception: type object 'DatabaseMapping' has no attribute 'item_types')

But it looks like this commit passes on readthedocs.org. When I comment out functions setup(), _skip_member(), and _process_docstring() in /docs/source/conf.py, the local build_doc process passes.

So, the question is @manuelma, did you notice that the refactoring done in DatabaseMapping and it's inherited members probably fixed the build_doc build process with viewcode enabled and there seems to be no need for those 3 added functions in conf.py? Or are you still working on this?

EDIT
Looking at the discussion on gitter/element, it looks like this part is still under development, so I'll leave you to it.

from spine-toolbox.

PekkaSavolainen avatar PekkaSavolainen commented on June 26, 2024

Building the docs now works on both spinetoolbox and spinedb-api so I'm closing this issue.

from spine-toolbox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.