Skip to content

[Bug]: Icons not showing in pyRevit 6.0 when icon.svg is stored in same folder. #3173

@MichaelCWD

Description

@MichaelCWD

✈ Pre-Flight checks

  • I don't have SentinelOne antivirus installed (see above for the solution)
  • I have searched in the issues (open and closed) but couldn't find a similar issue
  • I have searched in the pyRevit Forum for similar issues
  • I already followed the installation troubleshooting guide thoroughly
  • I am using the latest pyRevit Version

🐞 Describe the bug

When a button has an icon.png in its folder and an icon.svg is also present in the same folder, pyRevit fails to find/display the PNG icon. Renaming the SVG fixes the issue, this workflow was not needed before 6.0.

⌨ Error/Debug Message

No error or debug message available.

♻️ To Reproduce

See bug description.

⏲️ Expected behavior

pyRevit should handle icon formats when both .png and .svg files are present in the same bundle folder. Or give warning (log / console) when multiple icon formats with the same basename are detected.

If this combination is unsupported, it can documented on the pyRevit Bundles page:
https://pyrevitlabs.notion.site/pyRevit-Bundles-12323e3090904d9aa7cdc3d82095d3e3

🖥️ Hardware and Software Setup (please complete the following information)

pyrevit v6.0.0.26032+2145.05bc865248e3efa525f010c590209dc4d262dd2c

Additional context

No response

Metadata

Metadata

Labels

BugBug that stops user from using the tool or a major portion of pyRevit functionality [class]

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions