kurtsson / jekyll-multiple-languages-plugin

I18n support for Jekyll and Octopress
MIT License
923 stars 201 forks source link

Error while doing `jekyll serve` after plugin installation in Jekyll 3.7.2 #116

Open hemangsk opened 6 years ago

hemangsk commented 6 years ago

Hello 😃
I have Jekyll 3.7.2 installed and I'm trying to get started with multiple languages plugin, but after doing

gem install jekyll-multiple-languages-plugin

When I try to do,

jekyll serve

It throws this error :

Dependency Error: Yikes! It looks like you don't have jekyll-multiple-languages-plugin or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-multiple-languages-plugin' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!

The full set of commands is:

Successfully installed jekyll-multiple-languages-plugin-1.5.1
Parsing documentation for jekyll-multiple-languages-plugin-1.5.1
Done installing documentation for jekyll-multiple-languages-plugin after 0 seconds
1 gem installed
Hemangs-MacBook-Pro:website-blog hemangkumar$ jekyll serve
Configuration file: /Users/hemangkumar/code/website-blog/_config.yml
  Dependency Error: Yikes! It looks like you don't have jekyll-multiple-languages-plugin or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-multiple-languages-plugin' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 3.7.2 | Error:  jekyll-multiple-languages-plugin
Hemangs-MacBook-Pro:website-blog hemangkumar$ git submodule add git://github.com/screeninteraction/jekyll-multiple-languages-plugin.git _plugins/multiple-languages
Cloning into '/Users/hemangkumar/code/website-blog/_plugins/multiple-languages'...
remote: Counting objects: 786, done.
remote: Total 786 (delta 0), reused 0 (delta 0), pack-reused 786
Receiving objects: 100% (786/786), 492.52 KiB | 141.00 KiB/s, done.
Resolving deltas: 100% (298/298), done.
Hemangs-MacBook-Pro:website-blog hemangkumar$ jekyll serveConfiguration file: /Users/hemangkumar/code/website-blog/_config.yml
  Dependency Error: Yikes! It looks like you don't have jekyll-multiple-languages-plugin or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. The full error message from Ruby is: 'cannot load such file -- jekyll-multiple-languages-plugin' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
jekyll 3.7.2 | Error:  jekyll-multiple-languages-plugin
Hemangs-MacBook-Pro:website-blog hemangkumar$

Could you please help me with the issue? I'm unable to figure out what I'm doing wrong.

Also, my config.yml has -

plugins:
  - jekyll-multiple-languages-plugin
joshcummingsdesign commented 5 years ago

@hemangsk Can you share your Gemfile?

Mine looks something like this:

source "https://rubygems.org"
ruby "2.5.3"

gem "jekyll", "~>3.8.5"

group :jekyll_plugins do
  gem "jekyll-multiple-languages-plugin", "~>1.6.0"
end

Make sure your desired versions are correct. Then, I would recommend using bundler like so:

gem install bundler jekyll
bundle install
bundle exec jekyll serve
yarcat commented 4 years ago

I know it was almost a year ago, and hope it was solved for you. This issue is still open though. I had the same issue today, and removing Gemfile.lock was a cure.

hemangsk commented 4 years ago

@joshcummingsdesign, @yarcat Thanks so much for your kind help! I'm sorry I couldn't report back my results earlier. Later I started that jekyll project afresh iirc.