-
Notifications
You must be signed in to change notification settings - Fork 131
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
NoneType attribute error 'name' #186
Comments
Thanks for the report! Are you able to figure out which bit of code was being parsed when this happened? It's unclear under what circumstances |
If you up the verbosity of Sphinx's logging, it should tell you at least which file is being parsed (https://www.sphinx-doc.org/en/master/man/sphinx-build.html#cmdoption-sphinx-build-v). |
Hi, sorry for the delay. I up'd the verbosity, got the following: sphinx-verbose.log The file corresponds to the following: I'm running I tried with Thanks for your help, hopefully you can pinpoint the source of the issue. |
The error is happening because the type annotation here (https://github.com/crim-ca/weaver/blob/17ed20140ec88f611406332df9c9f5d239eb6d54/weaver/datatype.py#L729) is incorrect. The That being said, we could be doing a better job of handling this situation. I think raising a warning makes the most sense. |
@AWhetter And yes, a small warning could help debugging such thing more easily in the future. |
@AWhetter |
You're right. |
I tried with the new commit, works great! |
Getting the following error when running sphinx's makefile with
sphinx-autoapi>=1.2
during the autoapi generation steps.Running the same command with
sphinx-autoapi<1.2
doesn't generate this error.Using
sphinx 2.2.2
, also reproduced on2.0.1
.Reference log of the error: sphinx.log
The text was updated successfully, but these errors were encountered: