mosesliao / fastlane-plugin-lizard

🦎Official fastlane plugin for lizard code complexity analytics 🦎
http://www.lizard.ws/
MIT License
28 stars 13 forks source link

Lizard finished with errors (exit code: 0) (FastlaneCore::Interface::FastlaneError) #27

Closed xsolo closed 6 years ago

xsolo commented 6 years ago

Hi, wanted to use the plugin today. Got the error bellow.

I am using fastlane 2.93.1 lizard (1.14.10) Python 2.7.10 (default, Oct 6 2017, 22:29:07) [GCC 4.2.1 Compatible Apple LLVM 9.0.0 (clang-900.0.31)] on darwin Type "help", "copyright", "credits" or "license" for more information.

my fastlane looks like this

lane :sonarscan do

  lizard(
  source_folder: 'XXXXX/Classes',
  language: 'swift,objectivec',
  export_type: 'xml',
  report_file: 'sonar-reports/lizard-report.xml'
)
  sonar(
    project_configuration_path: "../",
    sonar_login: "XXXXXXX",
    sonar_runner_args:"-Dsonar.host.url=https://XXXXXXXX"
  )
  end
DEBUG [2018-04-30 15:21:56.80]: All plugins are up to date
ERROR [2018-04-30 15:21:56.80]: fastlane finished with errors
DEBUG [2018-04-30 15:21:56.80]: All plugins are up to date
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane_core/lib/fastlane_core/ui/interface.rb:133:in `user_error!': [!] Lizard finished with errors (exit code: 0) (FastlaneCore::Interface::FastlaneError)
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane_core/lib/fastlane_core/ui/ui.rb:17:in `method_missing'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-plugin-lizard-1.1.1/lib/fastlane/plugin/lizard/actions/lizard_action.rb:68:in `handle_lizard_error'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-plugin-lizard-1.1.1/lib/fastlane/plugin/lizard/actions/lizard_action.rb:31:in `rescue in run'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-plugin-lizard-1.1.1/lib/fastlane/plugin/lizard/actions/lizard_action.rb:27:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/runner.rb:257:in `block (2 levels) in execute_action'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/runner.rb:236:in `block in execute_action'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/runner.rb:231:in `chdir'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/runner.rb:231:in `execute_action'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/fast_file.rb:148:in `method_missing'
    from Fastfile:54:in `block (2 levels) in parsing_binding'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/lane.rb:33:in `call'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/runner.rb:45:in `execute'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/lane_manager.rb:59:in `cruise_lane'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/commands_generator.rb:107:in `block (2 levels) in run'
    from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
    from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:75:in `run!'
    from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/commands_generator.rb:332:in `run'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/fastlane/lib/fastlane/cli_tools_distributor.rb:108:in `take_off'
    from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.93.1/bin/fastlane:20:in `<top (required)>'
    from /usr/local/bin/fastlane:22:in `load'
    from /usr/local/bin/fastlane:22:in `<main>'
matrixsmacdanil-wifi:preventivecare danila$
mosesliao commented 6 years ago

hi @xsolo

Can you try running the command lizard -l swift -l objectivec --xml XXXXX/Classes and see if it runs? then post the output here

@mgrebenets you faced something similar?

mosesliao commented 6 years ago

@terryyin your lizard runs on python or python3??

terryyin commented 6 years ago

Both should work.

On 3 May 2018, at 1:14 PM, Liao Gangzheng Moses notifications@github.com wrote:

@terryyin https://github.com/terryyin your lizard runs on python or python3??

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/liaogz82/fastlane-plugin-lizard/issues/27#issuecomment-386193438, or mute the thread https://github.com/notifications/unsubscribe-auth/AAwJYiMRmD1OmmYaQWVKXWp3TsMVmzCMks5tupJCgaJpZM4TtUSl.

mosesliao commented 6 years ago

hi @xsolo

You need to create the sonar-reports folder. The plugin don't create it for you if it is not there

xsolo commented 6 years ago

yes, thanks it works now

aserdobintsev commented 4 years ago

hi @xsolo

You need to create the sonar-reports folder. The plugin don't create it for you if it is not there

Thanks! This should be in README.md, though.

mosesliao commented 3 years ago

hi @xsolo

You need to create the sonar-reports folder. The plugin don't create it for you if it is not there

Thanks! This should be in README.md, though.

Hi. If you want it you can send me a pull request with the updated README.md. Would gladly merge it.