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

Cannot load gem when running falcon serve in WSL #266

Open
ta-o666 opened this issue Jan 13, 2025 · 2 comments
Open

Cannot load gem when running falcon serve in WSL #266

ta-o666 opened this issue Jan 13, 2025 · 2 comments

Comments

@ta-o666
Copy link

ta-o666 commented Jan 13, 2025

Running falcon serve on this

# config.ru
require 'mustermann'

class App
    def call(env)
        [200, {}, ['<p>HIIII</p>']]
    end
end

run App.new

results in errors spamming the console about how the gem cannot be loaded, despite the gem being installed and able to be loaded when using Puma
image
However, everything works as intended when require 'mustermann' is removed.

Note: putting the absolute path to the .rb file of a gem allows falcon to load them in, however the error continues into the requires inside of the gems.

@ioquatix
Copy link
Member

Hmm, that's pretty odd. Can you try bundle exec falcon serve?

@ta-o666
Copy link
Author

ta-o666 commented Jan 13, 2025

That works, thank you.

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