Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add line of code to Gemfile that already contains that line of code

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)
like image 662
Mark Seemann Avatar asked Dec 25 '22 14:12

Mark Seemann


1 Answers

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

like image 156
Zahid Avatar answered Mar 02 '23 00:03

Zahid