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)
}
1
9 comments

Hi,

Please try to add a dependency on the com.intellij.jsp plugin.

0

still the same issue :(

Strangely, the plugin can be installed and run normally, still can't solve this prompt problem


 

0

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.

0

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-

0

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.

0

com.intellij.lang.jsp.NewJspLanguage I found this in the external library.

 

 

0

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).

0

Please sign in to leave a comment.