some-project app module.yaml libs....
# kotlin-toolchain
g
some-project app module.yaml libs.versions.toml No catalog value for the key
libs.androidx.compose.ui
this is an android app that i am migrating from gradle in android studio
j
If you don't have any other module nor
project.yaml
file, the root of your project is effectively under
app
so the catalog should be in
app/libs.versions.toml
. If you want to keep the structure like this, I suggest adding
project.yaml
in what you consider to be the project root
g
my project.yaml is already in project root
j
Ah, sorry it wasn't in your original post, so I thought I had solved the case. Can you share the contents of
project.yaml
? Do you confirm
app
is declared in the list of
modules
? (just covering all the bases)
g
modules: - app project.yaml content
j
Mmmh ok strange. Could you maybe share the project (or a minimal reproducer) as a zip or github? That would be amazing
Also, does
./kotlin build
also give you this error, or is it just in the IDE?
g
same error with ./kotlin build , it works if i use version.ref instead of bom
it is the project that i started with android studio with default gradle without kotlin init/new, but now i am switching to kotlin-toolcahin and also likely will contribute to kotlin-toolchain
j
I see, thanks!
@alexey.barsov could you please take a look?
👀 1
a
@Gourav Thanks for the report, this is a bug in catalog parser, I filed (and fixed) the corresponding issue: youtrack.jetbrains.com/…/Version-catalog-versionless-BOM-supplied-library-declared-with-the-group-name-notation-is-silently-dropped.