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

Error when running with -X option #78

Closed gretzki closed 8 years ago

gretzki commented 8 years ago

Hi!

Im using latest commit (2c766cad16263ee84f3453f60cf13037b202dba1) with python 2.7. When running lizard without parameters, everything works fine. When using -X option, it says

 $ lizard -X
Traceback (most recent call last):
  File "/usr/local/bin/lizard", line 5, in <module>
    pkg_resources.run_script('lizard==1.9.6', 'lizard')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 492, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1357, in run_script
    exec_(script_code, namespace, namespace)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 47, in exec_
    exec("""exec code in globs, locs""")
  File "<string>", line 1, in <module>
  File "/Library/Python/2.7/site-packages/lizard-1.9.6-py2.7.egg/EGG-INFO/scripts/lizard", line 6, in <module>

  File "build/bdist.macosx-10.10-intel/egg/lizard.py", line 997, in lizard_main
TypeError: print_xml() takes exactly 2 arguments (3 given)

Thanks! :) Cheers, Chris

fredfoc commented 8 years ago

same here :-(

terryyin commented 8 years ago

Sorry! I’ve been travelling. Will look at it asap.

On 7 Jan 2016, at 9:23 PM, fredfoc notifications@github.com wrote:

same here :-(

— Reply to this email directly or view it on GitHub https://github.com/terryyin/lizard/issues/78#issuecomment-169661905.

terryyin commented 8 years ago

Fixed. And created a new release.

fredfoc commented 8 years ago

printer(result, options, OutputScheme(options.extensions)) change to printer(result, options) does the trick..

fredfoc commented 8 years ago

oops did not see your message

fredfoc commented 8 years ago

thanks for your quick reaction :-)

terryyin commented 8 years ago

Thanks for reporting! Let me know if anything is missing.