The following problems are reported:
com.intellij.openapi.project.Project
and kotlinx.coroutines.CoroutineScope
, or one parameter of type Project
is not annotated as
a project-level service.
CoroutineScope
.
Example (Kotlin):
@Service // Suggest specifying 'Service.Level.PROJECT' parameter in '@Service' annotation
class MyService(val project: Project) // Suggest removing the parameter from constructor 'MyService'
After applying the quick-fix that suggests specifying 'Service.Level.PROJECT' parameter in '@Service' annotation is applied:
@Service(Service.Level.PROJECT)
class MyService(val project: Project)
After applying the quick-fix that suggests removing the parameter from constructor 'MyService':
@Service
class MyService()
New in 2023.2