Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting 'Your lizard version is outdated' error although it isn't #29

Closed
captainuberawesome opened this issue Sep 25, 2018 · 4 comments
Closed
Assignees

Comments

@captainuberawesome
Copy link

captainuberawesome commented Sep 25, 2018

Hello, I'm having some trouble adding lizard into my fastlane script

lane :metrics do
    scan(scheme: "Scheme", code_coverage: true, derived_data_path: "./DerivedData", output_directory: "./reports")
    slather(cobertura_xml: true, jenkins: true, scheme: "Scheme", build_directory: "./DerivedData", output_directory: "./reports", proj: "./Project.xcodeproj")
    lizard(source_folder: "./Sources", language: "swift", export_type: "xml", report_file: "report/lizard-report.xml", executable: "/Library/Python/2.7/site-packages")
    swiftlint(output_file: "./reports/swiftlint.txt", ignore_exit_status: true)
    sonar
  end

fastlane: 2.105.2
lizard: 1.15.6
python: 2.7.10

I'm getting an error: "Your lizard version is outdated, please upgrade to at least version 1.14.10 and start your lane again!", although lizard is 1.15.6 which is clearly newer than 1.14.10. Not sure where to go from here, would appreciate any help. Thank you.

@mosesliao
Copy link
Owner

mosesliao commented Oct 2, 2018

@captainuberawesome I know why you get the error. The path of your executable is wrong. you need to point to lizard.py file.

See https://github.com/liaogz82/fastlane-plugin-lizard/blob/c3f33a0fbaefc65d56c8be8a4efaf15761ab993e/spec/lizard_spec.rb#L11

@mosesliao
Copy link
Owner

mosesliao commented Oct 4, 2018

Another thing @captainuberawesome how do you install lizard? if you install via pip, executable is not needed

@captainuberawesome
Copy link
Author

@liaogz82 thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants