Closed sh78 closed 7 years ago
I'm having this same issue
Me too
I ended up going with Hugo for my blog
I tried with jekyll 3.0.1 and it doesn't work.
In one of sanitized_path(base_directory, questionable_path)
iterations, questionable_path
parameter is nill, raising that error. I tried to set it to "" when nil and it works, but I'm not sure about the side effects as I don't understand jekyll and octopress architecture.
I Downgraded jerkyll to 2.5.x and it works as expected.
Any update? I just had this same problem.
Jekyll 3.0.2 has the same issue
Please run bundle exec jekyll build --trace
and paste the stacktrace.
@parkr here you go:
Configuration file: /Users/dxwduncan/dev/Personal/blog/_config.yml
Source: /Users/dxwduncan/dev/Personal/blog
Destination: /Users/dxwduncan/dev/Personal/blog/_site
Incremental build: disabled. Enable with --incremental
Generating...
Deprecation: Collection#empty? should be called on the #docs array directly.
Called by /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/octopress-ink-1.2.1/lib/octopress-ink/plugin/bootstrap.rb:163:in `p
osts?'.
Deprecation: Collection#select should be called on the #docs array directly.
Called by /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/octopress-ink-1.2.1/lib/octopress-ink/plugin/bootstrap.rb:171:in `linkposts?'.
Liquid Exception: no implicit conversion of nil into String in _posts/2014-02-07-getting-to-grips-with-postgres.markdown
/usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll.rb:156:in `expand_path': no implicit conversion of nil into String (TypeError)
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll.rb:156:in `sanitized_path'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/site.rb:376:in `block in in_source_dir'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/site.rb:375:in `each'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/site.rb:375:in `reduce'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/site.rb:375:in `in_source_dir'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/liquid_renderer.rb:16:in `file'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/renderer.rb:105:in `render_liquid'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:313:in `render_liquid'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/renderer.rb:60:in `run'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:306:in `run'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/excerpt.rb:76:in `output'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/excerpt.rb:60:in `to_s'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/document.rb:372:in `to_liquid'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/renderer.rb:37:in `run'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:306:in `run'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/site.rb:171:in `block (2 levels) in render'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/site.rb:169:in `each'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/site.rb:169:in `block in render'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/site.rb:168:in `each'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/site.rb:168:in `render'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/octopress-hooks-2.6.1/lib/octopress-hooks.rb:197:in `render'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/site.rb:59:in `process'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/command.rb:28:in `process_site'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/commands/build.rb:60:in `build'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/commands/build.rb:35:in `process'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/lib/jekyll/commands/build.rb:18:in `block (2 levels) in init_with_program'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `call'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `block in execute'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `each'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/command.rb:220:in `execute'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary/program.rb:42:in `go'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/mercenary-0.3.5/lib/mercenary.rb:19:in `program'
from /usr/local/var/rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/jekyll-3.0.2/bin/jekyll:17:in `<top (required)>'
from /usr/local/var/rbenv/versions/2.2.3/bin/jekyll:23:in `load'
from /usr/local/var/rbenv/versions/2.2.3/bin/jekyll:23:in `<main>'
Looks like this has been addressed: I've tried on Jekyll 3.4.3 and I don't get the errors when running build
or serve
:tada: Thanks!
Getting deprecation warnings and liquid exceptions after following the "install it yourself" path in solarized/README.md at master · octopress/solarized.
I'm on OS X 10.11.1 (15B42) and use fish shell with ruby 2.2.3p173 via rbenv 2.2.3.
Will gladly provide any additional debugging or info!
Starting from a clean rbenv ruby install with no gems, here's what happens:
1 - install octopress and octopress ink
2 - use
octopress
to create a new site per the docs3 - serve the site locally. everything works and looks great.
_4 - install
octopress-solarized
and add gem to 'config.yml' per the docs5 -
jekyll serve
fails_6 - remove the gem lines from 'config.yml', everything works again.
Just for kicks, I also tried adding
{% css_asset_tag %}
to the default 'head.html' include that comes with octopress, and got this: