[GH-ISSUE #209] The plugin doesn't like Wildcard-Yaml #151

Closed
opened 2026-10-30 21:20:08 +00:00 by bsakaguchi · 5 comments
Owner

Originally created by @nosdregamon on GitHub (Jul 28, 2023).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/209

Originally assigned to: @DominikDoom on GitHub.

a1111-sd-webui-tagcomplete allows for completion of Wildcards used by sd-dynamic-prompts.

The latter allows usage of YAML-Files however, actually using these file, it produces the following message(s) at startup...

Issue with tags found in example.yaml at item clothing
Issue with tags found in example.yaml at item artists

... and I can't use autocomplete on runtime. Which is a shame, because there's some cool "libraries" at civitai.

My guess is implementing yaml-files in sd-webui-tagcomplete would be quite complicated, but perhaps for a start it could ignore them?

Originally created by @nosdregamon on GitHub (Jul 28, 2023). Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/209 Originally assigned to: @DominikDoom on GitHub. a1111-sd-webui-tagcomplete allows for completion of Wildcards used by [sd-dynamic-prompts](https://github.com/adieyal/sd-dynamic-prompts). The latter allows usage of [YAML-Files](https://github.com/adieyal/sd-dynamic-prompts/blob/main/docs/SYNTAX.md#yaml-files) however, actually using these file, it produces the following message(s) at startup... ``` Issue with tags found in example.yaml at item clothing Issue with tags found in example.yaml at item artists ``` ... and I can't use autocomplete on runtime. Which is a shame, because there's some cool "libraries" [at civitai](https://civitai.com/models/115641/billions-of-constructions-standalone-extension-buildings-rooms-etc). My guess is implementing yaml-files in sd-webui-tagcomplete would be quite complicated, but perhaps for a start it could ignore them?
bsakaguchi 2026-10-30 21:20:08 +00:00
Author
Owner

@nosdregamon commented on GitHub (Jul 28, 2023):

example.zip

<!-- gh-comment-id:1656328962 --> @nosdregamon commented on GitHub (Jul 28, 2023): [example.zip](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/files/12198204/example.zip)
Author
Owner

@DominikDoom commented on GitHub (Jul 29, 2023):

Thanks for the example. This is actually a side effect of the already implemented yaml wildcard parser for https://github.com/Klokinator/Umi-AI, which expects a slightly different format. I didn't implement it myself, but included their pull request.

I was not aware that this causes issues with dynamic-prompts, I'll take a look and see if I can change it up so it works together with them or at least not show the error.

Normal functionality should however not be affected by this since they already are ignored, the error is not critical. While the yaml wildcards themselves obviously don't show up, everything else worked as normal when I tried it out just now.

<!-- gh-comment-id:1656698117 --> @DominikDoom commented on GitHub (Jul 29, 2023): Thanks for the example. This is actually a side effect of the already implemented yaml wildcard parser for https://github.com/Klokinator/Umi-AI, which expects a slightly different format. I didn't implement it myself, but included their pull request. I was not aware that this causes issues with dynamic-prompts, I'll take a look and see if I can change it up so it works together with them or at least not show the error. Normal functionality should however not be affected by this since they already are ignored, the error is not critical. While the yaml wildcards themselves obviously don't show up, everything else worked as normal when I tried it out just now.
Author
Owner

@nosdregamon commented on GitHub (Jul 29, 2023):

Thank you 👍

The problem that it doesn't work at all, might then be a side-effect of a different extension in the mix. I'll try to narrow it down (or switch to UMI).

<!-- gh-comment-id:1656705569 --> @nosdregamon commented on GitHub (Jul 29, 2023): Thank you 👍 The problem that it doesn't work at all, might then be a side-effect of a different extension in the mix. I'll try to narrow it down (or switch to UMI).
Author
Owner

@DominikDoom commented on GitHub (Jul 29, 2023):

I was able to add proper support for it!
It essentially treats each level of the yaml as if it were a normal wilcard file in a subfolder, so even the path traversal and peek into the subcategories will work like the normal wildcards, allowing you to step through and stop where you want.

Example with the building wildcards you linked:

https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/assets/34448969/1a1222cb-ff68-4adc-8e5e-3fb380c4df69

If the extension still doesn't work at all for you, I'd suggest opening a new issue since it's likely unrelated to this.
In that case also check if there are any errors in the browser console (CTRL-SHIFT-I).

<!-- gh-comment-id:1656745235 --> @DominikDoom commented on GitHub (Jul 29, 2023): I was able to add proper support for it! It essentially treats each level of the yaml as if it were a normal wilcard file in a subfolder, so even the path traversal and peek into the subcategories will work like the normal wildcards, allowing you to step through and stop where you want. Example with the building wildcards you linked: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/assets/34448969/1a1222cb-ff68-4adc-8e5e-3fb380c4df69 If the extension still doesn't work at all for you, I'd suggest opening a new issue since it's likely unrelated to this. In that case also check if there are any errors in the browser console (CTRL-SHIFT-I).
Author
Owner

@nosdregamon commented on GitHub (Jul 29, 2023):

It works without additional errors. Thank you very much.

<!-- gh-comment-id:1656747229 --> @nosdregamon commented on GitHub (Jul 29, 2023): It works without additional errors. Thank you very much.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DominikDoom/a1111-sd-webui-tagcomplete#151
No description provided.