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

Running from fastlane is failing #43

Closed
beloso opened this issue Mar 14, 2017 · 8 comments
Closed

Running from fastlane is failing #43

beloso opened this issue Mar 14, 2017 · 8 comments

Comments

@beloso
Copy link

beloso commented Mar 14, 2017

I have installed librsvg with brew.
I am running badge from fastlane in jenkins and I keep getting this error.

+----------------------------+---------------------------------------------------------------------+
|                                           Lane Context                                           |
+----------------------------+---------------------------------------------------------------------+
| DEFAULT_PLATFORM           | ios                                                                 |
| PLATFORM_NAME                | ios                                                                 |
| LANE_NAME                         | ios dev                                                             |
| SCAN_DERIVED_DATA_PATH     | /Users/cashyt/jenkins/workspace/job/derivedData |
| SCAN_GENERATED_PLIST_FILES | []                                                                  |
| SCAN_GENERATED_PLIST_FILE  |                                                                     |
| BUILD_NUMBER               | 1013                                                                |
+----------------------------+---------------------------------------------------------------------+
[17:21:45]: no implicit conversion of nil into String

Not sure what I am mussing here

@wuaschtikus
Copy link

wuaschtikus commented Mar 15, 2017

Same here.

Update:

eips-x002:***-AppStore-Test jenkins$ badge
[08:21:41]: Start adding badges...
[08:21:41]: './***/Assets.xcassets/AppIcon.appiconset/Icon-40.png'
[08:21:41]: './***/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png'
[08:21:41]: './***/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png'
[08:21:41]: './***/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png'
[08:21:41]: './***/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png'
[08:21:41]: './***/Assets.xcassets/AppIcon.appiconset/Icon-72.png'
[08:21:41]: './***/Assets.xcassets/AppIcon.appiconset/Icon-72@2x.png'
[08:21:41]: './***/Assets.xcassets/AppIcon.appiconset/Icon-76.png'
[08:21:41]: './***/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png'
[08:21:41]: './***/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png'
[08:21:42]: './***/Assets.xcassets/AppIcon.appiconset/Icon-Small-50.png'
[08:21:42]: './***/Assets.xcassets/AppIcon.appiconset/Icon-Small-50@2x.png'
[08:21:42]: './***/Assets.xcassets/AppIcon.appiconset/Icon-Small.png'
[08:21:42]: './***/Assets.xcassets/AppIcon.appiconset/Icon-Small@2x.png'
[08:21:42]: './***/Assets.xcassets/AppIcon.appiconset/Icon-Small@3x.png'
[08:21:42]: './***/Assets.xcassets/AppIcon.appiconset/Icon.png'
[08:21:42]: './***/Assets.xcassets/AppIcon.appiconset/Icon@2x.png'
[08:21:42]: './***/Assets.xcassets/AppIcon.appiconset/NotificationIcon@2x.png'
[08:21:42]: './***/Assets.xcassets/AppIcon.appiconset/NotificationIcon@3x.png'
[08:21:42]: './***/Assets.xcassets/AppIcon.appiconset/NotificationIcon~ipad.png'
[08:21:42]: './***/Assets.xcassets/AppIcon.appiconset/NotificationIcon~ipad@2x.png'
[08:21:42]: Badged \o/!

Looking for related GitHub issues on fastlane/fastlane...

➡️  "no implicit conversion of nil into String" in fastlane init
   https://github.com/fastlane/fastlane/issues/8083 [open] 3 💬
   6 weeks ago

➡️  "no implicit conversion of nil into String" when executing snapshpt
   https://github.com/fastlane/fastlane/issues/7433 [open] 5 💬
   2 weeks ago

➡️  "no implicit conversion of nil into String" when running "fastlane update_fastlane"
   https://github.com/fastlane/fastlane/issues/7405 [closed] 4 💬
   4 weeks ago

and 50 more at: https://github.com/fastlane/fastlane/search?q=no%20implicit%20conversion%20of%20nil%20into%20String&type=Issues&utf8=✓

🔗  You can ⌘ + double-click on links to open them directly in your browser.
/Users/jenkins/.rvm/gems/ruby-2.3.1/gems/badge-0.8.2/lib/badge/runner.rb:80:in `exist?': [!] no implicit conversion of nil into String (TypeError)
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/gems/badge-0.8.2/lib/badge/runner.rb:80:in `run'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/gems/badge-0.8.2/lib/badge/commands_generator.rb:34:in `block (2 levels) in run'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/gems/commander-4.4.3/lib/commander/command.rb:153:in `run'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/gems/commander-4.4.3/lib/commander/runner.rb:446:in `run_active_command'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/gems/fastlane-2.19.3/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/gems/commander-4.4.3/lib/commander/delegates.rb:15:in `run!'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/gems/badge-0.8.2/lib/badge/commands_generator.rb:39:in `run'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/gems/badge-0.8.2/lib/badge/commands_generator.rb:11:in `start'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/gems/badge-0.8.2/bin/badge:7:in `<top (required)>'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/bin/badge:23:in `load'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/bin/badge:23:in `<main>'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `eval'
	from /Users/jenkins/.rvm/gems/ruby-2.3.1/bin/ruby_executable_hooks:15:in `<main>'
`

