(PhpStorm) NoClassDefFoundError: com/intellij/psi/JavaPsiFacade

Got this error when using this class in my plugin in PhpStorm, but works fine in Intellij.

Regards,
Alan

0
3 comments

Your observation is correct. JavaPsiFacade is part of the PSI API for Java, and PhpStorm does not include any support for Java.


0
Avatar
Permanently deleted user

I use JavaPsiFacade.getElementFactory(project)  to create Psi white space element to be inserted into Psi tree . Is there other way to do that?

0

Yes. You can use PsiParserFacade.SERVICE.getInstance().createWhiteSpaceFromText() instead.


0

Please sign in to leave a comment.