(PhpStorm) NoClassDefFoundError: com/intellij/psi/JavaPsiFacade Permanently deleted user Created April 15, 2015 07:45 Got this error when using this class in my plugin in PhpStorm, but works fine in Intellij.Regards,Alan
Your observation is correct. JavaPsiFacade is part of the PSI API for Java, and PhpStorm does not include any support for Java.
I use JavaPsiFacade.getElementFactory(project) to create Psi white space element to be inserted into Psi tree . Is there other way to do that?
Yes. You can use PsiParserFacade.SERVICE.getInstance().createWhiteSpaceFromText() instead.