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
On the first build, we get the following source-to-output map:
src/main/java/com/example/testhiltviewmodel/ProfileScreenViewModel.kt:
build/.../ProfileScreenViewModel_Factory.java
build/.../ProfileScreenViewModel_HiltModules.java
<This is a virtual key for removed outputs; DO NOT USE>:
build/.../ProfileScreenViewModel_HiltModules.java:
build/.../_..._ProfileScreenViewModel_HiltModules_KeyModule.java
build/.../_..._ProfileScreenViewModel_HiltModules_BindsModule.java
build/.../ProfileScreenViewModel_HiltModules_KeyModule_ProvideFactory.java
Next, if we remove the ProfileScreenViewModel.kt and rebuild we get this:
<This is a virtual key for removed outputs; DO NOT USE>:
build/.../ProfileScreenViewModel_HiltModules.java:
build/.../_..._ProfileScreenViewModel_HiltModules_KeyModule.java
build/.../_..._ProfileScreenViewModel_HiltModules_BindsModule.java
build/.../ProfileScreenViewModel_HiltModules_KeyModule_ProvideFactory.java
In particular, the generated sources from ProfileScreenViewModel.kt are removed, but the transitively generated sources, e.g. ProfileScreenViewModel_HiltModules, are not removed.
@ting-yuan Do you have an ETA for a new release? This is causing some annoying issues for us as cleaning the project isn't enough due to the build cache
This issue came up in Dagger (google/dagger#4060). Say we have a class like this:
On the first build, we get the following source-to-output map:
Next, if we remove the
ProfileScreenViewModel.kt
and rebuild we get this:In particular, the generated sources from
ProfileScreenViewModel.kt
are removed, but the transitively generated sources, e.g.ProfileScreenViewModel_HiltModules
, are not removed.You can find a repro of this project in google/dagger#4060.
The text was updated successfully, but these errors were encountered: