Jekyll – stack level too deep (SystemStackError)

20 May 2013 14:57

The latest version of Jekyll has come out and I’ve been playing at converting my WordPress blog again. Messing around with ruby versions and arguments (not being a rubyist!) keep getting an odd error.

Using 2.0.0-dev:

$ ruby -r './wordpress.rb' \
  -e 'JekyllImport::WordPress.process({dbname:"db",user:"user"})'
/path/to/wordpress.rb:260: stack level too deep (SystemStackError)

Using 1.9.3-p327, the last character on line 260 had been causing pain:

$ ruby -r './wordpress.rb' \
  -e 'JekyllImport::WordPress.process({dbname:"db",user:"user"})'
/path/to/.rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /path/to/wordpress.rb:260: invalid multibyte char (US-ASCII) (SyntaxError)
/path/to/wordpress.rb:260: syntax error, unexpected $end
 }.delete_if { |k,v| v.nil? || v == '' }.to_yaml¬

This was almost certainly introduced during copy and pasting between vim windows. C&P death! Interesting fact those is ruby 2.0.0-dev hid that error, well, hid the detail of it anyway.

I was originally Paul Stamatiou‘s version, but, am now trying the version from the beta gem.

Also note that I built the gem manually before I did all this:

git clone git://github.com/jekyll/jekyll-import.git
gem build jekyll-import.gemspec
gem install ./jekyll-import-0.1.0.beta1.gem

I did have some other hacks from icebreaker and myself in the last version, so, I’ll get those in and hopefully publish it.

Filed: General

You can follow any responses to this entry through the RSS 2.0 feed.

You can leave a comment or leave a trackback from your own site.

One Response to “Jekyll – stack level too deep (SystemStackError)”

  1. Chris Beams on July 8th, 2014 at 10:48 am

    A similar error related to alias_generator.rb was reported and fixed (though not yet merged at the time of this writing): https://github.com/tsmango/jekyll_alias_generator/pull/13

Leave a Reply

 
Twitter   •   About   •   Contact
©2017 Ian Winter. All Rights Reserved.   •   Powered by WordPress   •   Hosted at Memset