mysterious inliner.document.settings.default_reference_context exception

crucialfelix avatarcrucialfelix 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/utils.py", 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 <http://groups.google.com/group/sphinx-users/>,
or report them in the tracker at <http://bitbucket.org/birkenfeld/sphinx/issues/>. Thanks!
make: *** [html] Error 1

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

Comments (2)

  1. crucialfelix

    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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.