Giter VIP home page Giter VIP logo

Comments (6)

remohammadi avatar remohammadi commented on September 5, 2024

My Gemfile.lock:

GIT
  remote: https://github.com/riboseinc/asciidoctor-bibliography
  revision: 622aecac7527549b51d40c39311fc5ba1295dad6
  specs:
    asciidoctor-bibliography (0.9.0)
      asciidoctor (~> 1.5.6)
      bibtex-ruby (~> 4.4.4)
      citeproc-ruby (~> 1.1.7)
      csl-styles (~> 1.0.1)
      latex-decode (~> 0.2.2)
      nokogiri (~> 1.8.1)

GEM
  remote: https://rubygems.org/
  specs:
    Ascii85 (1.0.3)
    addressable (2.6.0)
      public_suffix (>= 2.0.2, < 4.0)
    afm (0.2.2)
    asciidoctor (1.5.8)
    asciidoctor-pdf (1.5.0.alpha.16)
      asciidoctor (>= 1.5.0)
      prawn (>= 1.3.0, < 2.3.0)
      prawn-icon (= 1.3.0)
      prawn-svg (>= 0.21.0, < 0.28.0)
      prawn-table (= 0.2.2)
      prawn-templates (>= 0.0.3, <= 0.1.1)
      safe_yaml (~> 1.0.4)
      thread_safe (~> 0.3.6)
      treetop (= 1.5.3)
    awesome_print (1.8.0)
    bibtex-ruby (4.4.7)
      latex-decode (~> 0.0)
    citeproc (1.0.9)
      namae (~> 1.0)
    citeproc-ruby (1.1.10)
      citeproc (~> 1.0, >= 1.0.9)
      csl (~> 1.5)
    coderay (1.1.2)
    csl (1.5.0)
      namae (~> 1.0)
    csl-styles (1.0.1.9)
      csl (~> 1.0)
    css_parser (1.7.0)
      addressable
    epubcheck (3.0.1)
    hashery (2.1.2)
    json (2.2.0)
    kindlegen (3.0.3)
      rake
      rubyzip
    latex-decode (0.2.2)
      unicode (~> 0.4)
    mini_portile2 (2.3.0)
    multi_json (1.13.1)
    namae (1.0.1)
    nokogiri (1.8.5)
      mini_portile2 (~> 2.3.0)
    pdf-core (0.7.0)
    pdf-reader (2.2.0)
      Ascii85 (~> 1.0.0)
      afm (~> 0.2.1)
      hashery (~> 2.0)
      ruby-rc4
      ttfunk
    polyglot (0.3.5)
    prawn (2.2.2)
      pdf-core (~> 0.7.0)
      ttfunk (~> 1.5)
    prawn-icon (1.3.0)
      prawn (>= 1.1.0, < 3.0.0)
    prawn-svg (0.27.1)
      css_parser (~> 1.3)
      prawn (>= 0.11.1, < 3)
    prawn-table (0.2.2)
      prawn (>= 1.3.0, < 3.0.0)
    prawn-templates (0.1.1)
      pdf-reader (~> 2.0)
      prawn (~> 2.2)
    public_suffix (3.0.3)
    pygments.rb (1.2.1)
      multi_json (>= 1.0.0)
    rake (12.3.2)
    ruby-rc4 (0.1.5)
    rubyzip (1.2.2)
    safe_yaml (1.0.5)
    thread_safe (0.3.6)
    treetop (1.5.3)
      polyglot (~> 0.3)
    ttfunk (1.5.1)
    unicode (0.4.4.4)

PLATFORMS
  ruby

DEPENDENCIES
  asciidoctor
  asciidoctor-bibliography!
  asciidoctor-pdf
  awesome_print
  coderay
  epubcheck
  json
  kindlegen
  pygments.rb
  rake
  thread_safe

BUNDLED WITH
   2.0.1

from asciidoctor-bibliography.

remohammadi avatar remohammadi commented on September 5, 2024

A minimal reproduction of the issue:
https://github.com/remohammadi/BibliographyIssue84

from asciidoctor-bibliography.

remohammadi avatar remohammadi commented on September 5, 2024

It's related to CiteProc::Bibliography silently putting one of the references into errors instead of its references attribute. That messes a lot with the internal state because you are using the indices of the filtered_db in the render step. That is a potential source of many evils!

#<CiteProc::Bibliography @references=[3], @errors=[1]>

I'm currently going to focus on the error for the reference, which is:
NoMethodError: undefined method bibliography' for #<CSL::Locale en-US>`

from asciidoctor-bibliography.

remohammadi avatar remohammadi commented on September 5, 2024

The problem is with the 'month' field. month = mar doesn't work, while month = "3~" works.

from asciidoctor-bibliography.

CAMOBAP avatar CAMOBAP commented on September 5, 2024

@ronaldtse @remohammadi PR is ready for review

from asciidoctor-bibliography.

ronaldtse avatar ronaldtse commented on September 5, 2024

Fixed in #89. Thank you @remohammadi for supplying the test and reporting it!

from asciidoctor-bibliography.

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.