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?
Please sign in to leave a comment.
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)
For anyone else who's had issues, the extension point is now
See https://plugins.jetbrains.com/docs/intellij/api-changes-list-2021.html#intellij-idea-ultimate-20213