Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I get Liquid Exception: no implicit conversion of nil into String in about.md when I try to run the Quick-start example #5170

Closed
3 of 17 tasks
adam-arold opened this issue Jul 30, 2016 · 9 comments

Comments

@adam-arold
Copy link

adam-arold commented Jul 30, 2016

  • I believe this to be a bug, not a question about using Jekyll.
  • I Updated to the latest Jekyll (or) if on Github Pages to the latest github-pages
  • I Read the CONTRIBUTION file at https://jekyllrb.com/docs/contributing/
  • This is a feature request.

  • I am on (or have tested on) _macOS_ 10+
  • I am on (or have tested on) _Debian/Ubuntu_ GNU/Linux
  • I am on (or have tested on) _Fedora_ GNU/Linux
  • I am on (or have tested on) _Arch_ GNU/Linux
  • I am on (or have tested on) _Other_ GNU/Linux
  • I am on (or have tested on) _Windows_ 10+

  • I was trying to install.
  • There is a broken Plugin API.
  • I had an error on Github Pages, and I have not tested locally.
  • I had an error on Github Pages, and Github Support said it was a Jekyll Bug.
  • I had an error on Github Pages and I did not test it locally.
  • I was trying to build.
  • It was another bug.

My Reproduction Steps

I simply run the following commands from the Quick-start example page:

~ $ gem install jekyll
~ $ jekyll new myblog
~ $ cd myblog
~/myblog $ jekyll serve

I get the following error:

$ jekyll serve
Configuration file: E:/myblog/_config.yml
Source: E:/myblog
Destination: E://myblog/_site
Incremental build: disabled. Enable with --incremental
Generating...
Build Warning: Layout 'post' requested in _posts/2016-07-30-welcome-to-jekyll.markdown does not exist.
Liquid Exception: no implicit conversion of nil into String in about.md
jekyll 3.2.0 | Error: no implicit conversion of nil into String

The Output I Wanted

I wanted it to work.

@jake-low
Copy link

Hi @adam-arold,

I was unable to reproduce your issue using Jekyll 3.2.0 (the same version you're using) and minima 1.0.1. What versions of minima do you have? You can check using gem list.

@adam-arold
Copy link
Author

adam-arold commented Jul 31, 2016

I have minima (1.0.1). I tried with 64 bit Ruby and the 32bit version. I used the the Windows Ruby installer for installing Ruby. I also had to install bundler because Jekyll was not working and I figured out that I need to install it. I'm not a Ruby user and I think you should mention that people need to install bundler, minima, and other fluff in order to get this to work. I use Windows 8.1.

@jake-low
Copy link

I agree; the maintainers have two PRs (#5168 and #5169) open to address this. v3.2.0 just came out a couple days ago and the docs haven't quite caught up yet. Glad you figured it out!

@adam-arold
Copy link
Author

I think the problem is that running the command which creates a new project is buggy because it did not create the necessary layout file thus:

Build Warning: Layout 'post' requested in _posts/2016-07-30-welcome-to-jekyll.markdown does not exist.

If I create a direcory named _layouts and put default.md page.md and post.md in it the problem is solved. But in this case I get another error:

jekyll 3.2.0 | Error: different prefix: "/" and "E:/my-awesome-site"

What could be the problem?

@adam-arold
Copy link
Author

adam-arold commented Jul 31, 2016

Related issue
Seems like this thing got broken since 3.1.6. I reverted from 3.2.0 to 3.1.6 and jekyll serve now works without problems. So these are actually two issues:

  • The site generated by the jekyll new command is broken in 3.2.0
  • In 3.2.0 Windows users can't get this to work because of Related issue

What should happen now? I'm fine with 3.1.6 but 3.2.0 needs to be fixed.

@jake-low
Copy link

3.2.1 will hopefully be out Monday and will solve these issues. (See #5159).

@parkr
Copy link
Member

parkr commented Aug 3, 2016

@adam-arold 3.2.1 should fix this for you! http://jekyllrb.com/news/2016/08/02/jekyll-3-2-1-released/

@parkr parkr closed this as completed Aug 3, 2016
@sunny-chung
Copy link

sunny-chung commented Jan 26, 2017

Reproduced in 3.3.1.

 Incremental build: disabled. Enable with --incremental
      Generating... 
     Build Warning: Layout 'post' requested in _posts/2017-01-26-welcome-to-jekyll.markdown does not exist.
  Liquid Exception: no implicit conversion of nil into String in about.md
jekyll 3.3.1 | Error:  no implicit conversion of nil into String

@parkr
Copy link
Member

parkr commented Jan 26, 2017

@sunny-chung fixed by #5750. keep an eye out for 3.4.0.

@jekyll jekyll locked and limited conversation to collaborators Jan 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants