automacdoc icon indicating copy to clipboard operation
automacdoc copied to clipboard

IndexError: list assignment index out of range

Open ckalpit opened this issue 5 years ago • 3 comments

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

ckalpit avatar Jul 11 '19 10:07 ckalpit

I got this error as well

TrangPham avatar Feb 25 '21 16:02 TrangPham

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 !

AlexandreKempf avatar Feb 25 '21 20:02 AlexandreKempf

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.

CaioTeixeira95 avatar Mar 01 '21 22:03 CaioTeixeira95