You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>Task:Test.main() FAILEDException in thread "main" com.typesafe.config.ConfigException$Missing: system properties: No configuration setting found for key 'VARIABLE'
at com.typesafe.config.impl.SimpleConfig.findKeyOrNull(SimpleConfig.java:157)
at com.typesafe.config.impl.SimpleConfig.findOrNull(SimpleConfig.java:175)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:189)
at com.typesafe.config.impl.SimpleConfig.find(SimpleConfig.java:194)
at com.typesafe.config.impl.SimpleConfig.getString(SimpleConfig.java:251)
at Test$.delayedEndpoint$Test$1(Test.scala:6)
at Test$delayedInit$body.apply(Test.scala:3)
at scala.Function0.apply$mcV$sp(Function0.scala:42)
at scala.Function0.apply$mcV$sp$(Function0.scala:42)
at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:17)
at scala.App.$anonfun$main$1(App.scala:98)
at scala.App.$anonfun$main$1$adapted(App.scala:98)
at scala.collection.IterableOnceOps.foreach(IterableOnce.scala:575)
at scala.collection.IterableOnceOps.foreach$(IterableOnce.scala:573)
at scala.collection.AbstractIterable.foreach(Iterable.scala:933)
at scala.App.main(App.scala:98)
at scala.App.main$(App.scala:96)
at Test$.main(Test.scala:3)
at Test.main(Test.scala)
I've printed config as well and made a text search for VARIABLE and indeed no such variable there.
The text was updated successfully, but these errors were encountered:
Seems like this fix breaks my code and is done intentionally.
If you're not going to revert this change you can close this issue and I'll make adjustment to my code.
Anyway FYI I may not be only one who relied on previous behavior.
If you are in pure Scala environment you could consider trying out ekrich/sconfig. Most of the changes and fixes have not been ported across but that or other bugs could be an issue. There is a package change but scalafix to help out.
Starting from 1.4.1 this code behaves differently then previously:
Here's the simple test. Run this application with environment variable
VARIABLE
set to anyString
implementation('com.typesafe:config:1.4.0')
Output:
implementation('com.typesafe:config:1.4.1')
Output
I've printed config as well and made a text search for
VARIABLE
and indeed no such variable there.The text was updated successfully, but these errors were encountered: