{"record":{"id":"bb166719b34a36a6","repo":"halo-dev/halo","slug":"https-halo-run-probs-plugin-dependencies-not-fou","errorCode":"https://halo.run/probs/plugin-dependencies-not-found","errorMessage":"Dependencies were not found.","messagePattern":"Dependencies were not found\\.","errorType":"http","errorClass":"PluginDependencyException.NotFoundException","httpStatus":400,"severity":"error","filePath":"application/src/main/java/run/halo/app/plugin/PluginServiceImpl.java","lineNumber":187,"sourceCode":"    }\n\n    private void checkDependencies(Plugin plugin) {\n        var resolvedPlugins = new ArrayList<>(pluginManager.getResolvedPlugins());\n        var pluginDescriptors = new ArrayList<PluginDescriptor>(resolvedPlugins.size() + 1);\n\n        resolvedPlugins.stream().map(PluginWrapper::getDescriptor).forEach(pluginDescriptors::add);\n\n        var pluginDescriptor = YamlPluginDescriptorFinder.convert(plugin);\n        pluginDescriptors.add(pluginDescriptor);\n\n        var deptResolver = new DependencyResolver(pluginManager.getVersionManager());\n        var result = deptResolver.resolve(pluginDescriptors);\n        if (result.hasCyclicDependency()) {\n            throw new PluginDependencyException.CyclicException();\n        }\n        var notFoundDependencies = result.getNotFoundDependencies();\n        if (!CollectionUtils.isEmpty(notFoundDependencies)) {\n            throw new PluginDependencyException.NotFoundException(notFoundDependencies);\n        }\n\n        var wrongVersionDependencies = result.getWrongVersionDependencies();\n        if (!CollectionUtils.isEmpty(wrongVersionDependencies)) {\n            throw new PluginDependencyException.WrongVersionsException(wrongVersionDependencies);\n        }\n    }\n\n    @Override\n    public Mono<Plugin> upgrade(String name, Path path) {\n        return findPluginManifest(path)\n                .doOnNext(plugin -> {\n                    satisfiesRequiresVersion(plugin);\n                    checkDependencies(plugin);\n                })\n                .flatMap(pluginInPath -> {\n                    // pre-check the plugin in the path\n                    Assert.notNull(","sourceCodeStart":169,"sourceCodeEnd":205,"githubUrl":"https://github.com/halo-dev/halo/blob/d2f5165f9c8f055ffcb3fa9c3f4032821a7b68c8/application/src/main/java/run/halo/app/plugin/PluginServiceImpl.java#L169-L205","documentation":"Error \"Dependencies were not found.\" thrown in halo-dev/halo.","triggerScenarios":"Thrown at application/src/main/java/run/halo/app/plugin/PluginServiceImpl.java:187 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install or enable the missing dependent plugins listed in the error before enabling this plugin.","Check the plugin.yaml 'dependsOn' entries of the failing plugin and confirm each dependency name matches an installed plugin exactly.","If a dependency was uninstalled or renamed, either restore it or update the plugin's declared dependencies."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d2f5165f9c8f055ffcb3fa9c3f4032821a7b68c8","analyzedAt":"2026-08-14T00:18:38.915Z","schemaVersion":2},"datasetVersion":"2026-08-14T05:17:29.042Z"}