Menu

#415 Provide fallbacks for new configuration settings.

None
closed-fixed
nobody
None
2021-04-23
2021-04-05
No

Exception occurred:
File "c:\programs\python\lib\site-packages\docutils\parsers\rst__init__.py", line 196, in parse
if len(line) > self.document.settings.line_length_limit:
AttributeError: 'Values' object has no attribute 'line_length_limit'

Discussion

  • Günter Milde

    Günter Milde - 2021-04-07
    • summary: broken 0.17 --> 0.17 version incompatibility with some 3rd party code
    • status: open --> pending-works-for-me
     
  • Günter Milde

    Günter Milde - 2021-04-07

    Thank you for reporting a problem with Docutils.
    Similarities to other reports (https://github.com/readthedocs/recommonmark/issues/220, https://github.com/sphinx-doc/sphinx/issues/3951) suggest this is due to a version incompatibility and inproper setup¹ of document.settings in the recommonmark parser.
    ¹ The docstring in utils.new_document() states since 2010:

    If you will use the document object with any Docutils components,
    you must provide their default settings as well. ...

    and provides an example on how to achieve this automatically.

    Since revision 8671 (2021-04-07), Docutils provides fallbacks for parser config settings.
    This way, missing parser settings will not lead to errors.

    Please check if this solves your problem, if not, please provide a more detail.

     

    Last edit: Günter Milde 2021-04-14
  • Chris Sewell

    Chris Sewell - 2021-04-07

    thanks yeh I'll check it out 👍

     
  • Günter Milde

    Günter Milde - 2021-04-08
    • status: pending-works-for-me --> open-fixed
     
  • Chris Sewell

    Chris Sewell - 2021-04-11

    now fixed for myst-paser thanks

     
  • Günter Milde

    Günter Milde - 2021-04-14
    • summary: 0.17 version incompatibility with some 3rd party code --> Provide fallbacks for new configuration settings.
     
  • Günter Milde

    Günter Milde - 2021-04-23
    • status: open-fixed --> closed-fixed
     
  • Günter Milde

    Günter Milde - 2021-04-23

    Fixed in 0.17.1. Thank you for the report.

     

Log in to post a comment.

Auth0 Logo