I need to supplement the code for yaml and yml, but this will result in exceptions
<fileType name="solon-properties-file" implementationClass="org.noear.solon.idea.plugin.suggestion.filetype.SolonPropertiesFileType" fieldName="INSTANCE" fileNames="app.properties" patterns="app-*.properties"/> <fileType name="solon-yaml-file" implementationClass="org.noear.solon.idea.plugin.suggestion.filetype.SolonYamlFileType" fieldName="INSTANCE" fileNames="app.yaml" patterns="app-*.yaml"/> <completion.contributor language="Properties" implementationClass="org.noear.solon.idea.plugin.suggestion.completion.PropertiesCompletionContributor"/> <completion.contributor language="yaml" implementationClass="org.noear.solon.idea.plugin.suggestion.completion.YamlCompletionContributor"/> 报错:Caused by: java.lang.ClassNotFoundException: org.jetbrains.yaml.YAMLLanguage PluginClassLoader(plugin=PluginDescriptor(name=Solon, id=org.noear.solon.idea.plugin, descriptorPath=plugin.xml, path=D:\project\solon-idea-plugin\build\idea-sandbox\plugins\Solon, version=0.0.1-M8, package=null, isBundled=false), packagePrefix=null, instanceId=95, state=active)
请先登录再写评论。
Hi,
Please always provide the full context. What is your Gradle build script configuration? What is your plugin.xml content?
Most likely, you forgot to add a dependency on YAML plugin. See https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
YAML plugin ID is org.jetbrains.plugins.yaml.