Error when trying to build Jekyll 3.4.3 after upgrading - ruby

I just recently did a bunch of upgrading on my jekyll site to get a plugin to install and now when I got to build I get this:
`jekyll 3.4.3 | Error: undefined method `gsub' for 25:Integer`
The full stack is:
Configuration file: /Users/susanjrobertson/Sites/jekyll_site/_config.yml
Source: /Users/susanjrobertson/Sites/jekyll_site
Destination: /Users/susanjrobertson/Sites/jekyll_site/_site
Incremental build: disabled. Enable with --incremental
Generating...
/Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/utils.rb:213:in `slugify': undefined method `gsub' for 25:Integer (NoMethodError)
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/drops/url_drop.rb:22:in `title'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/drops/drop.rb:52:in `public_send'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/drops/drop.rb:52:in `[]'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:112:in `block in generate_url_from_drop'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:102:in `gsub'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:102:in `generate_url_from_drop'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:69:in `generate_url'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:60:in `generated_url'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/url.rb:40:in `to_s'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/document.rb:200:in `url'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/document.rb:214:in `destination'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/regenerator.rb:176:in `regenerate_document?'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/regenerator.rb:25:in `regenerate?'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:451:in `block (2 levels) in render_docs'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:450:in `each'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:450:in `block in render_docs'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:449:in `each'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:449:in `render_docs'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:190:in `render'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/site.rb:69:in `process'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/command.rb:26:in `process_site'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/commands/build.rb:63:in `build'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/commands/build.rb:34:in `process'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/lib/jekyll/commands/build.rb:16:in `block (2 levels) in init_with_program'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `block in execute'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `each'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in `execute'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in `go'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/mercenary-0.3.6/lib/mercenary.rb:19:in `program'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/gems/jekyll-3.4.3/exe/jekyll:13:in `<top (required)>'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/bin/jekyll:22:in `load'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/bin/jekyll:22:in `<main>'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `eval'
from /Users/susanjrobertson/.rvm/gems/ruby-2.4.1/bin/ruby_executable_hooks:15:in `<main>'
I'm not the most adept with these things and have no idea what's going on here or how to fix it. X-Code is up to date, I'm using a ruby package manager to get the gems working together, but still am seeing this final error.
Any ideas? And Thank you!

After installation I just had the same error. Went to the jekyll-docs gem directory and ran...
jekyll serve
That command exited with...
Configuration file: C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site/_config.yml Dependency Error: Yikes! It looks like you don't have jekyll-feed 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-feed' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! jekyll 3.1.1 | Error: jekyll-feed
So I did...
gem install jekyll-feed
jekyll serve
This time...
Configuration file: C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site/_config.yml Dependency Error: Yikes! It looks like you don't have jekyll-redirect-from 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-redirect-from' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! jekyll 3.1.1 | Error: jekyll-redirect-from
Again...
gem install jekyll-redirect-from
jekyll serve
This time...
Configuration file: C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site/_config.yml Source: C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site Destination: C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site/_site Incremental build: disabled. Enable with --incremental Generating... Dependency Error: Yikes! It looks like you don't have pygments 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 -- pygments' If you run into trouble, you can find helpful resources at http://jekyllrb.com/help/! Liquid Exception: pygments in C:/ruby217/lib/ruby/gems/2.1.0/gems/jekyll-docs-3.1.1/site/_docs/assets.md ERROR: YOUR SITE COULD NOT BE BUILT: ------------------------------------ pygments
So I opened _config.yml (and there at the end of file were those 2 gems listed which I installed above. I should have opened the _config.yml first) and changed this line...
highlighter: pygments
to..
highlighter: rouge
because rouge was already installed on system. After that I ran...
jekyll serve
and voila. It worked.
Conclusion: required dependencies are not resolving correctly.

So, a friend in another place answered this question for me!
I had a post that was the following slug: 25 and Jekyll didn't like that at all, I changed it to twenty-five and it was all good!
Hope this helps someone else :)

Related

error while run npm run dev after adding extension for App Lock theme in shopify app MERN

━━━━━━ Error ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Command failed with exit code 1: bundle install
Your lockfile was created by an old Bundler that left some things out.
Because of the missing DEPENDENCIES, we can only install gems one at a time, instead of installing 4 at a time.
You can fix this by adding the missing gems to your Gemfile, running bundle install, and then removing the gems from your Gemfile.
The missing gems are:
* mini_portile2 depended upon by nokogiri
--- ERROR REPORT TEMPLATE -------------------------------------------------------
```
NoMethodError: undefined method `full_name' for nil:NilClass
warning << "* #{unmet_spec_dependency}, depended upon #{spec.full_name}, unsatisfied by #{#specs.find {|s| s.name == unmet_spec_dependency.name && !unmet_spec_dependency.matches_spec?(s.spec) }.full_name}"
^^^^^^^^^^
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer/parallel_installer.rb:124:in `block (2 levels) in check_for_unmet_dependencies'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer/parallel_installer.rb:123:in `each'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer/parallel_installer.rb:123:in `block in check_for_unmet_dependencies'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer/parallel_installer.rb:122:in `each'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer/parallel_installer.rb:122:in `check_for_unmet_dependencies'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer/parallel_installer.rb:100:in `call'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer/parallel_installer.rb:71:in `call'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer.rb:254:in `install_in_parallel'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer.rb:209:in `install'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer.rb:89:in `block in run'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/process_lock.rb:12:in `block in lock'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/process_lock.rb:9:in `open'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/process_lock.rb:9:in `lock'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer.rb:71:in `run'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/installer.rb:23:in `install'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/cli/install.rb:62:in `run'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:257:in `block in install'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/settings.rb:131:in `temporary'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:256:in `install'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:31:in `dispatch'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/cli.rb:25:in `start'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.23/exe/bundle:48:in `block in <top (required)>'
C:/Ruby31-x64/lib/ruby/site_ruby/3.1.0/bundler/friendly_errors.rb:120:in `with_friendly_errors'
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/bundler-2.3.23/exe/bundle:36:in `<top (required)>'
C:/Ruby31-x64/bin/bundle:33:in `load'
C:/Ruby31-x64/bin/bundle:33:in `<main>'
```
## Environment
```
Bundler 2.3.23
Platforms ruby, x64-mingw-ucrt
Ruby 3.1.2p20 (2022-04-12 revision 4491bb740a9506d76391ac44bb2fe6e483fec952) [x64-mingw-ucrt]
Full Path C:/Ruby31-x64/bin/ruby.exe
Config Dir C:/ProgramData
RubyGems 3.3.23
Gem Home C:/Users/reeba/AppData/Local/shopify-cli-nodejs/Cache/vendor/ruby-cli/2.25.0/ruby/3.1.0
Gem Path C:/Users/reeba/AppData/Local/shopify-cli-nodejs/Cache/vendor/ruby-cli/2.25.0/ruby/3.1.0
User Home C:/Users/reeba
User Path C:/Users/reeba/.local/share/gem/ruby/3.1.0
Bin Dir C:/Users/reeba/AppData/Local/shopify-cli-nodejs/Cache/vendor/ruby-cli/2.25.0/ruby/3.1.0/bin
OpenSSL
Compiled OpenSSL 1.1.1n 15 Mar 2022
Loaded OpenSSL 1.1.1n 15 Mar 2022
Cert File C:/Ruby31-x64/ssl/cert.pem
Cert Dir C:/Ruby31-x64/ssl/certs
Tools
Git 2.32.0.windows.2
RVM not installed
rbenv not installed
chruby not installed
```
## Bundler Build Metadata
```
Built At 2022-10-05
Git SHA 250d9d485d
Released Version true
```
## Bundler settings
```
path
Set for your local app (C:/Users/reeba/AppData/Local/shopify-cli-nodejs/Cache/vendor/ruby-cli/2.25.0/.bundle/config): "C:/Users/reeba/AppData/Local/shopify-cli-nodejs/Cache/vendor/ruby-cli/2.25.0"
```
## Gemfile
### Gemfile
```ruby
source 'https://rubygems.org'
gem 'shopify-cli', '2.25.0'
```
### Gemfile.lock
```
<No C:/Users/reeba/AppData/Local/shopify-cli-nodejs/Cache/vendor/ruby-cli/2.25.0/Gemfile.lock found>
```
--- TEMPLATE END ----------------------------------------------------------------
Unfortunately, an unexpected error occurred, and Bundler cannot continue.
First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=undefined+method+%60full_name%27+for+nil+NilClass&type=Issues
If there aren't any reports for this error yet, please fill in the new issue form located at https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md, and copy and paste the report template above in there.
Fetching gem metadata from https://rubygems.org/.............
Resolving dependencies...
Using ast 2.4.2
Using concurrent-ruby 1.1.10
Using bugsnag 6.24.2
Using bundler 2.3.23
Using ffi 1.15.5
Using liquid 5.4.0
Using rb-fsevent 0.11.2
Using rb-inotify 0.10.1
Using listen 3.7.1
Using racc 1.6.0
Installing nokogiri 1.13.8 with native extensions
I've got the same error message.
First of all I've made the gem update and the bundler updates:
gem install bundler
gem update --system
And then:
You should find the Gemfile.lock file in the directory .../path to your installed folder/lib/ruby/gems/2.7.0/gems/shopify-cli-2.27.0/Gemfile.lock and copy in to the folder C:/Users/reeba/AppData/Local/shopify-cli-nodejs/Cache/vendor/ruby-cli/2.25.0/
Generally it says - that the Gemfile.lock is not found:
Gemfile.lock
<No C:/Users/reeba/AppData/Local/shopify-cli-nodejs/Cache/vendor/ruby-cli/2.25.0/Gemfile.lock found>
That should help.
I had the same problem and this worked for me:
If you are using shopify cli 3.0+ and ruby 3.1.2 then copy Gemfile.lock from => *ruby path installed folder */lib/ruby/gems/2.7.0/gems/shopify-app/Gemfile.lock
OR in other versions it will be in *ruby path installed folder */lib/ruby/gems/2.7.0/gems/shopify-cli-2.27.0/Gemfile.lock
Add the Gemfile.lock in C:\Users\reeba\AppData\Local\shopify-cli-nodejs\Cache\vendor\ruby-cli\2.27.0
And also add same file at C:\Users\reeba\AppData\Local\shopify-cli-nodejs\Cache\vendor\theme-check\1.10.3

bundle exec jekyll serve > Conflict: The following destination is shared by multiple files

Environment
Windows 10
ruby 3.0.0p0
jekyll 4.2.0
bundler
Steps to get here
installed ruby and jekyll using instructions: https://jekyllrb.com/docs/installation/windows/#installation-via-rubyinstaller
cloned existing jekyll repository (uses minimal mistakes theme)
successfully executed bundle update to update all the dependencies.
manually installed wdm
Gemfile looks like this:
source "https://rubygems.org"
gemspec
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
Issue
jekyll serve and bundle exec jekyll serve commands fail with the following error:
$ bundle exec jekyll serve
Configuration file: C:/Users/linds/ueducateus-website/_config.yml
Source: C:/Users/linds/ueducateus-website
Destination: C:/Users/linds/ueducateus-website/_site
Incremental build: disabled. Enable with --incremental
Generating...
Jekyll Feed: Generating feed for posts
Conflict: The following destination is shared by multiple files.
The written file may end up with unexpected contents.
C:/Users/linds/ueducateus-website/_site/index.html
- index.html
- index.html
- index.html
- index.html
- index.html
done in 1.511 seconds.
Auto-regeneration: enabled for 'C:/Users/linds/ueducateus-website'
------------------------------------------------
Jekyll 4.2.0 Please append `--trace` to the `serve` command
for any additional information or backtrace.
------------------------------------------------
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve/servlet.rb:3:in `require': cannot load such file -- webrick (LoadError)
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve/servlet.rb:3:in `<top (required)>'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve.rb:179:in `require_relative'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve.rb:179:in `setup'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve.rb:100:in `process'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/jekyll-4.2.0/exe/jekyll:15:in `<top (required)>'
from C:/Ruby30-x64/bin/jekyll:23:in `load'
from C:/Ruby30-x64/bin/jekyll:23:in `<main>'
Additional
Site builds successfully on Ubuntu 18.04, with Ruby 2.5.1 and Jekyll 4.0
Unfortunately for handover, the site files need to be on Windows
This issue could be related to https://github.com/kubevirt/kubevirt.github.io/issues/665
Have run jekyll serve --trace but results are the same
It seems webrick does not come bundled with ruby 3.0. Check this jekyll github issue.
From
https://www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/:
The following libraries are no longer bundled gems or standard
libraries. Install the corresponding gems to use these features.
sdbm webrick net-telnet xmlrpc
You have two options
Downgrade to ruby 2.5 as you have on ubuntu OR
Add gem "webrick" in Gemfile.

Creating local gem for Jekyll and keep getting "don't have jekyll-custom-plugin or one of its dependencies installed" as jekyll unable to find it

I creating new and custom gem called as "jekyll-custom-plugin" for my Jekyll and gem this is successfully build.
robbi#pc MINGW64 /d/Workplace/ruby/jekyll-custom-plugin(master)
$ gem build jekyll-custom-plugin.gemspec
Successfully built RubyGem
Name: jekyll-custom-plugin
Version: 1.0.3
File: jekyll-custom-plugin-1.0.3.gem
I open and modified my gemfile plugin with file path and file version as needed
group :jekyll_plugins do
# put here other jekyll plugins..
gem 'jekyll-custom-plugin', '1.0.3', :path => 'd:/Workplace/ruby/jekyll-custom-plugin'
end
and my jekyll _config.yml call the plugin as usual
plugins:
- jekyll-custom-plugin
but when I try to build up the website (bundle update, bundle install and bundle exec jekylly serve), i keep getting
robbi#pc MINGW64 /d/NOPE/robbinespu.gitlab.io (master)
$ bundle exec jekyll serve
Configuration file: D:/NOPE/robbinespu.gitlab.io/_config.yml
Theme Config file: C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/octoflavor-ee4be458ed67/_config.yml
Dependency Error: Yikes! It looks like you don't have jekyll-custom-plugin or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. If you've run Jekyll with `bundle exec`, ensure that you have included the jekyll-custom-plugin gem in your Gemfile as well. The full error message from Ruby is: 'cannot load such file -- jekyll-custom-plugin' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
------------------------------------------------
Jekyll 4.0.0 Please append `--trace` to the `serve` command
for any additional information or backtrace.
------------------------------------------------
This is weid because, I already install and it show up here
robbi#pc MINGW64 /d/NOPE/robbinespu.gitlab.io (master)
$ bundle install | grep custom
Using jekyll-custom-plugin 1.0.3 from source at `d:/Workplace/ruby/jekyll-custom-plugin`
robbi#pc MINGW64 /d/NOPE/robbinespu.gitlab.io (master)
$ bundle info jekyll-custom-plugin
* jekyll-custom-plugin (1.0.3)
Summary: A Jekyll plugin to provide XXX.
Homepage: https://github.com/robbinespu/XXX
Path: d:/Workplace/ruby/jekyll-custom-plugin
even bundle said it already installed and match the version
robbi#pc MINGW64 /d/NOPE/robbinespu.gitlab.io (master)
$ bundle list | custom
* jekyll-custom-plugin (1.0.3)
here the --trace log
$ bundle exec jekyll s --trace
Configuration file: D:/NOPE/robbinespu.gitlab.io/_config.yml
Theme Config file: C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/octoflavor-ee4be458ed67/_config.yml
Dependency Error: Yikes! It looks like you don't have jekyll-custom-plugin or one of its dependencies installed. In order to use Jekyll as currently configured, you'll need to install this gem. If you've run Jekyll with `bundle exec`, ensure that you have included the jekyll-custom-plugin gem in your Gemfile as well. The full error message from Ruby is: 'cannot load such file -- jekyll-custom-plugin' If you run into trouble, you can find helpful resources at https://jekyllrb.com/help/!
C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:73:in `rescue in block in require_with_graceful_fail': jekyll-custom-plugin (Jekyll::Errors::MissingDependencyException)
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:58:in `block in require_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:57:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:57:in `require_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/plugin_manager.rb:30:in `require_gems'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/plugin_manager.rb:22:in `conscientious_require'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/site.rb:125:in `setup'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/site.rb:35:in `initialize'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/build.rb:30:in `new'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/build.rb:30:in `process'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/exe/jekyll:15:in `<top (required)>'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bin/jekyll:23:in `load'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bin/jekyll:23:in `<main>'
C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:60:in `require': cannot load such file -- jekyll-custom-plugin (LoadError)
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:60:in `block in require_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:57:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/external.rb:57:in `require_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/plugin_manager.rb:30:in `require_gems'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/plugin_manager.rb:22:in `conscientious_require'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/site.rb:125:in `setup'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/site.rb:35:in `initialize'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/build.rb:30:in `new'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/build.rb:30:in `process'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `block in process_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/command.rb:91:in `process_with_graceful_fail'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/lib/jekyll/commands/serve.rb:86:in `block (2 levels) in init_with_program'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bundler/gems/jekyll-2bc1e04620ce/exe/jekyll:15:in `<top (required)>'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bin/jekyll:23:in `load'
from C:/Ruby26-x64/lib/ruby/gems/2.6.0/bin/jekyll:23:in `<main>'
The exception message does not give the (root cause) reason for failure.
Add --trace as suggested, examine the file that is raising the error and see how the error that is being raised is constructed. This could follow a pattern like:
begin
# ...
rescue LoadError => e
raise "Generic error message not including anything from 'e.'"
end
... in which case change to:
begin
# ...
rescue LoadError => e
raise "Error message: #{e.class}: #{e}"
end
... and you'll have the root cause displayed.
If you are less fortunate, you'll see:
if $SOME_GLOBAL_FLAG
raise "Generic error message"
end
In this case the flag is set elsewhere in a rescue block for LoadError. You'll need to hunt that rescue down and print the error from there.
In either case I personally would report the omission of the root cause exception to the library that utilizes either pattern as a bug.

Ruby Error FSEVENT on Jekyll build

Today i installed Jekyll on my mac.
Everything have gone fine, i've done it this way:
Install RVM -> Install Ruby through RVM -> Install Jekyll without problems
But now when i try to run my build, it deploys fine but then reports an error. I've included everything i do in the terminal here:
Mortens-MacBook-Pro:~ mortenpradsgaard$ cd /Users/mortenpradsgaard/Documents/GitHub
Mortens-MacBook-Pro:GitHub mortenpradsgaard$ cd sostdk
Mortens-MacBook-Pro:sostdk mortenpradsgaard$ jekyll serve
Configuration file: /Users/mortenpradsgaard/Documents/GitHub/sostdk/_config.yml
Source: /Users/mortenpradsgaard/Documents/GitHub/sostdk
Destination: /Users/mortenpradsgaard/Documents/GitHub/sostdk/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 0.134 seconds.
Auto-regeneration: enabled for '/Users/mortenpradsgaard/Documents/GitHub/sostdk'
Server address: http://127.0.0.1:4000/sostdk//
Server running... press ctrl-c to stop.
E, [2017-06-29T14:06:16.311105 #5384] ERROR -- : fsevent: running worker failed: wrong number of arguments (2 for 1):/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/base.rb:41:in `block (2 levels) in configure'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/rb-fsevent-0.10.1/lib/rb-fsevent/fsevent.rb:75:in `call'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/rb-fsevent-0.10.1/lib/rb-fsevent/fsevent.rb:75:in `run'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:68:in `_run_worker'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:52:in `_run'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/base.rb:78:in `block in start'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `call'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add' called from: /Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:67:in `_run_worker'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/darwin.rb:52:in `_run'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/adapter/base.rb:78:in `block in start'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `call'
/Users/mortenpradsgaard/.rvm/gems/ruby-2.2.6/gems/listen-3.0.8/lib/listen/internals/thread_pool.rb:6:in `block in add'
We were facing the same issue in our jekyll build. It turns out this was an issue with the rb-fsevent gem that should now be resolved as of 0.10.2.
For posterity and future searches, specifying version 0.9.8 in our Gemfile kept us in good shape until the rb-fsevent fix landed:
Gemfile
gem "rb-fsevent", "0.9.8"
Hat tip to https://github.com/guard/listen/issues/431 for the detective work.
Is this the repository in question? https://github.com/sostdk/sostdk/
In your _config.yml, you have the baseurl duplicating part of the siteurl:
siteurl: https://sostdk.github.io/sostdk/
baseurl: /sostdk/
It might fix your error if you change siteurl to https://sostdk.github.io/sostdk and baseurl to /.
You might want to change your repository name from sostdk to sostdk.github.io. This would enable you to leave off the /sostdk part leaving it just as https://sostdk.github.io.

Integrating bourbon to default octopress theme

I'd like to make my octopress blog template with thoughtbot's bourbon & neat. I couldn't find any documentation that covers theming in octopress (or its root, jekyll) from scratch. So, I decided to customise octopress default theme.
I've added related gems to the Gemfile like:
gem 'compass', '~> 1.0.0.rc.1' # to make compass work with sass 3.3
gem 'sass', '~> 3.3' # unnecessary but better to be placed hier
gem 'bourbon'
gem 'refills'
gem 'neat'
gem 'bitters'
Then, I've copied default theme under .themes path like:
ls .themes/classic .themes/bourtlen # so, new theme name is bourtlen :)
I've made sass folder under bourtlen empty. Then inside sass, I've run:
bourbon install
All bourbon assets are now under sass. Then, I've added screen.scss under sass:
#import 'compass';
#import 'bourbon/bourbon';
#import 'base/base';
#import 'neat/neat';
#import 'custom/custom'; # for customization, it's also created in sass folder as _custom.scss
After all, I've installed my newborn theme, but when I hit command to generate the site, I got these warnings & errors:
❯ bin/rake generate --trace
** Invoke generate (first_time)
** Execute generate
## Generating Site with Jekyll
/home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `require': cannot load such file -- sass/script/node (LoadError)
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches/browser_support.rb:1:in `<top (required)>'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `require'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:2:in `block in <top (required)>'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `each'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions/monkey_patches.rb:1:in `<top (required)>'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in `require'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass/sass_extensions.rb:9:in `<top (required)>'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass.rb:5:in `require'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass.rb:5:in `block in <top (required)>'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass.rb:4:in `each'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/lib/compass.rb:4:in `<top (required)>'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/bin/compass:20:in `require'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/bin/compass:20:in `block in <top (required)>'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/bin/compass:8:in `fallback_load_path'
from /home/ekrem/.rbenv/versions/2.1.1/lib/ruby/gems/2.1.0/gems/compass-0.12.2/bin/compass:19:in `<top (required)>'
from /home/ekrem/.rbenv/versions/2.1.1/bin/compass:23:in `load'
from /home/ekrem/.rbenv/versions/2.1.1/bin/compass:23:in `<main>'
Notice: for 10x faster LSI support, please install http://rb-gsl.rubyforge.org/
Configuration file: /home/ekrem/ws-rails/blog-new/_config.yml
Source: source
Destination: public
Generating...
Build Warning: Layout 'nil' requested in blog/categories/ruby/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/rails/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/ember/atom.xml does not exist.
Build Warning: Layout 'nil' requested in atom.xml does not exist.
Build Warning: Layout 'nil' requested in robots.txt does not exist.
Build Warning: Layout 'nil' requested in blog/categories/ruby/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/rails/atom.xml does not exist.
Build Warning: Layout 'nil' requested in blog/categories/ember/atom.xml does not exist.
done.
Site runs on local after all but no effect because of (probably) these errors & warnings. I wonder what is missing.
I am trying to do the exact same thing right now (setting up my custom Octopress theme using Bourbon and Neat) and I just managed to resolve the same issue you're experiencing.
The 'nil' error:
As detailed here since version 2.2 Jekyll has an issue with the layout validation, so you will manually have to change nil to null in 2 files:
source/atom.xml
source/_includes/custom/category_feed.xml
This will sort out Jekyll and it will stop hicking up :)
The Compass errors:
I had quite a bit of a nightmare when I was trying to upgrade Compass, so that Bourbon can be installed. It seems that Compass was locked to an old version of SASS, which was locked to an old version of listen, which could not be updated...
I eventually had to delete ALL versions of Compass I had installed, and then install version 1.0.1.
In my case another issue was that I had the gems installed globally, and not per project, so I had to add a .bundle/config file to tell Bundler where to clone the gems for the Octopress repo.
The contents of my Bundler config file:
---
BUNDLE_PATH: vendor/bundle
BUNDLE_DISABLE_SHARED_GEMS: '1'
After carrying out with these changes Octopress should be happy to work with Bourbon.
I hope it helps.
For the 'nil' warnings:
Create an empty "nil.html" file in the _layouts folder
(Jekyll started validating layouts...)

Resources