@HazAT
Copy link
Owner

HazAT commented Mar 15, 2017

Can someone of you run it with --verbose to get more information about what's happening?
Thx

@wuaschtikus
Copy link

Seems there is an issue when executing these two lines in runner.rb.

 File.delete(shield) if File.exist?(shield)
 File.delete("#{shield.path}.png") if File.exist?("#{shield.path}.png")

There seems to be no shieldto delete, or something like that.

@HazAT
Copy link
Owner

HazAT commented Mar 15, 2017

@wuaschtikus Thx ... just pushed an update ... please update to 0.8.3
gem update badge

@wuaschtikus
Copy link

@HazAT Running with verbose gives nearly the same output. No further exceptions are logged...

@wuaschtikus
Copy link

Excellent.

@sschizas
Copy link

@HazAT can you see the following exception when running badge from fastlane:

+-----------------------------+---------+
|             Lane Context              |
+-----------------------------+---------+
| DEFAULT_PLATFORM            | ios     |
| PLATFORM_NAME               | ios     |
| LANE_NAME                   | ios foo |
| GIT_REPO_WAS_CLEAN_ON_START | true    |
+-----------------------------+---------+
[13:53:33]: You don't have write permissions for the /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0 directory.

+------+-------------------------------------+-------------+
|                     fastlane summary                     |
+------+-------------------------------------+-------------+
| Step | Action                              | Time (in s) |
+------+-------------------------------------+-------------+
| 1    | Verifying required fastlane version | 0           |
| 2    | default_platform                    | 0           |
| 3    | ensure_git_status_clean             | 0           |
| 💥   | badge                               | 19          |
| 5    | clean_build_artifacts               | 0           |
| 6    | reset_git_repo                      | 0           |
| 7    | notification                        | 0           |
| 8    | slack                               | 1           |
+------+-------------------------------------+-------------+

[13:53:33]: fastlane finished with errors

Looking for related GitHub issues on fastlane/fastlane...

Found no similar issues. To create a new issue, please visit:
https://github.com/fastlane/fastlane/issues/new
Run `fastlane env` to append the fastlane environment to your issue
/Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/site_ruby/2.2.0/rubygems/installer.rb:692:in `verify_gem_home': [!] You don't have write permissions for the /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0 directory. (Gem::FilePermissionError)
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/site_ruby/2.2.0/rubygems/installer.rb:811:in `pre_install_checks'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/site_ruby/2.2.0/rubygems/installer.rb:278:in `install'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/site_ruby/2.2.0/rubygems/resolver/specification.rb:97:in `install'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:166:in `block in install'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:156:in `each'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:156:in `install'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/site_ruby/2.2.0/rubygems/commands/install_command.rb:250:in `install_gem'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/fastlane_require.rb:36:in `install_gem_if_needed'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/helper/gem_helper.rb:7:in `verify_gem!'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/actions/badge.rb:5:in `run'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/runner.rb:243:in `block (2 levels) in execute_action'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/runner.rb:221:in `block in execute_action'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/runner.rb:217:in `chdir'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/runner.rb:217:in `execute_action'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/runner.rb:139:in `trigger_action_by_name'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/fast_file.rb:146:in `method_missing'
	from Fastfile:94:in `block (2 levels) in parsing_binding'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/lane_manager.rb:52:in `cruise_lane'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/command_line_handler.rb:30:in `handle'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/commands_generator.rb:105:in `block (2 levels) in run'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-4.4.3/lib/commander/command.rb:153:in `run'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-4.4.3/lib/commander/runner.rb:446:in `run_active_command'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:38:in `run!'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/commander-4.4.3/lib/commander/delegates.rb:15:in `run!'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/commands_generator.rb:302:in `run'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/fastlane/lib/fastlane/cli_tools_distributor.rb:65:in `take_off'
	from /Users/stavrosschizas/.fastlane/bin/bundle/lib/ruby/gems/2.2.0/gems/fastlane-2.20.0/bin/fastlane:20:in `<top (required)>'
	from /Users/stavrosschizas/.fastlane/bin/bundle/bin/fastlane:22:in `load'
	from /Users/stavrosschizas/.fastlane/bin/bundle/bin/fastlane:22:in `<main>'

@HazAT
Copy link
Owner

HazAT commented Mar 19, 2017

@n3trino I am not really sure that this is related to badge ...
Check this issue fastlane/fastlane#1267

@HazAT HazAT closed this as completed Mar 20, 2017
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

4 participants