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

use local version python compiled lizard.py but did not generate lizard #139

Closed JiahangLi closed 8 years ago

JiahangLi commented 8 years ago

On my Linux account, I tried to installed newer version of python in order to run lizard due to I don't have the root access and root's version is too old to compile.

It seems lizard executable seemed not generated after the script ran successfully.

terryyin commented 8 years ago

Lizard requires Python 2.7 or Python 3.x. You can install lizard to your system via pip install lizard (need root access if you are not using a Python virtual env).

Or you can download/clone the source code and just run python lizard.py in the folder.

If you run python setup.py install, then the “executable” will be put to the global python script path. Just try lizard in your command line and see if you’ve got it already.

On 30 Jul 2016, at 6:08 AM, JiahangLi notifications@github.com wrote:

On my Linux account, I tried to installed newer version of python in order to run lizard due to I don't have the root access and root's version is too old to compile.

It seems lizard executable seemed not generated after the script ran successfully.

— 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/139, or mute the thread https://github.com/notifications/unsubscribe-auth/AAwJYrv3ak0UXd3kCLMWDrBnblIYFKlaks5qann6gaJpZM4JYnkD.

JiahangLi commented 8 years ago

Hey Terry, Thanks for your feedback. The third solution fixed my problem in this case!

I'm working on integrate lizard with Jenkins right now. Is there a version requirement for Jenkins in order for it to display the lizard output plot? Or specific plug-ins to plot the graph, i.e JUnit or XUnit?

Due to the limited internet connection and old version of java, I'm using Jenkins1.5. Tried to use the JUnit to plot Jenkins .xml output but Jenkins failed with following output: ERROR: Failed to archive test reports hudson.util.IOException2: Failed to read

Thanks!

terryyin commented 8 years ago

Have you added the -X option to output the xml?

On 2 Aug 2016, at 6:27 AM, JiahangLi notifications@github.com wrote:

Hey Terry, Thanks for your feedback. The third solution fixed my problem in this case!

I'm working on integrate lizard with Jenkins right now. Is there a version requirement for Jenkins in order for it to display the lizard output plot? Or specific plug-ins to plot the graph, i.e JUnit or XUnit?

Due to the limited internet connection and old version of java, I'm using Jenkins1.5. Tried to use the JUnit to plot Jenkins .xml output but Jenkins failed with following output: ERROR: Failed to archive test reports hudson.util.IOException2: Failed to read

Thanks!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/terryyin/lizard/issues/139#issuecomment-236727040, or mute the thread https://github.com/notifications/unsubscribe-auth/AAwJYhE-GJYFuvj5Sy_qIPO95HfOR3QFks5qbnK0gaJpZM4JYnkD.

JiahangLi commented 8 years ago

Yes. I did and I got the xml file. However, it seems that Jenkins can not interrupt the file correctly. I opened the xml file by using excel and other viewer, but the display is a bit different from what I thought it would be.

I might be wrong, but for my personal understanding, if I open the xml using excel the display would look like the table display on our online analyzer, right?

capture

I really appreciate your help

terryyin commented 8 years ago

I think the xml format is compatible with the CppNcss output. There's a jenkins plugin for CppNcss and it knows how to render the xml.

JiahangLi commented 8 years ago

Thank you for all your help.