fastlane-old / deliver

Upload screenshots, metadata and your app to the App Store using a single command
https://fastlane.tools
2.24k stars 162 forks source link

uninitialized constant Deliver::CommandsGenerator::Ui when running deliver init twice #587

Closed dhaligas closed 8 years ago

dhaligas commented 8 years ago

When running deliver init for a second time the error below appears.

/Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.36.4/lib/fastlane_core/ui/interface.rb:120:in `crash!': [!] Exit status of command 'deliver init was 1 instead of 0. (FastlaneCore::Interface::FastlaneCrash) uninitialized constant CredentialsManager::AppfileConfig::Helper uninitialized constant CredentialsManager::AppfileConfig::Helper uninitialized constant CredentialsManager::AppfileConfig::Helper uninitialized constant CredentialsManager::AppfileConfig::Helper

uninitialized constant CredentialsManager::AppfileConfig::Helper

😨 An error occured. Please enable crash reports using fastlane enable_crash_reporting. 👍 This makes resolving issues much easier and helps improve fastlane. 🔒 The reports will be stored securely on getsentry.com.

🙊 More information about privacy: https://github.com/fastlane/fastlane/releases/tag/1.33.3

/Library/Ruby/Gems/2.0.0/gems/deliver-1.10.2/lib/deliver/commands_generator.rb:68:in block (2 levels) in run': [!] uninitialized constant Deliver::CommandsGenerator::Ui (NameError) from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:incall' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in call' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:inrun' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in run_active_command' from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.36.4/lib/fastlane_core/ui/fastlane_runner.rb:23:inrun!' from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in run!' from /Library/Ruby/Gems/2.0.0/gems/deliver-1.10.2/lib/deliver/commands_generator.rb:130:inrun' from /Library/Ruby/Gems/2.0.0/gems/deliver-1.10.2/lib/deliver/commands_generator.rb:12:in start' from /Library/Ruby/Gems/2.0.0/gems/deliver-1.10.2/bin/deliver:5:in<top (required)>' from /usr/local/bin/deliver:23:in load' from /usr/local/bin/deliver:23:in

'

from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.36.4/lib/fastlane_core/ui/ui.rb:14:in `method_missing'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/helper/sh_helper.rb:44:in `sh_no_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/fast_file.rb:182:in `block in sh'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/actions/actions_helper.rb:35:in `execute_action'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/fast_file.rb:181:in `sh'
from ../Core/fastlane/Fastfile:83:in `block (2 levels) in parsing_binding'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/lane.rb:36:in `call'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/lane.rb:36:in `call'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/runner.rb:52:in `block in execute'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/runner.rb:46:in `chdir'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/runner.rb:46:in `execute'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/lane_manager.rb:46:in `cruise_lane'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/lib/fastlane/command_line_handler.rb:30:in `handle'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/bin/fastlane:38:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
from /Library/Ruby/Gems/2.0.0/gems/fastlane_core-0.36.4/lib/fastlane_core/ui/fastlane_runner.rb:23:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/bin/fastlane:150:in `run'
from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.59.0/bin/fastlane:156:in `<top (required)>'
from /usr/local/bin/fastlane:23:in `load'
from /usr/local/bin/fastlane:23:in `<main>'
KrauseFx commented 8 years ago

Thanks for the report, I just pushed a fix. Basically you run deliver init in a folder that already contains a Deliverfile, so it fails. What are you trying to do?

dhaligas commented 8 years ago

I am running this process on a jenkins build server to setup apps in an app factory. we can run the setup process many times if we change config thus we just run deliver init and your process would just skip it if it had already been done. We didn't need to check.

fastlanebot commented 8 years ago

This issue was migrated to https://github.com/fastlane/fastlane/issues/2109. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo :rocket: