autosummary: Autogenerating stubs on case-insensitive filesystem sometimes fails
#1495 aperta il 3 gen 2015
Metriche repository
- Star
- (5625 star)
- Metriche merge PR
- (Merge medio 13g 10h) (8 PR mergiate in 30 g)
Descrizione
If I attempt to autogenerate API docs for a class that has two method names that are identical except for uppercase/lowercase, autogeneration will fail on case-insenstive filesystems.
I ran into this today generating documentation for a class that sublcasses Sympy's Expr class. Expr defines both as_coeff_Add and as_coeff_add as member functions.
When the autosummary extension tries to autogenerate stub .rst files for these two functions, it fails on the second one because the os.path.isfile() call here will return True.
I'd ignore the issue except for the fact that it generates thousands of warning messages in my builds logs, since sphinx still tries to access the nonexistent file every time it traverses the toctree.
- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/1495
- Originally reported by: Nathan Goldbaum
- Originally created at: 2014-06-24T07:20:51.563