-
Notifications
You must be signed in to change notification settings - Fork 183
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
Bootsnap LoadError for Prism #463
Comments
Hum, there must be more to it because I can't repro on my machine:
|
nevermind, I missed the Thanks, I'll have a look later today or tomorrow. |
Something is very weird, the
Also the
I suspect it's loaded with some kind of hack. I'll dig more, but I fear we might need a hack on our side too :/ FYI @kddnewton |
void
Init_Prism(void)
{
ruby_init_ext("prism/prism.so", Init_prism);
} // Private API for statically linked extensions.
// Used with the ext/Setup file, the --with-setup and
// --with-static-linked-ext configuration option, etc.
void
ruby_init_ext(const char *name, void (*init)(void))
{
st_table *inits_table;
rb_vm_t *vm = GET_VM();
if (feature_provided(vm, name, 0))
return;
inits_table = vm->static_ext_inits;
if (!inits_table) {
inits_table = st_init_strtable();
vm->static_ext_inits = inits_table;
}
st_update(inits_table, (st_data_t)name, register_init_ext, (st_data_t)init);
} So as I suspected, |
|
@casperisfine anything you need from me on this? Looks like you solved it. |
Yeah, I worked around it. This was mostly to let you know. |
Sounds good thanks! |
Steps to reproduce
bug_report.rb:
Expected behavior
It should load the prism gem that is now part of Ruby 3.3.0 standard library. Any environment other than development results in error.
Actual behavior
System configuration
Bootsnap version: 1.17.0
Ruby version: ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux]
Rails version: Rails 7.1.2
The text was updated successfully, but these errors were encountered: