Xavier Noria

Results 159 comments of Xavier Noria

Let's consider https://github.com/rails/rails/pull/36011 too.

Hi, could you please provide a minimal way to reproduce this problem?

Not familiar with the way Spring builds this list. I'll have a look.

I have created a new Rails 6 application with files `app/models/foo.rb` and `app/models/foo/bar.rb` and I don't see them in the logs of Spring. I tried `development` (`bin/rails runner 1`) and...

I could reproduce. In principle this seems to match the docs, no? > Spring will automatically detect file changes to any file loaded when the server boots. Changes will cause...

Why not? Normally you do not want to eager load the whole app to run one test. Indeed, in the history of Spring there is [a commit](https://github.com/rails/spring/commit/726efff9ab36784f724c40d3ca46c3d169f00502) that skips eager...

This was reported in the Zeitwerk issue tracker too, so I looked into it. You see "zeitwerk" in the logs because all `require` calls pass through [this thin wrapper](https://github.com/fxn/zeitwerk/blob/main/lib/zeitwerk/kernel.rb) if...

This engine is eager loading because it needs to have all contentful models in memory, but forcing all loaders in memory to eager load is unnecessary (I assume all models...

Hey, this thread is long, let me dig into `stub_const` and the rest of the conversation later. Just in case it helps, the root issue may be that classes now...

@byroot So, on a Rails application, after _N_ reloads, `ActiveRecord::Base.subclasses` could theoretically be returning _N_ + 1 class objects for every `ApplicationRecord` being reloaded?