PluginXmlValidity problems: Cannot resolve language with id ''JSP''
Answered
In the plugin.xml file, I configured an EP aimed at folding JSP code.
<lang.foldingBuilder implementationClass="com.xxx.plugins.foldingBuilder.MyJspI18nFoldingBuilder"
language="JSP"/>
IDEA gave me this error prompt: Cannot resolve language with id ''JSP''
But this error prompt doesn't seem to affect the normal compilation of the plugin. The plugin runs normally and achieves the functionality I want. I want to know why this is? How to eliminate this error prompt?
This is part of my build.gradle.kts file:
intellij {
pluginName.set(properties("pluginName"))
version.set(properties("platformVersion")) // 2022.1.4
type.set(properties("platformType")) // IU
plugins.set(listOf("com.intellij.java", "properties", "JavaScript"))
updateSinceUntilBuild.set(false)
}
Please sign in to leave a comment.
Hi,
Please try to add a dependency on the
com.intellij.jsp
plugin.still the same issue :(
Strangely, the plugin can be installed and run normally, still can't solve this prompt problem
Please try invalidating caches: https://www.jetbrains.com/help/idea/invalidate-caches.html
I've tried everything, but it didn't work. There's just a red warning, but it doesn't affect the normal operation of the plugin, so I'm not going to fix it. Thanks for your reply~ Wishing you happiness in both your work and life.
I found that this plugin com.intellij.jsp does not support IDEA version 2024.1. Is it related to this?
https://plugins.jetbrains.com/plugin/13152-jakarta-ee-server-pages-jsp-
You target 2022.1.4, so the lack of the plugin version for 2024.1 doesn't seem related.
Check if you can access the
com.intellij.jsp.lang.jsp.NewJspLanguage
class in your plugin project. If not, then your setup probably doesn't include the JSP plugin dependency.com.intellij.lang.jsp.NewJspLanguage
I found this in the external library.It seems to be a bug.
I reproduced it and created an issue: https://youtrack.jetbrains.com/issue/IDEA-356348/Language-is-reported-as-unresolved-in-plugin.xml
Please follow it.
The underlying issue is https://youtrack.jetbrains.com/issue/IJPL-116548/Devkit-resolve-language-ID-from-all-Languages-in-library-scope, please enable “JSP” plugin in your development IDE instance (or ignore the highlighting).