Comments (5)
@jayaddison Agreed and thanks for the advice. I have found parsing the difference between "sphinx" and sphinx extensions a bit confusing, so a bit of clarity is much appreciated.
Re slimming down the repo; fair comment and have done. I was at wits end when I posted the issue and that was as much as my brain could handle at the time.
It appears to be a conflict
between autoapi and viewcode extensions, with the following settings:
- autoapi_options = ['inherited-members']
- autoapi_python_use_implicit_namespaces = True
- autoapi_python_class_content = 'both'
I have pushed a commit with the slimmed down example.
For anyone else watching the new issue at autoapi is: readthedocs/sphinx-autoapi#422
from sphinx.
Since it's a 3rd-party extension, I'm closing this one. But feel free to reopen (or create a new one if the issue is locked) in the future if the issue is from our side.
from sphinx.
Hi @hansonmcoombs - thanks for taking the time to report this. Can you check whether the problem occurs without the autoapi
extension enabled? It didn't for me, but it's possible I have a slightly different configuration somehow.
from sphinx.
@jayaddison If I run it completely without the autoapi package then yes I get no error. If I run with the auto api extension enabled I do get the error, but the rst files in the docs_build/autoapi directory are created. If I then re-run with the auto api extension disabled (but with the auto api created rst files). Everything compiles as expected. Note, unsurprisingly there are some differences between the html output.
Does this mean I should raise this as an error on https://github.com/readthedocs/sphinx-autoapi/issues?
Should I cross link it?
from sphinx.
Thanks @hansonmcoombs. Yep, if the issue is only reproducible with that extension enabled, then I think it's best to start there, and with a mention / hyperlink here so that the maintainer can catch up on the context so far.
I'd encourage trying to remove as much configuration and RST from your example as you can before doing that - your example is fairly minimal but it may be possible to trim some more and narrow it down (that might help you figure out what introduces the failure, and will certainly help the maintainer there track it down).
It may come back here if the bug turns out to be something about the internals of Sphinx or the API we provide -- but I think we should start at the extension that seems to be the cause.
from sphinx.
Related Issues (20)
- Minify css and js HOT 2
- Autosummary lists functions but does not generate documentation pages HOT 3
- New line and line-brack doesn't work in cnfluance. HOT 10
- `objects.inv` is not generated deterministically when there are duplicate references HOT 3
- add_css = getattr(app, "add_css_file", app.add_stylesheet) HOT 3
- <short description for the feature>
- Unify docutils type annotations HOT 10
- Intersphinx cannot link to section headers with uppercase names HOT 8
- Add toc entry autofunction
- pre_border-radius not translating to latexpdf for .. warning HOT 7
- Imported string constant has wrong docstring of `str` HOT 3
- In autosummary, expose complete objtype information to templates
- Test suite: search: test fixture does not accurately represent the JS search index format HOT 2
- linkcheck inconsistent behavior from client HOT 1
- flaky unit test: test_build_linkcheck.test_connect_to_selfsigned_fails HOT 11
- HTML Search: partially-matched titles are not included in search results.
- [HTML search] optimization: don't loop over all document terms and title terms during search. HOT 1
- Nested toc produces multiply-defined labels in LaTeX output HOT 4
- Can't extend builtin theme if it doesn't have explicit layout.html HOT 22
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sphinx.