koin-annotations
koin-annotations copied to clipboard
Dependencies from an outside scope not yet created
Describe the bug
When declaring a koin managed object, if there is an argument that is scoped, the generated code uses getScope rather than getOrCreateScope, which can lead to failures if the scope hasn't already been opened.
To Reproduce Steps to reproduce the behavior:
- define a custom scope (either generated or manually, doesn't matter)
- define a type within the scope
- define a class with an argument of the type defined above
- start koin without starting the scope
- get an instance of the managed object defined in step 3
Expected behavior No crash should occur
Koin project used and used version (please complete the following information):
koin-annotations 1.3.0