kobalt icon indicating copy to clipboard operation
kobalt copied to clipboard

Warning: Old profile syntax detected

Open McPringle opened this issue 8 years ago • 3 comments

Running ./kobaltw test on the latest Kobalt source from master shows the following warning message twice:

***** WARNING Old profile syntax detected for "                val debug = false", please update to "val debug by profile()"

To be a good example, the build file of Kobalt itself should not produce warnings… jm2c… ;-)

McPringle avatar Nov 05 '17 12:11 McPringle

Doesn't this log line come from the test that makes sure the old syntax is still supported?

cbeust avatar Nov 05 '17 15:11 cbeust

Thanks for the hint, @cbeust, I'll check it and if it comes from the test, maybe I'll modify the test a bit to catch the warning.

McPringle avatar Nov 05 '17 17:11 McPringle

Just catching System.out or System.err does not work because SLF4J is used for logging. But it should be possible to catch and check the warning with SLF4J Test. I'll suggest this topic for the next Hackergarten.

McPringle avatar Dec 14 '17 12:12 McPringle