Is autoload broken in 2.3?

Has anyone been experiencing any issues with autoload within threads in
2.3? I have been getting some random NameErrors in situations where I
should not. I have been unable to reproduce the problem or nail down
specifically when it happens (this is why I did not put in a bug
report).

Most recently, a NameError in this gem here:
https://github.com/sparklemotion/http-cookie/blob/v1.0.2/lib/http/cookie.rb#L281,
even though it is clearly set to autoload here:
https://github.com/sparklemotion/http-cookie/blob/v1.0.2/lib/http/cookie.rb#L209

Some possible related issues:
https://github.com/sparklemotion/http-cookie/issues/6
https://github.com/rails/rails/issues/18898

Here is a test case which will fail randomly using autoload.

I will put in a bug, but can just someone confirm I am not crazy here?

Related to these:
https://bugs.ruby-lang.org/issues/11683
https://bugs.ruby-lang.org/issues/11384

Looks like Ruby head has fixed the issue now.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs