Skip to content

`require_relative': cannot load such file in 2.1.0 #64

@BozzaDaniel

Description

@BozzaDaniel

After updating to 2.1.0 this error occurred after running the following command:

arkana -l kotlin -c .arkana.yml -e .env

On Windows:

(erb):1:in `require_relative': cannot load such file -- C:/path/to/my/project/lib/arkana/helpers/string (LoadError)
        from (erb):1:in `get_binding'
        from C:/Ruby32-x64/lib/ruby/3.2.0/erb.rb:429:in `eval'
        from C:/Ruby32-x64/lib/ruby/3.2.0/erb.rb:429:in `result'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/arkana-2.1.0/lib/arkana/kotlin_code_generator.rb:58:in `render'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/arkana-2.1.0/lib/arkana/kotlin_code_generator.rb:43:in `set_up_kotlin_interfaces'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/arkana-2.1.0/lib/arkana/kotlin_code_generator.rb:23:in `generate'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/arkana-2.1.0/lib/arkana.rb:54:in `call'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/arkana-2.1.0/lib/arkana.rb:54:in `run'
        from C:/Ruby32-x64/lib/ruby/gems/3.2.0/gems/arkana-2.1.0/bin/arkana:8:in `<top (required)>'
        from C:/Ruby32-x64/bin/arkana:32:in `load'
        from C:/Ruby32-x64/bin/arkana:32:in `<main>'

On macOS:

Traceback (most recent call last):
        6: from /opt/homebrew/opt/ruby@2.7/bin/arkana:25:in `<main>'
        5: from /opt/homebrew/opt/ruby@2.7/bin/arkana:25:in `load'
        4: from /opt/homebrew/Cellar/ruby@2.7/2.7.8_1/lib/ruby/gems/2.7.0/gems/arkana-2.1.0/bin/arkana:4:in `<top (required)>'
        3: from /opt/homebrew/Cellar/ruby@2.7/2.7.8_1/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require'
        2: from /opt/homebrew/Cellar/ruby@2.7/2.7.8_1/lib/ruby/2.7.0/rubygems/core_ext/kernel_require.rb:85:in `require'
        1: from /opt/homebrew/Cellar/ruby@2.7/2.7.8_1/lib/ruby/gems/2.7.0/gems/arkana-2.1.0/lib/arkana.rb:3:in `<top (required)>'
/opt/homebrew/Cellar/ruby@2.7/2.7.8_1/lib/ruby/gems/2.7.0/gems/arkana-2.1.0/lib/arkana.rb:3:in `require_relative': cannot load such file -- /opt/homebrew/Cellar/ruby@2.7/2.7.8_1/lib/ruby/gems/2.7.0/gems/arkana-2.1.0/lib/arkana/config_parser (LoadError)

Release 2.0.0 works without any errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions