Code Monkey home page Code Monkey logo

Comments (13)

jamesarosen avatar jamesarosen commented on May 12, 2024

running jekyll --no-auto causes the full stack-trace to bubble up, which is very helpful in debugging.

from jekyll.

jamesarosen avatar jamesarosen commented on May 12, 2024

But it doesn't always work. I'm getting the following error from GitHub's build:

The page build failed with the following error:
private method `chop!' called for nil:NilClass

But running jekyll --no-auto locally (after cleaning out the _site/ directory) gives this:

Configuration from ./_config.yml
Building site: . -> ./_site
Successfully generated site: . -> ./_site

from jekyll.

qrush avatar qrush commented on May 12, 2024

Yeah, I've run into this as well. Definitely needs to be fixed.

from jekyll.

jamesarosen avatar jamesarosen commented on May 12, 2024

Looking at the Maruku source, chop! is only used in three places. One is for getting rid of trailing whitespace, one is for titles in links (a la [text](url "title")) and one is for titles in images. I think it's important that those titles are bounded by double quotes rather than single quotes.

from jekyll.

jamesarosen avatar jamesarosen commented on May 12, 2024

Well, I fixed all the single quotes around titles, but that doesn't seem to be it. It must be a whitespace issue, b/c I have no images (except one done explicitly in HTML).

from jekyll.

jamesarosen avatar jamesarosen commented on May 12, 2024

The underlying error seems to have been a problem in Maruku, since the page built fine once I changed the processor to RDiscount. It would still be nice to have those errors bubble up, though.

from jekyll.

MattHall avatar MattHall commented on May 12, 2024

I've submitted a pull request for this issue:

#249

from jekyll.

ivolo avatar ivolo commented on May 12, 2024

+1

from jekyll.

ysim avatar ysim commented on May 12, 2024

Yeah, I'm getting the same issue right now (and I've tried jekyll --no-auto too). It's especially frustrating because I've narrowed down which post is causing the problem, but it's such a long post that I don't know where it could be. It would be so much more helpful if the stacktraces would actually tell you the file and line number that it's having trouble parsing.

from jekyll.

ysim avatar ysim commented on May 12, 2024

Ah, I think I found the problem -- I think the pycon lexer was having trouble with the regex in my snippet. I'll have to investigate further... puts on debugging hat

from jekyll.

bhardin avatar bhardin commented on May 12, 2024

I ran into the same problem. I usually am able to find the issue... Something in the YAML... However, this time it looks to be something else.

/Users/bhardin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:in `parse': (<unknown>): couldn't parse YAML at line 7 column 42 (Psych::SyntaxError)
    from /Users/bhardin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:154:in `parse_stream'
    from /Users/bhardin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:125:in `parse'
    from /Users/bhardin/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/psych.rb:112:in `load'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/convertible.rb:33:in `read_yaml'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/post.rb:39:in `initialize'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/site.rb:163:in `new'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/site.rb:163:in `block in read_posts'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/site.rb:161:in `each'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/site.rb:161:in `read_posts'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/site.rb:128:in `read_directories'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/site.rb:98:in `read'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/lib/jekyll/site.rb:38:in `process'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/gems/jekyll-0.11.2/bin/jekyll:250:in `<top (required)>'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/bin/jekyll:19:in `load'
    from /Users/bhardin/.rvm/gems/ruby-1.9.3-p0/bin/jekyll:19:in `<main>'

Any idea?

from jekyll.

bhardin avatar bhardin commented on May 12, 2024

Figured my problem out... I had a colon (:) in the yaml

from jekyll.

parkr avatar parkr commented on May 12, 2024

Merged in #249.

from jekyll.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.