[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RFH: Please help me debug jekyll-compose issue (jekyll fails to start)



Hi everybody,

Yesterday I started packaging jekyll-compose. This is a plugin, which extends
the Jekyll commands. It allows to create, publish, unpublish and rename posts,
drafts, pages, etc. via command line:

> jekyll page "My New Page"
> jekyll rename _posts/2012-03-04-my-old-post.md "My New Post" --now
> etc.

It also allows to define the default frontmatter and it is actively maintained.
So I really think this is a useful plugin worth packaging.

The packaging is at [1] or, if you don't want to build the packages, you can
use the one from the build artifacts [2]. But with this plugin installed,
jekyll refuses to start:

> $ jekyll help
> Traceback (most recent call last):
> 	12: from /usr/bin/jekyll:6:in `<main>'
> 	11: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
> 	10: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
> 	 9: from /usr/lib/ruby/vendor_ruby/jekyll.rb:193:in `<top (required)>'
> 	 8: from /usr/lib/ruby/vendor_ruby/jekyll.rb:12:in `require_all'
> 	 7: from /usr/lib/ruby/vendor_ruby/jekyll.rb:12:in `each'
> 	 6: from /usr/lib/ruby/vendor_ruby/jekyll.rb:13:in `block in require_all'
> 	 5: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
> 	 4: from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
> 	 3: from /usr/lib/ruby/vendor_ruby/jekyll/commands/draft.rb:5:in `<top (required)>'
> 	 2: from /usr/lib/ruby/vendor_ruby/jekyll/commands/draft.rb:6:in `<module:Jekyll>'
> 	 1: from /usr/lib/ruby/vendor_ruby/jekyll/commands/draft.rb:7:in `<module:Commands>'
> /usr/lib/ruby/vendor_ruby/jekyll/commands/draft.rb:43:in `<class:Draft>': uninitialized constant Jekyll::Compose (NameError)
> Did you mean?  Complex

Upstream thinks [3] this is a downstream issue. I don't understand why, to be
honest. Or at least I don't understand what I should do different. Can you guys
help? What needs to be done here (adding a require statement fixes the issue,
but I believe upstream, that it should work without)? What is different in this
plugin? ruby-jekyll-watch and other plugins, which are similar to this one,
work.

[1] https://salsa.debian.org/ruby-team/ruby-jekyll-compose
[2] https://salsa.debian.org/ruby-team/ruby-jekyll-compose/pipelines
[3] https://github.com/jekyll/jekyll-compose/issues/113

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: