Comments (13)
running jekyll --no-auto
causes the full stack-trace to bubble up, which is very helpful in debugging.
from jekyll.
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.
Yeah, I've run into this as well. Definitely needs to be fixed.
from jekyll.
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.
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.
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.
I've submitted a pull request for this issue:
from jekyll.
+1
from jekyll.
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.
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.
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.
Figured my problem out... I had a colon (:) in the yaml
from jekyll.
Merged in #249.
from jekyll.
Related Issues (20)
- feat: A question about how to let user to submit the request and upload to post automatically HOT 3
- [Bug]: Impossible to use Jekyll on FreeBSD HOT 2
- feat: Add a content or "do not delete" attribute to static_file HOT 1
- Update dependency constraint to allow for rubocop v1.57.0
- Update dependency constraint to allow for psych v5.1.1
- Update dependency constraint to allow for rubocop v1.57.1
- Update dependency constraint to allow for psych v5.1.1.1
- Update dependency constraint to allow for activesupport v7.1.1 HOT 1
- Update dependency constraint to allow for activesupport v7.1.1
- Update dependency constraint to allow for rubocop v1.57.2 HOT 2
- [Bug]: bundle exec jekyll build fails on Debian Unstable HOT 1
- Blog start
- [Bug]: Jekyll can support html in markdown ? HOT 1
- Update dependency constraint to allow for activesupport v7.1.1 HOT 2
- feat: multi-thread rendering HOT 10
- [Bug]: jekyll build fails with Variable was not properly terminated with regexp: /\\}\\}/ (Liquid::SyntaxError) HOT 1
- [Bug]: jekyll not working after upgrade from Debian 11 to 12 HOT 2
- [Bug]: Jekyll Github Pages site doesn't "play nice" with Ruby versions required by vscode HOT 1
- Time for a new release
- > Β‘Hola! π HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jekyll.