Skip to content

Add fiddle as a dependency? #344

Closed
Closed

Description

@st0012

Description

From this issue's description, it looks like reline relies on fiddle (probably since 74a7ffa). But because fiddle is not a required dependency of reline, it could cause issues like:

(backtrace taken from the original issue)

 /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': cannot load such file -- fiddle (LoadError)
from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:89:in `register'
from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
from /usr/local/bundle/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:44:in `require'
from /usr/local/bundle/gems/zeitwerk-2.5.0.beta3/lib/zeitwerk/kernel.rb:35:in `require'
from /usr/local/bundle/gems/reline-0.2.7/lib/reline/terminfo.rb:1:in `<main>'

So maybe fiddle should be declared as a dependency?

Activity

  1. aycabta commented on Oct 11, 2021

    @aycabta
    Member

    If libffi is not included on your system, fiddle gem installation will fail, so irb gem as a default gem cannot depend on fiddle gem.

  2. st0012 commented on Oct 11, 2021

    @st0012
    MemberAuthor

    @aycabta ah I see. thanks for the explanation!

  3. aycabta commented on Oct 11, 2021

    @aycabta
    Member

    However, crashing is pretty bad, so I took measures to prevent it by #378.

  4. st0012 commented on Oct 11, 2021

    @st0012
    MemberAuthor

    @aycabta thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions