Code Monkey home page Code Monkey logo

Comments (8)

DavidGregory084 avatar DavidGregory084 commented on August 14, 2024

I don't know if I agree with this @SethTisue - debugging initialization order issues is one of the most frustrating things about Scala.

I'd rather find out where the root of the issue is straight away when I run my unit tests than have to enable it later after something silently goes wrong in production, and I don't think I'm alone in feeling that way.

from sbt-tpolecat.

tpolecat avatar tpolecat commented on August 14, 2024

Yeah I always have it on. It's a workaround for the worst bug in Scala and for me it's pretty essential.

from sbt-tpolecat.

SethTisue avatar SethTisue commented on August 14, 2024

okay, no consensus on this one I see :-)

from sbt-tpolecat.

BalmungSan avatar BalmungSan commented on August 14, 2024

Would it be possible, somehow (I don't know too much about SBT), that the flag is not used when building production artifacts?
Maybe trough a configuration flag?

from sbt-tpolecat.

SethTisue avatar SethTisue commented on August 14, 2024

yes. the details would depend on how the publishing aspect of your build is set up.

from sbt-tpolecat.

BalmungSan avatar BalmungSan commented on August 14, 2024

I mean that, if it would be possible for the plugin itself to provide a simple and standard way to disable this flag.

Each project should be in charge of disabling it when building production artifacts.

from sbt-tpolecat.

SethTisue avatar SethTisue commented on August 14, 2024

Ah, I see. Well, that exceeds my own ambition level here.

from sbt-tpolecat.

DavidGregory084 avatar DavidGregory084 commented on August 14, 2024

@BalmungSan it's an interesting idea for sure. I think a lot of the community projects are under-utilising the Scala optimizer for this reason, for example.

from sbt-tpolecat.

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.