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

windows rails demo project error #440

Closed
athxx opened this issue Apr 1, 2023 · 2 comments
Closed

windows rails demo project error #440

athxx opened this issue Apr 1, 2023 · 2 comments

Comments

@athxx
Copy link

athxx commented Apr 1, 2023

I made sure the issue is in bootsnap

Steps to reproduce

install windows version ruby on rails

rails new demo
cd demo
rails server

Expected behavior

Actual behavior

D:/app/ruby/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/compile_cache/iseq.rb:60:in `fetch': No error - bs_fetch:open_current_file:fstat (Errno::NOERROR)
        from D:/app/ruby/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/compile_cache/iseq.rb:60:in `fetch'
        from D:/app/ruby/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/compile_cache/iseq.rb:85:in `load_iseq'
        from D:/app/ruby/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/compile_cache.rb:25:in `require_relative'
        from D:/app/ruby/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/compile_cache.rb:25:in `setup'
        from D:/app/ruby/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap.rb:57:in `setup'
        from D:/app/ruby/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap.rb:100:in `default_setup'
        from D:/app/ruby/lib/ruby/gems/3.2.0/gems/bootsnap-1.16.0/lib/bootsnap/setup.rb:5:in `<top (required)>'
        from <internal:D:/app/ruby/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from <internal:D:/app/ruby/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from D:/dev/ruby/demo/config/boot.rb:4:in `<top (required)>'
        from bin/rails:3:in `require_relative'
        from bin/rails:3:in `<main>'

System configuration

Bootsnap version:

1.16.0

Ruby version:

ruby 3.2.1 (2023-02-08 revision 31819e82c8) [x64-mingw-ucrt]

Rails version:

rails-7.0.4.3

casperisfine pushed a commit that referenced this issue Apr 3, 2023
Ref: #440

`close(fd)` resets `errno`, so when we return with a failure,
the original error cause is lost.
@casperisfine
Copy link
Contributor

Thank you for the report, unfortunately there was a bug in the error reporting code which make it close to impossible to understand what happened. I fixed the error reporting on the main branch, I'd appreciate if you could try again but with

# Gemfile

gem "bootsnap", github: "Shopify/bootsnap"

@casperisfine
Copy link
Contributor

No response in 3 months, closing.

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

No branches or pull requests

2 participants