Code Monkey home page Code Monkey logo

Comments (7)

ccarlile avatar ccarlile commented on August 14, 2024 1

I came to the repo specifically to find this info - maybe it should be added to the README?

from sbt-tpolecat.

iRevive avatar iRevive commented on August 14, 2024

Not the same, but in Scala 2.13 you can suppress warnings in a directory:

Compile / scalacOptions += "-Wconf:src=target/.*:silent" // suppress all warnings for autogenerated files

from sbt-tpolecat.

DavidGregory084 avatar DavidGregory084 commented on August 14, 2024

@iRevive's suggestion is how I've seen most projects deal with this problem (see e.g. https://github.com/hmrc/transit-movements-guarantee-balance/blob/main/build.sbt#L45), but if your code generator uses a custom sbt configuration (i.e. not Compile or Test but e.g. Routes) you could potentially set options in that configuration instead.

from sbt-tpolecat.

hugo-vrijswijk avatar hugo-vrijswijk commented on August 14, 2024

Is there a similar option for Scala 3?

from sbt-tpolecat.

DavidGregory084 avatar DavidGregory084 commented on August 14, 2024

@hugo-vrijswijk The Compiler Options Lookup Table says that -Wconf is available in Scala 3.3.x, so it should be the same?

from sbt-tpolecat.

hugo-vrijswijk avatar hugo-vrijswijk commented on August 14, 2024

I think the syntax might be different, or it is unsupported:

[warn] Failed to parse `-Wconf` configuration: src=target/.*:silent
[warn] unknown filter: src

from sbt-tpolecat.

DavidGregory084 avatar DavidGregory084 commented on August 14, 2024

Unfortunately it looks like the src filter for -Wconf is not yet supported on Scala 3.x.

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.