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
sphinx assumes python-language source for modules #7137
Comments
Could you give us a full stacktrace here? I'd like to know where the error happened. BTW, the main target of autodoc is python module. So we can't promise you to work it for non python codes. Anyway I'll try to investigate we can fix it easily. |
And at least in the case of xsh, analysis of the runtime objects ( |
Thank you for the log. I tried to reproduce the error on my local. But I still can't. Instead of the error, I got following error:
My Dockerfile is here:
I guess your error would be fixed by this patch. But I need to reproduce the error to confirm it working fine.
|
Yeah, there's a bug fix for that one open. The above Travis job is from that branch. |
Succeeded to reproduced now.
|
Fix #7137: viewcode: Avoid to crash when non-python code given
Fixed. |
Describe the bug
There exists projects that allow importing non-Python code as a python module (such as xonsh, gqlmod).
sphinx currently chokes on these modules instead of failing gracefully.
To Reproduce
Sorry that I don't have a reduced minimal test case.
From the travis job
Expected behavior
Degrading gracefully, disabling the features that use this or falling back to alternate methods. (I think this is comment-based type annotations and attribute docs?)
Your project
https://github.com/xonsh/xonsh
Environment info
The text was updated successfully, but these errors were encountered: