Coder Social home page Coder Social logo

Comments (6)

jrafanie avatar jrafanie commented on June 28, 2024 1

log the caller of version.rb:4, 5, 6, 7, 8, etc...

Maybe there's a fine detail difference in how it's being required...

from manageiq-schema.

Fryguy avatar Fryguy commented on June 28, 2024

This happens on Ruby 2.3 as well

from manageiq-schema.

Fryguy avatar Fryguy commented on June 28, 2024

@jrafanie Thoughts?

from manageiq-schema.

jrafanie avatar jrafanie commented on June 28, 2024

Such as require vs. require_relative or require with FQ path vs. relative, etc.

from manageiq-schema.

Fryguy avatar Fryguy commented on June 28, 2024

Figured it out. So, I noticed this happened specifically with rake spec:migrations:complete_up and rake spec:migrations:complete_down. Those are suspicious because they shell out to another rake task, then wait for that subprocess to complete. However, all they do in the subprocess is a bundle exec rake db:migrate. So, I tried running just that, and I don't get the warnings. This led me to conclude that is not the rake task, but the act of shelling out. Then, I remembered ye olde Bundle.with_clean_env, and this worked. Bundler somehow messes with the env causing rake to use the pure stdlib json, but activerecord to use the json gem.

from manageiq-schema.

jrafanie avatar jrafanie commented on June 28, 2024

Bundler somehow messes with the env causing rake to use the pure stdlib json, but activerecord to use the json gem.

Wow, yuck but cool!

from manageiq-schema.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.