Add line of code to Gemfile that already contains that line of code
Asked Answered
N

1

6

My blog is based on Jekyll Bootstrap, and I've recently set up a new machine with Windows 10.

When I start my server on my local machine for testing, it says that I should add something to my Gemfile:

$ jekyll serve -w
Configuration file: C:/Users/mark/Documents/ploeh/Blog/_config.yml
            Source: C:/Users/mark/Documents/ploeh/Blog
       Destination: C:/Users/mark/Documents/ploeh/Blog/_site
      Generating...
                    done.
  Please add the following to your Gemfile to avoid polling for changes:
    gem 'wdm', '>= 0.1.0' if Gem.win_platform?
 Auto-regeneration: enabled for 'C:/Users/mark/Documents/ploeh/Blog'
Configuration file: C:/Users/mark/Documents/ploeh/Blog/_config.yml
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.

As you can see, it tells me to add a line to my Gemfile. Unfortunately, I've already tried doing that, but it seems to make no difference:

$ cat Gemfile
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
source 'https://rubygems.org'

As you can see, the line in question is already in my Gemfile.

Moving things around in the Gemfile doesn't make any difference:

source 'https://rubygems.org'
gem 'wdm', '>= 0.1.0' if Gem.win_platform?

Why is it saying this, and should I care? If I should care, then how can I resolve the issue?

In case it matters, here's my Ruby version:

$ ruby --version
ruby 2.2.2p95 (2015-04-13 revision 50295) [x64-mingw32]

Other version information:

$ gem list

*** LOCAL GEMS ***

bigdecimal (1.2.6)
blankslate (2.1.2.4)
celluloid (0.16.0)
classifier-reborn (2.0.3)
coffee-script (2.4.1)
coffee-script-source (1.9.1.1)
colorator (0.1)
execjs (2.6.0)
fast-stemmer (1.0.2)
ffi (1.9.10 x64-mingw32)
hitimes (1.2.2)
io-console (0.4.3)
jekyll (2.5.3)
jekyll-coffeescript (1.0.1)
jekyll-gist (1.3.4)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.3.0)
jekyll-watch (1.2.1)
json (1.8.1)
kramdown (1.8.0)
liquid (2.6.3)
listen (2.10.1)
mercenary (0.3.5)
minitest (5.4.3)
parslet (1.5.0)
posix-spawn (0.3.11)
power_assert (0.2.2)
psych (2.0.8)
pygments.rb (0.6.3)
rake (10.4.2)
rb-fsevent (0.9.6)
rb-inotify (0.9.5)
rdoc (4.2.0)
redcarpet (3.3.2)
safe_yaml (1.0.4)
sass (3.4.18)
test-unit (3.0.8)
timers (4.0.4)
toml (0.1.2)
yajl-ruby (1.2.1)
Nunes answered 22/9, 2015 at 17:58 Comment(9)
Whats the jekyll version?Notification
Is this helpful neff.co.at/2014/08/24/Jekyll-2.0-on-Windows.html?Notification
@Notification How do I find the Jekyll version number? (Sorry if this is a stupid question, but I'm quite the Ruby novice.)Nunes
@Notification That link doesn't seem to contain any information that relates to my issue. Did I miss something obvious?Nunes
Maybe you need to run bundle install? Also, the source line should be at the top of the Gemfile.Sigismondo
you can check gem version by running gem list and this will give you list of all gems installed along with there versionsNotification
What happens when you type gem install wdm in console?Notification
@Notification That seems to have resolved the issue! Add your comment as an answer, and I'll be happy to accept it as the answer. Thank you.Nunes
Thanks, comment added as answer.Notification
N
15

Type gem install wdm in console and see if this resolves the issue.

Notification answered 23/9, 2015 at 0:56 Comment(4)
Yea, according to this installing wdm 0.1.1 should solve the issue.Juniejunieta
Thanks , for me it worked - gem install wdm and adding gem 'wdm', '>= 0.1.0' to the Gemfile and then delete Gemfile.lock and write bundle install in the console.Siphon
@AlonSamuel where is Gemfile.lock? why would you need to deleteMot
@Stackstudent_09, sorry too long for me to remember now. Not writing JS latelySiphon

© 2022 - 2024 — McMap. All rights reserved.