InspectionProfileImpl#initInspectionTools is marked for removal. What to use instead?

Answered

During development of my plugin I discovered that I needed to call the method InspectionProfileImpl#initInspectionTools to get correct functionality.  There are no annotations on the method, so I was surprised to get an error indicator stating “'initInspectionTools(com.intellij.openapi.project.Project)' is scheduled for removal in version 233.6745.305”.  Since this is a new plugin, I obviously don't want to reference a soon to be removed method.  What should I do to ensure proper initialization of the InspectionProfile for my project?

0
1 comment

Hi Todd,

I checked InspectionProfileImpl#initInspectionTools and it doesn't seem to be scheduled for removal. It is most likely a Plugin DevKit issue.

Could you please specify your project setup so we can reproduce it? What your Gradle build setup and plugin.xml are? What version of IDE and Plugin Devkit do you use (you can copy it from the About window - invoke “About” action)?

It would be great if you could share the project sources or a minimal reproducible example plugin.

0

Please sign in to leave a comment.