Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests to cover double dot processing in pathes #51

Closed
maxirmx opened this issue Dec 4, 2021 · 0 comments · Fixed by #52
Closed

Add tests to cover double dot processing in pathes #51

maxirmx opened this issue Dec 4, 2021 · 0 comments · Fixed by #52
Assignees

Comments

@maxirmx
Copy link
Member

maxirmx commented Dec 4, 2021

It looks like an issue with double dot processing:

If I do

cd iso-19156
../tebako/build/metanorma site generate

I get

Traceback (most recent call last):
        1: from /__tebako_memfs__/local/metanorma:204:in `<main>'
/__tebako_memfs__/local/metanorma:204:in `require': cannot load such file -- metanorma-ribose (LoadError)

If I do

 tebako/build/metanorma site generate iso-19156 -c iso-19156/metanorma.yml

I get

Fatal Error: No such file or directory @ rb_sysopen - /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-xsd-3.1.1/lib/rdf/xsd/../../../VERSION
Traceback (most recent call last):
        67: from /__tebako_memfs__/local/metanorma:215:in `<main>'
        66: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.2/lib/metanorma/cli.rb:34:in `start'
        65: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/base.rb:485:in `start'
        64: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
        63: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
        62: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-hollaback-0.2.1/lib/thor/hollaback.rb:68:in `run'
        61: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
        60: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor.rb:243:in `block in subcommand'
        59: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:116:in `invoke'
        58: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor.rb:392:in `dispatch'
        57: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:127:in `invoke_command'
        56: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-hollaback-0.2.1/lib/thor/hollaback.rb:68:in `run'
        55: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/thor-1.0.1/lib/thor/command.rb:27:in `run'
        54: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.2/lib/metanorma/cli/commands/site.rb:25:in `generate'
        53: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.2/lib/metanorma/cli/site_generator.rb:23:in `generate'
        52: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.2/lib/metanorma/cli/site_generator.rb:28:in `generate'
        51: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.2/lib/metanorma/cli/site_generator.rb:28:in `each'
        50: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.2/lib/metanorma/cli/site_generator.rb:28:in `block in generate'
        49: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.2/lib/metanorma/cli/site_generator.rb:82:in `compile'
        48: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.2/lib/metanorma/cli/compiler.rb:35:in `compile'
        47: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.2/lib/metanorma/cli/compiler.rb:30:in `compile'
        46: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-cli-1.5.2/lib/metanorma/cli/compiler.rb:45:in `compile_file'
        45: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-1.4.2/lib/metanorma/compile.rb:30:in `compile'
        44: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-1.4.2/lib/metanorma/compile.rb:90:in `process_input'
        43: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-1.4.2/lib/metanorma/compile.rb:107:in `process_input_adoc'
        42: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-1.4.2/lib/metanorma/processor.rb:21:in `input_to_isodoc'
        41: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-1.4.2/lib/metanorma/input/asciidoc.rb:18:in `process'
        40: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/asciidoctor-2.0.16/lib/asciidoctor/convert.rb:120:in `convert'
        39: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/asciidoctor-2.0.16/lib/asciidoctor/document.rb:948:in `convert'
        38: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-standoc-1.11.2/lib/asciidoctor/standoc/utils.rb:13:in `convert'
        37: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-standoc-1.11.2/lib/asciidoctor/standoc/base.rb:165:in `document'
        36: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-iso-1.10.3/lib/asciidoctor/iso/base.rb:45:in `init'
        35: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-standoc-1.11.2/lib/asciidoctor/standoc/base.rb:136:in `init'
        34: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/metanorma-standoc-1.11.2/lib/asciidoctor/standoc/ref_sect.rb:131:in `init_bib_caches'
        33: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-1.9.5/lib/relaton/db_cache.rb:251:in `init_bib_caches'
        32: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-1.9.5/lib/relaton/db_cache.rb:251:in `new'
        31: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-1.9.5/lib/relaton/db.rb:12:in `initialize'
        30: from /__tebako_memfs__/lib/ruby/2.7.0/singleton.rb:123:in `instance'
        29: from /__tebako_memfs__/lib/ruby/2.7.0/singleton.rb:123:in `synchronize'
        28: from /__tebako_memfs__/lib/ruby/2.7.0/singleton.rb:125:in `block in instance'
        27: from /__tebako_memfs__/lib/ruby/2.7.0/singleton.rb:125:in `new'
        26: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-1.9.5/lib/relaton/registry.rb:21:in `initialize'
        25: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-1.9.5/lib/relaton/registry.rb:27:in `register_gems'
        24: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-1.9.5/lib/relaton/registry.rb:27:in `each'
        23: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-1.9.5/lib/relaton/registry.rb:29:in `block in register_gems'
        22: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-1.9.5/lib/relaton/registry.rb:29:in `require'
        21: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-w3c-1.9.4/lib/relaton_w3c.rb:10:in `<top (required)>'
        20: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-w3c-1.9.4/lib/relaton_w3c.rb:10:in `require'
        19: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-w3c-1.9.4/lib/relaton_w3c/data_fethcer.rb:2:in `<top (required)>'
        18: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/relaton-w3c-1.9.4/lib/relaton_w3c/data_fethcer.rb:2:in `require'
        17: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/linkeddata-3.1.6/lib/linkeddata.rb:1:in `<top (required)>'
        16: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/linkeddata-3.1.6/lib/linkeddata.rb:26:in `<module:LinkedData>'
        15: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/linkeddata-3.1.6/lib/linkeddata.rb:26:in `require'
        14: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-n3-3.1.2/lib/rdf/n3.rb:3:in `<top (required)>'
        13: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-n3-3.1.2/lib/rdf/n3.rb:21:in `<module:RDF>'
        12: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-n3-3.1.2/lib/rdf/n3.rb:22:in `<module:N3>'
        11: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-n3-3.1.2/lib/rdf/n3.rb:22:in `require'
        10: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-n3-3.1.2/lib/rdf/n3/algebra.rb:2:in `<top (required)>'
         9: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-n3-3.1.2/lib/rdf/n3/algebra.rb:2:in `require'
         8: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/sparql-3.1.8/lib/sparql/algebra.rb:2:in `<top (required)>'
         7: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/sparql-3.1.8/lib/sparql/algebra.rb:2:in `require'
         6: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-xsd-3.1.1/lib/rdf/xsd.rb:14:in `<top (required)>'
         5: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-xsd-3.1.1/lib/rdf/xsd.rb:14:in `glob'
         4: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-xsd-3.1.1/lib/rdf/xsd.rb:14:in `block in <top (required)>'
         3: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-xsd-3.1.1/lib/rdf/xsd.rb:14:in `require'
         2: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-xsd-3.1.1/lib/rdf/xsd/version.rb:1:in `<top (required)>'
         1: from /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-xsd-3.1.1/lib/rdf/xsd/version.rb:3:in `<module:VERSION>'
/__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-xsd-3.1.1/lib/rdf/xsd/version.rb:3:in `read': No such file or directory @ rb_sysopen - /__tebako_memfs__/lib/ruby/gems/2.7.0/gems/rdf-xsd-3.1.1/lib/rdf/xsd/../../../VERSION (Errno::ENOENT)

Originally posted by @maxirmx in tamatebako/tebako#23 (comment)

@maxirmx maxirmx self-assigned this Dec 4, 2021
@maxirmx maxirmx linked a pull request Dec 7, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant