Commit bceaf73f authored by Gregory.Shrago's avatar Gregory.Shrago Committed by intellij-monorepo-bot
Browse files

fail early when there is no core plugin in non-EAP mode

(cherry picked from commit 807834d3e3057fd002e7c706b5f216dfea7595cf)

GitOrigin-RevId: 3c3e60c658053abbb8e342c2b65ce039882e4690
parent 7bddf8d8
Branches unavailable Tags unavailable
No related merge requests found
Showing with 3 additions and 2 deletions
+3 -2
......@@ -1217,7 +1217,7 @@ public class PluginManagerCore {
boolean shouldLoadPlugins = shouldLoadPlugins();
Set<IdeaPluginDescriptorImpl> allDescriptors = new LinkedHashSet<>(idMap.values());
IdeaPluginDescriptorImpl coreDescriptor = idMap.get(PluginId.getId(CORE_PLUGIN_ID));
IdeaPluginDescriptorImpl coreDescriptor = notNull(idMap.get(PluginId.getId(CORE_PLUGIN_ID)));
boolean checkModuleDependencies = !coreDescriptor.getModules().isEmpty() &&
!coreDescriptor.getModules().contains(ALL_MODULES_MARKER);
......@@ -1443,7 +1443,8 @@ public class PluginManagerCore {
}
}
if (idMultiMap.get(PluginId.getId(CORE_PLUGIN_ID)).isEmpty()) {
getLogger().error(CORE_PLUGIN_ID + " not found; platform prefix is " + System.getProperty(PlatformUtils.PLATFORM_PREFIX_KEY));
String message = SPECIAL_IDEA_PLUGIN + " (platform prefix: " + System.getProperty(PlatformUtils.PLATFORM_PREFIX_KEY) + ")";
throw new EssentialPluginMissingException(Collections.singletonList(message));
}
Map<PluginId, IdeaPluginDescriptorImpl> idMap = new LinkedHashMap<>();
for (PluginId id : idMultiMap.keySet()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment