Problem loading method_override plugin

3 views
Skip to first unread message

Sebastjan Hribar

unread,
Dec 7, 2025, 9:03:44 AM (yesterday) Dec 7
to Roda
Hi,

I'm sure this is not a roda problem per say, but I honestly don't know where to debug anymore. I've changed my laptop and went from Ubuntu 22.04 to 24.04 and now I get this error when running my app:

Cyclic dependency reload for LoadError: cannot load such file -- roda/plugins/method_override
<internal:/home/sebastjan/.rbenv/versions/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:148:in `require': cannot load such file -- roda/plugins/method_override (LoadError)

I'm using rbenv and have the same Ruby version on my new laptop for this app. The app boots normally on the old laptop and I haven't made any changes in the code before or after the migration.

Does anyone have any idea where to go from here?

Thank you
Sebastjan

Jeremy Evans

unread,
Dec 7, 2025, 1:02:03 PM (23 hours ago) Dec 7
to ruby...@googlegroups.com
On Sun, Dec 7, 2025 at 6:03 AM Sebastjan Hribar <sebastja...@gmail.com> wrote:
Hi,

I'm sure this is not a roda problem per say, but I honestly don't know where to debug anymore. I've changed my laptop and went from Ubuntu 22.04 to 24.04 and now I get this error when running my app:

Cyclic dependency reload for LoadError: cannot load such file -- roda/plugins/method_override
<internal:/home/sebastjan/.rbenv/versions/3.0.0/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:148:in `require': cannot load such file -- roda/plugins/method_override (LoadError)

The "Cyclic dependency reload for LoadError" comes from rack-unreloader. I'm not sure how your application is setup, but it apparently is trying to reload Roda's files instead of just the application files. I'm not sure why this is only an issue in your new environment and not in your old environment, though.

To debug, try passing the :logger option when creating the Rack::Unreloader instance, which will give output on what rack-unreloader is doing. You could also try passing the reload: false option, which will turn off the reloading. That should allow you to determine if the issue is related to the reloading of code or only the initial loading of code.

If the bug persists even after these steps, try starting with a mostly empty application that does not have the error, and gradually add in the current features until the error appears. Then you will have a better idea of what is causing the error.

Hope this helps,
Jeremy
Reply all
Reply to author
Forward
0 new messages