IJPL-149476 fix unresovled PyBundle

GitOrigin-RevId: c9997d7f1eb5fb96b1b0f005f852cdf58406b189
This commit is contained in:
Vladimir Krivosheev
2024-05-13 09:30:46 +02:00
committed by intellij-monorepo-bot
parent eacde8b9d0
commit be6d1d9923
2 changed files with 24 additions and 19 deletions

View File

@@ -1,15 +1,13 @@
<idea-plugin package="com.intellij.commandInterface">
<dependencies>
<plugin id="com.intellij.modules.platform"/>
<plugin id="com.intellij.modules.lang"/>
<!-- uses messages.PyBundle -->
<module name="intellij.python.community.impl"/>
</dependencies>
<!--
Extension points to support gnu command line language.
See {@link com.intellij.commandInterface.commandLine}
-->
<extensions defaultExtensionNs="com.intellij">
<lang.parserDefinition language="CommandLine"
implementationClass="com.intellij.commandInterface.commandLine.CommandLineParserDefinition"/>
<lang.syntaxHighlighter language="CommandLine"

View File

@@ -93,6 +93,7 @@ private class InspectopediaExtractor : ModernApplicationStarter() {
LOG.info("Cannot create options panel ${wrapper.shortName}", e)
}
try {
val language = wrapper.language
availablePlugins.get(pluginId)!!.inspections.add(Inspection(
id = wrapper.shortName,
@@ -109,6 +110,12 @@ private class InspectopediaExtractor : ModernApplicationStarter() {
cweIds = inspectionExtraState.inspections.get(wrapper.id)?.cweIds,
))
}
catch (e: Throwable) {
System.err.println("Error while processing ${wrapper.extension}")
e.printStackTrace()
exitProcess(-1)
}
}
val sortedPlugins = availablePlugins.values
.sortedBy { it.id }