kurtsson / jekyll-multiple-languages-plugin

I18n support for Jekyll and Octopress
MIT License
925 stars 202 forks source link

not able to load the version.rb file since 7d6d17c #8

Closed kyzh closed 10 years ago

kyzh commented 10 years ago

I did an update today and pull the latest 24 hours of changes. Since then i got an error, the require on the version file doesn't work.

I also started from scratch via with the git submodule install. That leaded to the same issue.

Here is the error:

Configuration file: /home/kyzh/opencompany.github.io/_config.yml
/usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- jekyll/multiple/languages/plugin (LoadError)
    from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /home/kyzh/opencompany.github.io/_plugins/ml.rb:1:in `<top (required)>'
    from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require'
    from /home/kyzh/.gem/ruby/1.9.1/gems/jekyll-1.2.1/lib/jekyll/site.rb:77:in `block (2 levels) in setup'
    from /home/kyzh/.gem/ruby/1.9.1/gems/jekyll-1.2.1/lib/jekyll/site.rb:76:in `each'
    from /home/kyzh/.gem/ruby/1.9.1/gems/jekyll-1.2.1/lib/jekyll/site.rb:76:in `block in setup'
    from /home/kyzh/.gem/ruby/1.9.1/gems/jekyll-1.2.1/lib/jekyll/site.rb:75:in `each'
    from /home/kyzh/.gem/ruby/1.9.1/gems/jekyll-1.2.1/lib/jekyll/site.rb:75:in `setup'
    from /home/kyzh/.gem/ruby/1.9.1/gems/jekyll-1.2.1/lib/jekyll/site.rb:26:in `initialize'
    from /home/kyzh/.gem/ruby/1.9.1/gems/jekyll-1.2.1/lib/jekyll/commands/build.rb:5:in `new'
    from /home/kyzh/.gem/ruby/1.9.1/gems/jekyll-1.2.1/lib/jekyll/commands/build.rb:5:in `process'
    from /home/kyzh/.gem/ruby/1.9.1/gems/jekyll-1.2.1/bin/jekyll:99:in `block (2 levels) in <top (required)>'
    from /home/kyzh/.gem/ruby/1.9.1/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
    from /home/kyzh/.gem/ruby/1.9.1/gems/commander-4.1.5/lib/commander/command.rb:180:in `call'
    from /home/kyzh/.gem/ruby/1.9.1/gems/commander-4.1.5/lib/commander/command.rb:155:in `run'
    from /home/kyzh/.gem/ruby/1.9.1/gems/commander-4.1.5/lib/commander/runner.rb:402:in `run_active_command'
    from /home/kyzh/.gem/ruby/1.9.1/gems/commander-4.1.5/lib/commander/runner.rb:78:in `run!'
    from /home/kyzh/.gem/ruby/1.9.1/gems/commander-4.1.5/lib/commander/delegates.rb:11:in `run!'
    from /home/kyzh/.gem/ruby/1.9.1/gems/commander-4.1.5/lib/commander/import.rb:10:in `block in <top (required)>'

I'm not sure what to do to fix it I tried changing the path but that didn't help much. I also tried to copy the file in the _plugin folder, no luck there either.

Here is the steps to reproduce. First get the project, and test it

$ git clone https://github.com/opencompany/opencompany.github.io.git
$ cd opencompany.github.io
$ jekyll serve --watch

Then initialise the plugin

$ git submodule add git://github.com/screeninteraction/jekyll-multiple-languages-plugin.git _plugins/multiple-languages
$ cd _plugins/multiple-languages
$ git pull origin master

Finally, start the server

$ jekyll serve --watch
Configuration file: /home/kyzh/opencompany.github.io/_config.yml
/usr/lib64/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_require.rb:51:in `require': cannot load such file -- jekyll/multiple/languages/plugin (LoadError)
...
kyzh commented 10 years ago

The latest version of jekyll from 1.2.1 to 1.4.1 fixed it. Sorry for the noise