fastlane: kernel_require.rb:133:in `require': cannot load such file -- colored2 (LoadError)
New Issue Checklist
- Updated fastlane to the latest version
- I have read the Contribution Guidelines
Issue Description
When ever I run any fastlane command I get a stack trace. This just started when I upgraded yesterday to fastlane 2-14
Complete output when running fastlane, including the stack trace and command used
You can use:
--capture_output
as the last commandline argument to get that collected for you
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:133:in` `require': cannot load such file -- colored2 (LoadError) from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:133:in `rescue in require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:40:in `require' from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane_core/lib/fastlane_core/helper.rb:2:in `<top (required)>' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require' from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane_core/lib/fastlane_core.rb:10:in `<top (required)>' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require' from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane/lib/fastlane.rb:1:in `<top (required)>' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require' from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:68:in `require' from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/fastlane/lib/fastlane/cli_tools_distributor.rb:14:in `take_off' from /Library/Ruby/Gems/2.0.0/gems/fastlane-2.14.1/bin/fastlane:15:in `<top (required)>' from /usr/local/bin/fastlane:22:in `load' from /usr/local/bin/fastlane:22:in `<main>'
Environment
Please run fastlane env
and copy the output below. This will help us help you 👍
If you used --capture_output
option please remove this block - as it is already included there.
Can’t, get the stack trace from above. I’m running fastlane-2.14.1,
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 21 (3 by maintainers)
sudo gem uninstall fastlane
sudo gem install fastlane -v 2.12
This is solution for now. Also you can try 2.13
I’ve got the same error As all command failed, enable to produce output of command
fastlane env
Hey @kigster, sorry for the late reply - I can’t read all GitHub notifications, so it’s easy to miss some sometimes. When rolling out
colored2
everything worked perfectly on our machines, however we’ve got multiple issues being submitted with all kinds of weird error messages. We had to quickly rollback the change to do some damage control. It seems like lots of setups are very different (maybe different platforms, shell environments, …), I don’t know, but for us it’s too risky to try to roll this out again, we’ll have to stay withcolored
for now.@samratBasra Please don’t do that, we’ve already rolled out a patch a while ago, please update to the most recent release, which also fixes that problem, just update using
fastlane update_fastlane
@KrauseFx Do what you must, but the issue has been identified and fixed. It was a simple permissions issue that ONLY comes into the effect when ruby is installed as root.
For most folks that use
rbenv
orrvm
and install ruby as the user that uses it, the issue was not even there.But the permissions problem has been fixed in the last version of colored2.
Hey everyone, really sorry about this, just added a PR that reverts the change https://github.com/fastlane/fastlane/pull/8117