NoClassDefFoundError: com/intellij/refactoring/introduceField/IntroduceConstantHandler

when test-running my plugin in the Idea sandbox, everything seems to be working just fine.
when i use the plugin in phpStorm, upon starting the plugin, it crashes with the following error:

..Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(795,567),absolute(795,591),button=1,modifiers=Button1,clickCount=1] on frame0: com/intellij/refactoring/introduceField/IntroduceConstantHandler
java.lang.NoClassDefFoundError: com/intellij/refactoring/introduceField/IntroduceConstantHandler ...

What is the needed deployment process to avoid this issue? (do i need to add some jar library to my project?)

Thanks for any help,

Comment actions Permalink

IntroduceConstantHandler implements the Introduce Constant refactoring in Java. PhpStorm does not include any Java support or Java refactorings. If you want your plugin to be compatible with PhpStorm, you need to avoid using this class.

Comment actions Permalink

thank you Dmitry

Comment actions Permalink

I encountered same problem. And it drives me crazy to solve this issue hence, I decided to find some help online and I find this page. You knowledge is impressive it truly helps me. You save my butt! Thank you so much!

Original message URL:


Please sign in to leave a comment.