Skip to content

[question] Custom extensions colliding with each other? #111

Answered by melMass
milksteak1111 asked this question in Q&A
Discussion options

You must be logged in to vote

I know it's been a long time but I just uncovered a behaviour I wasn't aware of and could be linked to this:

Comfy doesn't actually know what to do if two nodes class name are exactly the same (in python)...

This has the effect of replacing the last imported python node if that makes sense, but this creates a strange thing where the web definition is taken from one, but on execution it calls the other one...
For mtb I just fixed this by appending underscore for class names that could be too common with other extension pack. (see

class ImageCompare_:
)

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@WASasquatch
Comment options

@melMass
Comment options

Answer selected by melMass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
type: 🐛 bug Something isn't working
3 participants
Converted from issue

This discussion was converted from issue #75 on October 10, 2023 14:09.