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

Can't start local jekyll server #5145

Closed
5 of 17 tasks
dlin303 opened this issue Jul 28, 2016 · 10 comments · Fixed by jekyll/minima#6 or #5156
Closed
5 of 17 tasks

Can't start local jekyll server #5145

dlin303 opened this issue Jul 28, 2016 · 10 comments · Fixed by jekyll/minima#6 or #5156
Labels
frozen-due-to-age pending-feedback We are waiting for more info.

Comments

@dlin303
Copy link

dlin303 commented Jul 28, 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

Did a fresh gem install of jekyll 3.2.0 and tried to serve it

$ gem install jekyll
$ jekyll new testblog
$ cd testblog
$ jekyll serve

Got this error:

Configuration file: /Users/Daron/Development/testblog/_config.yml
            Source: /Users/Daron/Development/testblog
       Destination: /Users/Daron/Development/testblog/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
     Build Warning: Layout 'post' requested in _posts/2016-07-28-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

But if i gem uninstall jekyll and reinstall v3.1.6 gem install jekyll -v 3.1.6, everything works fine.

$ rm -rf testblog
$ gem uninstall jekyll
$ gem install jekyll -v 3.1.6
$ jekyll new testblog
$ cd testblog
$ jekyll serve

I get what I expect:

Configuration file: /Users/Daron/Development/testblog/_config.yml
            Source: /Users/Daron/Development/testblog
       Destination: /Users/Daron/Development/testblog/_site
 Incremental build: disabled. Enable with --incremental
      Generating...
                    done in 0.646 seconds.
 Auto-regeneration: enabled for '/Users/Daron/Development/testblog'
Configuration file: /Users/Daron/Development/testblog/_config.yml
    Server address: http://127.0.0.1:4000/
  Server running... press ctrl-c to stop.

I'm completely new to jekyll, but wanted to give you all the headsup in case there's something wrong with latest 3.2.0 release since it's only 4 hours old.

@envygeeks
Copy link
Contributor

Hi @dlin303,

Can you please re-run your command with --trace so that we can trace a regression path. Thanks!

@envygeeks envygeeks added bug pending-feedback We are waiting for more info. labels Jul 28, 2016
@ruisaraiva19
Copy link

I have the same problem...
jekyll error

@ryanapil
Copy link

+1

@Crunch09
Copy link
Member

Crunch09 commented Jul 28, 2016

@envygeeks theme.includes_path is nil at this point which results in the error. I think the cause of the problem is that the _layouts, _includes and _sass directory of minima are excluded in the .gemspec. I'll send a PR to add them!

@sasivarnan
Copy link

I am still facing this issue. Any idea?

@Crunch09
Copy link
Member

Crunch09 commented Jul 28, 2016

There needs to be a new release of minima before this will be fixed for
everyone.

Edit: I just saw @parkr already released a new version. @sasivarnan Can you do an bundle update minima in your site's directory? This should solve your issue.

@sasivarnan
Copy link

@Crunch09 Thanks for the reply.

For now, I downloaded the jekyll/minima repo and placed the files inside my site directory.

Now I am facing #4677 Issue.

@benbalter
Copy link
Contributor

I'm still getting this issue, even with v1.0.1 of minima.

I've traced the problem to the fact that Theme#path_for always returns nil for Gem-distributed themes, because Jekyll.sanitized_path double-prepends the root resulting in an root + root + path, which is an invalid file.

@Crunch09
Copy link
Member

Somehow i can't reproduce it, if i put an puts "PATH: #{path}" after this line i get:

screen shot 2016-07-28 at 21 05 35

@benbalter
Copy link
Contributor

benbalter commented Jul 28, 2016

Digging deeper, it looks like it's only going to affect symlinked gems, which in my case, is the default for rbenv/homebrew.

Edit: Should have a fix momentarily.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age pending-feedback We are waiting for more info.
Projects
None yet
8 participants