Issue #1382 resolved

mysterious inliner.document.settings.default_reference_context exception

created an issue

I have no idea what has gone wrong. I am guessing it has something to do with a code block with::

code here

somehow malformed. but why does it seem to be running django admindocs code ?

crucial@crucialbook ~/Sites/nsbuildout/docs$ make html
sphinx-build -b html -d build/doctrees   source build/html
Running Sphinx v1.2.1
loading pickled environment... done
building [html]: targets for 29 source files that are out of date
updating environment: 1 added, 21 changed, 0 removed
loading: ns.local_settings.pyners
DEBUG DefaultPluginManager load plugin nose_exclude = nose_exclude:NoseExclude
reading sources... [ 68%] module-index
Exception occurred:
  File "/Users/crucial/Sites/nsbuildout/parts/django/django/contrib/admindocs/", line 97, in default_reference_role
    context = inliner.document.settings.default_reference_context
AttributeError: Values instance has no attribute 'default_reference_context'
The full traceback has been saved in /var/folders/7q/1q7s2z114_l479ntqd0t93s00000gn/T/sphinx-err-yagXvc.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.
Either send bugs to the mailing list at <>,
or report them in the tracker at <>. Thanks!
make: *** [html] Error 1

Thanks for a great project ! I'm really enjoying documenting right now.

Comments (3)

  1. crucialfelix reporter

    strange. it was failing everytime as shown above.

    so I removed the last hour's docs from source, ran make html and it worked fine again. added them back in bit by bit... all of them back in. and it runs fine now.

    so maybe there is some state stored somewhere that got reset ?

    feel free to close this since its not reproducible

  2. Log in to comment