Open antoniosgeme opened 11 months ago
You're using an old version of jekyll-scholar (5.x latest is 7.x). You can fix this by updating the Gem and its dependencies (specifically, bibtex-ruby here is 4.4.7 but 6.0 is the latest).
@inukshuk Thanks! It turns out there is a dependency conflict with the github-pages gem which does not support Jekyll 4. Are you aware of any workarounds?
Hello ! I have the exact same problem (but I use minimal-mistake theme) with github-pages that need jekyll 3.9.3. So I can't use latest version of jekyll-scholar apparently, so I tried version 5.16.0 but nevertheless the same error message is still there ...
If there is any solution, I would be happy to hear it
@julienguegan I have not gotten this to work. Instead, I resorted to using the bibtexparser library in python to create a YAML file which can be read by Jekyll. It works pretty well for my needs.
@antoniosgeme pretty interesting, can you show me an example how to use it ? When you have you're yaml generated how to you call it ? Is there a command like in latex \cite{article_id} or \ref ?
Unfortunately, there is not simple command. You have to write some liquid code to extract and format. Check out this file: https://github.com/antoniosgeme/antoniosgeme.github.io/blob/master/_pages/publications.md?plain=1
I am trying to integrate this wonderful Jekyll extension with the academicpages fork of minimal mistakes, and I am getting "Tried to create Proc object without a block" errors. I am running on Windows using the latest versions of all the involved components. Are there any obvious reasons this wouldn't work? Here is the full error in case it helps at all:
Liquid Exception: tried to create Proc object without a block in _pages/publications.md jekyll 3.9.3 | Error: tried to create Proc object without a block C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/bibtex-ruby-4.4.7/lib/bibtex/bibliography.rb:150:in'
new': tried to create Proc object without a block (ArgumentError) from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/bibtex-ruby-4.4.7/lib/bibtex/bibliography.rb:150:in
each' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/bibtex-ruby-4.4.7/lib/bibtex/bibliography.rb:497:inselect' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/bibtex-ruby-4.4.7/lib/bibtex/bibliography.rb:497:in
query' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/bibtex-ruby-4.4.7/lib/bibtex/bibliography.rb:278:inreplace' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-scholar-5.16.0/lib/jekyll/scholar/utilities.rb:172:in
bibliography' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-scholar-5.16.0/lib/jekyll/scholar/utilities.rb:184:inentries' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-scholar-5.16.0/lib/jekyll/scholar/utilities.rb:790:in
cited_entries' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-scholar-5.16.0/lib/jekyll/scholar/tags/bibliography.rb:21:inrender' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/liquid-4.0.4/lib/liquid/block_body.rb:103:in
render_node_to_output' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/liquid-4.0.4/lib/liquid/block_body.rb:91:inrender' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/liquid-4.0.4/lib/liquid/template.rb:206:in
block in render' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/liquid-4.0.4/lib/liquid/template.rb:240:inwith_profiling' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/liquid-4.0.4/lib/liquid/template.rb:205:in
render' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/liquid-4.0.4/lib/liquid/template.rb:218:inrender!' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:30:in
block (2 levels) in render!'from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:42:in
measure_bytes' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:29:in
block in render!' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:49:inmeasure_time' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/liquid_renderer/file.rb:28:in
render!' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/renderer.rb:126:inrender_liquid' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/renderer.rb:79:in
render_document' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/renderer.rb:62:inrun' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:479:in
render_regenerated' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:472:inblock in render_pages' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:471:in
each' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:471:inrender_pages' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:192:in
render' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/site.rb:71:inprocess' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/command.rb:28:in
process_site' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/commands/build.rb:65:inbuild' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/commands/build.rb:36:in
process' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/commands/serve.rb:93:inblock in start' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/commands/serve.rb:93:in
each' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/commands/serve.rb:93:instart' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/lib/jekyll/commands/serve.rb:75:in
block (2 levels) in init_with_program' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:inblock in execute' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:in
each' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.3.6/lib/mercenary/command.rb:220:inexecute' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.3.6/lib/mercenary/program.rb:42:in
go' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/mercenary-0.3.6/lib/mercenary.rb:19:inprogram' from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/jekyll-3.9.3/exe/jekyll:15:in
<top (required)>' from C:/Ruby32-x64/bin/jekyll:32:inload' from C:/Ruby32-x64/bin/jekyll:32:in