Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autogenerating stubs on case-insensitive filesystem sometimes fails #1495

Open
shimizukawa opened this issue Jan 3, 2015 · 5 comments
Open

Comments

@shimizukawa
Copy link
Member

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.


@wesm
Copy link

wesm commented Dec 31, 2018

This issue still comes up from time to time. Is this fixable in Sphinx?

@tk0miya tk0miya added this to the 2.0.0 milestone Jan 2, 2019
@tk0miya
Copy link
Member

tk0miya commented Jan 2, 2019

I set 2.0 milestone to this ticket. I'll take a look later (or post-2.0 release).

@thomasjpfan
Copy link

A solution to this issue would require renaming the filenames if we are on a case insensitive file system. If we were to do it automatically, we would need a naming convention such as adding a count at the end of files, such as 'FILENAME1.rst, filename2.rst`, lexically ordered.

@tk0miya tk0miya modified the milestones: 2.3.0, 2.4.0 Dec 8, 2019
@tk0miya tk0miya modified the milestones: 2.4.0, some future version Feb 4, 2020
@shaunc
Copy link

shaunc commented May 16, 2020

Grumble ... just took the trouble to learn sphinx and rewrite my doc strings to conform only to run into this. Is there any workaround? Or a branch I could use? Sphinx looks quite mature with all kinds of specialized support from the outside, but for me this is quite a basic issue. It's startling that it doesn't work. (MacOS)

@cmpute cmpute mentioned this issue Feb 5, 2021
2 tasks
@matteha
Copy link

matteha commented Oct 19, 2021

Can confirm it doesn't work on Fedora either (btrfs filesystem by default).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants