relaton / relaton-iso

RelatonIso: ISO Standards metadata using the BibliographicItem model
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

(URGENT) "ISO 4217" crash #81

Closed ronaldtse closed 4 years ago

ronaldtse commented 4 years ago

Urgently need fixing. Thanks.

[relaton-iso] ("ISO 4217") fetching...
bundler: failed to load command: metanorma (/Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bin/metanorma)
NoMethodError: undefined method `empty?' for nil:NilClass
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/hit_collection.rb:35:in `block in to_all_parts'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/hit_collection.rb:35:in `select'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/hit_collection.rb:35:in `to_all_parts'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/iso_bibliography.rb:162:in `isobib_results_filter'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/iso_bibliography.rb:172:in `isobib_get1'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/iso_bibliography.rb:49:in `get'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/processor.rb:19:in `get'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-0.11.0/lib/relaton/db.rb:180:in `new_bib_entry'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-0.11.0/lib/relaton/db.rb:167:in `check_bibliocache'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-0.11.0/lib/relaton/db.rb:31:in `fetch'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/metanorma-standoc-1.3.23/lib/asciidoctor/standoc/ref.rb:124:in `fetch_ref'
ronaldtse commented 4 years ago

More:

[relaton-iso] ("ISO 7372") fetching...
bundler: failed to load command: metanorma (/Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/bin/metanorma)
NoMethodError: undefined method `empty?' for nil:NilClass
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/hit_collection.rb:35:in `block in to_all_parts'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/hit_collection.rb:35:in `select'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/hit_collection.rb:35:in `to_all_parts'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/iso_bibliography.rb:162:in `isobib_results_filter'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/iso_bibliography.rb:172:in `isobib_get1'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/iso_bibliography.rb:49:in `get'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-iso-0.12.0/lib/relaton_iso/processor.rb:19:in `get'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-0.11.0/lib/relaton/db.rb:180:in `new_bib_entry'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-0.11.0/lib/relaton/db.rb:167:in `check_bibliocache'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/relaton-0.11.0/lib/relaton/db.rb:31:in `fetch'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/metanorma-standoc-1.3.23/lib/asciidoctor/standoc/ref.rb:124:in `fetch_ref'
  /Users/me/.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/metanorma-standoc-1.3.23/lib/asciidoctor/standoc/ref.rb:59:in `isorefmatches'
ronaldtse commented 4 years ago

Confirmed fixed. Thanks!