(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

3 comments
Comment actions Permalink

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


0
Comment actions Permalink

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
Comment actions Permalink

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


0

Please sign in to leave a comment.