terryyin / lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.
Other
1.85k stars 250 forks source link

print_xml not defined #227

Closed BadChoice closed 6 years ago

BadChoice commented 6 years ago

I'm pretty sure it is me, but I can't find any comment about this

when trying to run lizard, I get this error:

lizard 
Traceback (most recent call last):
  File "/Volumes/Dades/badchoice/Downloads/lizard-master/lizard.py", line 990, in <module>
    main()
  File "/Volumes/Dades/badchoice/Downloads/lizard-master/lizard.py", line 969, in main
    options = parse_args(argv or sys.argv)
  File "/Volumes/Dades/badchoice/Downloads/lizard-master/lizard.py", line 913, in parse_args
    parser = extend_parser(arg_parser(argv[0]))
  File "/Volumes/Dades/badchoice/Downloads/lizard-master/lizard.py", line 186, in arg_parser
    const=print_xml,
NameError: global name 'print_xml' is not defined

I tried both master, and the 1.14.4 release Using osx High Sierra

terryyin commented 6 years ago

Hi Jordi,

Thanks for the notice. It should be fixed now.

On 17 Mar 2018, at 12:51 AM, Jordi Puigdellívol notifications@github.com wrote:

I'm pretty sure it is me, but I can't find any comment about this

when trying to run lizard, I get this error:

lizard Traceback (most recent call last): File "/Volumes/Dades/badchoice/Downloads/lizard-master/lizard.py", line 990, in main() File "/Volumes/Dades/badchoice/Downloads/lizard-master/lizard.py", line 969, in main options = parse_args(argv or sys.argv) File "/Volumes/Dades/badchoice/Downloads/lizard-master/lizard.py", line 913, in parse_args parser = extend_parser(arg_parser(argv[0])) File "/Volumes/Dades/badchoice/Downloads/lizard-master/lizard.py", line 186, in arg_parser const=print_xml, NameError: global name 'print_xml' is not defined I tried both master, and the 1.14.4 release Using osx High Sierra

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/terryyin/lizard/issues/227, or mute the thread https://github.com/notifications/unsubscribe-auth/AAwJYjfU6W0QAY8vVz5krOlb_xnzoITHks5te-2cgaJpZM4SuHI-.

BadChoice commented 6 years ago

Great! it's working now! Thank you so much!