Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get more information about 'feature' flag warning?

Tags:

When compiling an application with Play2, sometimes these kind of message appears on my terminal :

[info] Compiling 1 Scala source to ~/target/scala-2.10/classes...
[warn] there were 1 feature warnings; re-run with -feature for details
[warn] one warning found
[success] Compiled in 1s

How can I get more information about those warning? It must be an option of sbt but I have no idea where to search...

like image 661
i.am.michiel Avatar asked Mar 20 '13 20:03

i.am.michiel


People also ask

Should we use feature flags?

Feature flags are an important tool for risk mitigation. When a customer has a problem with a business's product or service, it needs to be able to turn off that issue or feature as fast as possible. Always ensure that you can quickly and easily turn off your feature flags in case anything goes wrong.

What is feature flag in Devops?

Feature flags are features turned on/off during runtime without deploying new code. These are great for better control and experimentation of features. Feature flagging allows companies to quickly deliver and deploy software to their users.


1 Answers

To see the exact message you need to add "feature" flag in your sbt build definition file:

scalacOptions ++= Seq("-feature") 

Why? Scala 2.10 not only introduced new features, but also reshuffled older ones -- some of the most powerful scala features were hidden because they should be used with great responsibility: sometimes they were used mistakingly. That is why SIP-18 has arised. From now on, to access dynamics, higher kinds, existential types and some other things you have to explicitly enable them.

like image 183
om-nom-nom Avatar answered Sep 20 '22 19:09

om-nom-nom