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

binding.irb crash in tebako package #238

Open
maxirmx opened this issue Jan 17, 2025 · 1 comment
Open

binding.irb crash in tebako package #238

maxirmx opened this issue Jan 17, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@maxirmx
Copy link
Member

maxirmx commented Jan 17, 2025

I was not able to reproduce the case with binding.irb because for it just did not start:

/__tebako_memfs__/lib/ruby/3.3.0/irb/locale.rb:93:in `load': No such file to load -- irb/error.rb (LoadError)
        from /__tebako_memfs__/lib/ruby/3.3.0/irb/init.rb:246:in `init_error'
        from /__tebako_memfs__/lib/ruby/3.3.0/irb/init.rb:52:in `setup'
        from /__tebako_memfs__/lib/ruby/3.3.0/irb.rb:1580:in `irb'
        from <internal:prelude>:5:in `irb'
        from /__tebako_memfs__/lib/ruby/gems/3.3.0/gems/tebako-test-0.0.2/lib/tebako-test.rb:28:in `run'
        from /__tebako_memfs__/lib/ruby/gems/3.3.0/gems/tebako-test-0.0.2/exe/tebako-test-run.rb:8:in `<top (required)>'
        from /__tebako_memfs__/bin/tebako-test-run.rb:25:in `load'
        from /__tebako_memfs__/bin/tebako-test-run.rb:25:in `<main>'

Originally posted by @maxirmx in #237

@maxirmx maxirmx added the bug Something isn't working label Jan 17, 2025
@bradgessler
Copy link
Contributor

Not sure if it's related, but sharing here if it's germane.

I'm using a gem that uses Zeitwerk to load code. When I create instances of classes within the Async block that haven't been loaded, the program halts.

When I put Zeitwerk::Loader.eager_load_all before the Async block, it preloads the constant names and doesn't block. I'm going to keep looking into this and open a separate issue if I can figure out the cause. As it stands, I'm still not sure exactly if the issue is related to Async, Zeitwerk, or Tebako, but it's definitely some combination of the three.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants