fixed: stuck if cnr node cannot be resolved

https://github.com/ltdrdata/ComfyUI-Manager/issues/1596#issuecomment-2692415656
This commit is contained in:
Dr.Lt.Data 2025-03-02 17:28:53 +09:00
parent f6be5ad839
commit 6969557693
3 changed files with 21 additions and 3 deletions

View File

@ -42,7 +42,7 @@ import manager_downloader
from node_package import InstalledNodePackage
version_code = [3, 27, 4]
version_code = [3, 27, 5]
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')

View File

@ -1584,6 +1584,7 @@ export class CustomNodesManager {
let unresolved_aux_ids = {};
let outdated_comfyui = false;
let unresolved_cnr_list = [];
for(let k in allUsedNodes) {
let node = allUsedNodes[k];
@ -1596,7 +1597,14 @@ export class CustomNodesManager {
}
let item = this.custom_nodes[node.properties.cnr_id];
hashMap[item.hash] = true;
if(item) {
hashMap[item.hash] = true;
}
else {
console.log(`CM: cannot find '${node.properties.cnr_id}' from cnr list.`);
unresolved_aux_ids[node.properties.cnr_id] = node.type;
unresolved_cnr_list.push(node.properties.cnr_id);
}
}
else if(node.properties.aux_id) {
unresolved_aux_ids[node.properties.aux_id] = node.type;
@ -1607,6 +1615,16 @@ export class CustomNodesManager {
}
}
if(unresolved_cnr_list.length > 0) {
let error_msg = "Failed to find the following ComfyRegistry list.\nThe cache may be outdated, or the nodes may have been removed from ComfyRegistry.<HR>";
for(let i in unresolved_cnr_list) {
error_msg += '<li>'+unresolved_cnr_list[i]+'</li>';
}
show_message(error_msg);
}
if(outdated_comfyui) {
customAlert('ComfyUI is outdated, so some built-in nodes cannot be used.');
}

View File

@ -1,7 +1,7 @@
[project]
name = "comfyui-manager"
description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI."
version = "3.27.4"
version = "3.27.5"
license = { file = "LICENSE.txt" }
dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions", "toml", "uv", "chardet"]