Custom EL variable marked as unresolved in Ultimate despite PsiReferenceContributor

Answered

We have some custom objects that we keep in session for users. Typically we add the @elvariable comment annotation, but some of the pages get quite messy.

We're experimenting with a PsiReferenceContributor to resolve these - the reference contributor works in that you can click through and you get IntelliSense on it, but the variable itself is still highlighted in yellow with the "Cannot resolve variable" warning.

Is there another contributor we need to create to allow this warning to disappear?

3 comments
Comment actions Permalink

You can provide such variables via com.intellij.psi.impl.source.jsp.el.impl.ElVariablesProvider registered in com.intellij.javaee.jsp.elImplicitVariablesProvider extension point (dependency on JSP+JavaEE plugins is required, com.intellij.jsp/com.intellij.javaee)

0
Comment actions Permalink

For anyone else who's had issues, the extension point is now 

<javaee.el.implicitVariablesProvider ...
0

Please sign in to leave a comment.