There seems to be a bug in refreshVersions... I ha...
# refreshversions
d
There seems to be a bug in refreshVersions... I had this problem https://kotlinlang.slack.com/archives/C19FD9681/p1706016947883069 and when I removed the refreshVersions plugin, it was solved...
l
But you're using 100% versions catalogs, correct?
d
Yes
l
So your versions.properties file is empty, correct?
d
Actually, probably not... but I assumed that as soon as I switched the references in in build.gradle.kts to use Version Catalogs, it doesn't look there anymore?
l
Plugins are a special case
d
I don't have any _ in my version catalog file...
l
Because of limitations in the Gradle APIs
Then, why are keeping stuff in versions.properties?
d
Well, I was in the middle of transition, I still needed to compare versions and make sure things are working... I didn't really expect that I needed to get rid of that file until I finished the migration.
l
You can comment stuff
version.kotlin will be used for KGP
Same for AGP and plugin.android
And other plugin.*
d
It might be nice to put a warning in the refreshVersionsMigation --mode VersonCatalogOnly in red or something that people should watch this... I guess I could do what you suggest now that I know, but I wasted a nice few hours until someone told me to try removing refreshVersions and I figured out that it was the culprit...
l
Diving back into refreshVersions isn't my top priority at the moment since I don't make a salary out of it, and I'm actually starting a business before unemployment benefits run out, and I didn't implement the migration code myself, and I know it's not perfect, but fixing or redoing it would take me weeks, which I cannot give at the moment. If you want to fix the migration, I can give hours through a Google Meet or something to help you figure out the codebase and where to look to improve that.
Sorry for the lengthy sentence, I hope it's still understandable 😅
BTW, I'm sorry it cost you hours
These kind of things are not cool, whatever the root cause(s) might be
d
Yeah, that's fine, thanks for your involvement up in this great project until now 😉! I thought just adding that little warning wouldn't take so much time... I wish you lots of luck in your new business 🚀😃!
l
You can look into the contribution guide and submit a PR for the warning message you wished you had