EDIT: Turns out i was using a 1.x version of the s...
# intellij-plugins
m
EDIT: Turns out i was using a 1.x version of the sdk since i created it from the wizard instead of the template which is probably the issue. migrating now which im guessing will fix it Im having issues getting a service created with a
CoroutineScope
. I added a coroutinescope constructor parameter to my service just like the docs say, but once i do that my call to `service()`/
ApplicationManager.getApplication().getService
give an error
Cannot create class
. I get the same error when trying to add
Project
in the constructor as mentioned in other parts of the docs. what am i doing wrong here?
https://plugins.jetbrains.com/docs/intellij/plugin-services.html#light-services this part of the docs mentions constructor injection for other services not being supported for "Light services" that are declared with annotation instead of in the xml, but the example in the other link uses the annotation so thats different right?
no such constructor: ....CmptPlugin.<init>(CoroutineScope)void/invokeSpecial
did some more digging, im getting this as the cause of the exception, which i think is saying theres no empty constructor? do i need to declare the coroutinescope param somethwere for light services to work?
scratch that, it works with
Project
in the constructor as long as i dont pass
App
to
@Service
which makes sense, but getting a coroutine scope still doesnt work