Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

New Ruby on Rails Setup : "Expected string default value for '--rc'; got false (boolean)"

I'm setting up a Ruby on Rails web development environment on a new machine (macOS Sierra v. 10.12.1). I'm following the setup instructions here: Setup Ruby On Rails on macOS 10.12 Sierra. When I check the newly installed rails version, I get the following:

$ rails --version
Expected string default value for '--rc'; got false (boolean)
Rails 4.2.6

I haven't seen that second line before, and googling hasn't yielded any helpful results. Background information: clean install of macOS 10.12.1; installed xcode via the App Store; installed Homebrew via the instructions on its homepage; installing Ruby, Rails, etc. via the first link I mentioned.

Anyone have any idea what might be going on?

like image 649
derstander Avatar asked Nov 30 '16 06:11

derstander


2 Answers

It's due to a change in the latest version of Thor. https://github.com/erikhuda/thor/blob/master/CHANGELOG.md#0192-release-2016-11-26. Rails 5 is not affected. You can ignore the warning on Rails 4 and earlier.

like image 182
sgrif Avatar answered Sep 28 '22 05:09

sgrif


I had the same issue with Rails 4.2.7, set up with RubyMine 7.1.3.

Adding gem 'thor', '0.19.1' to my Gemfile and then running bundle update thor fixed the issue.

like image 26
guero64 Avatar answered Sep 28 '22 06:09

guero64