Open ckalpit opened 5 years ago
I got this error as well
The project is not very well maintain because I have very little time for it unfortunaly :( But I guess the bug arises when you don't have a docstring on a function !
Hello guys! @AlexandreKempf i just fixed it in my PR, you just need to push it to pipy, because the version of the code there is not the same of GitHub.
command:
automacdoc . ./../wiki
Traceback (most recent call last): File ".../env/bin/automacdoc", line 11, in
sys.exit(main())
File ".../env/lib/python3.6/site-packages/automacdoc/main.py", line 11, in main
write_doc(argv[1], argv[2])
File ".../env/lib/python3.6/site-packages/automacdoc/automacdoc.py", line 324, in write_doc
write_module(root_path, module_name, mdfile_path)
File ".../env/lib/python3.6/site-packages/automacdoc/automacdoc.py", line 211, in write_module
for n, o in inspect.getmembers(module, inspect.isclass)
File ".../env/lib/python3.6/site-packages/automacdoc/automacdoc.py", line 211, in
for n, o in inspect.getmembers(module, inspect.isclass)
File ".../env/lib/python3.6/site-packages/automacdoc/automacdoc.py", line 93, in create_class
clas["source"] = rm_docstring_from_source(inspect.getsource(obj))
File ".../env/lib/python3.6/site-packages/automacdoc/automacdoc.py", line 20, in rm_docstring_from_source
del source[1] # remove docstring
IndexError: list assignment index out of range