0verEngineer / InlineProblems

Plugin to show problems inside the text editor for IDEs based on the IntelliJ Platform
GNU General Public License v3.0
61 stars 7 forks source link

Exception starting up the plugin #51

Closed mailsanchu closed 7 months ago

mailsanchu commented 8 months ago
2024-01-18 12:47:21,305 [   3856]   WARN - #c.i.i.s.i.StartupManagerImpl - Migrate org.overengineer.inlineproblems.ProjectStartupActivity to ProjectActivity [Plugin: org.OverEngineer.InlineProblems]
com.intellij.diagnostic.PluginException: Migrate org.overengineer.inlineproblems.ProjectStartupActivity to ProjectActivity [Plugin: org.OverEngineer.InlineProblems]
    at com.intellij.ide.startup.impl.StartupManagerImpl.runPostStartupActivities(StartupManagerImpl.kt:277)
0verEngineer commented 8 months ago

Can you give me some details?

Thank you

mailsanchu commented 8 months ago

image

mailsanchu commented 8 months ago

image

mailsanchu commented 8 months ago

Java/SpringBoot project

0verEngineer commented 8 months ago

Thanks, does this happen every time you open the project? Or did you notice any pattern that leads to this problem?

mailsanchu commented 8 months ago

I am not sure it causes any issues. May be a warning. I just want to let you know

mailsanchu commented 8 months ago

Issue happens during the IDE startup. Not releated to opening/closing the project

0verEngineer commented 8 months ago

It seems like with 2023.3.3 the StartupActivity class is not supported / not working anymore, it was marked as obsolete before, but not as deprecated so i thought i can use it without problems in the near future...

I have commented on an existing question https://intellij-support.jetbrains.com/hc/en-us/community/posts/10694274847762-Alternative-to-StartupManager-runAfterOpened?page=1#community_comment_16467991534226 and i hope for an answer there because the alternative to StartupActivity is ProjectActivity but this can only be used with kotlin.

0verEngineer commented 8 months ago

https://github.com/JetBrains/intellij-community/blob/master/platform/core-api/src/com/intellij/openapi/startup/StartupActivity.kt This is the obsolete StartupActivity class my plugin uses, it is still not deprecated so it should work and should continue working, to me this looks like a bug in IntelliJ, we have to wait for an answer.

Luckily this only is a problem for users of the unity game engine in Rider.

0verEngineer commented 7 months ago

The warning will not be logged in the release version and the StartupActivity will continue to work.