Skip to content

fix(ribbon): tab downgrade, combobox crash, keys/values return, tooltip error msg#3202

Merged
jmcouffin merged 5 commits intopyrevitlabs:developfrom
Wurschdhaud:fix-3201
Mar 31, 2026
Merged

fix(ribbon): tab downgrade, combobox crash, keys/values return, tooltip error msg#3202
jmcouffin merged 5 commits intopyrevitlabs:developfrom
Wurschdhaud:fix-3201

Conversation

@Wurschdhaud
Copy link
Copy Markdown
Contributor

Description

  • _PyRevitRibbonTab.__init__: replace bare raise in panel-loading except with mlogger.debug — prevents pyrevit tabs from being silently downgraded to RevitNativeRibbonTab when any panel item fails to load
  • _PyRevitRibbonPanel.__init__: add UI.ComboBox branch to item-type dispatcher; demote unknown types from raise to mlogger.debug to prevent a single unrecognised item from killing the whole tab
  • GenericPyRevitUIContainer.keys/values: add missing return statements
  • _PyRevitRibbonButton.process_deferred: fix wrong variable (tooltip_videotooltip_image) in deferred tooltip-image error message

Checklist

Before submitting your pull request, ensure the following requirements are met:

  • Code follows the PEP 8 style guide.
  • Code has been formatted with Black using the command:
    pipenv run black {source_file_or_directory}
  • Changes are tested and verified to work as expected.

Related Issues

If applicable, link the issues resolved by this pull request:


Additional Notes

Does this affect the new c# launcher? Does it need a similiar fix?

@devloai
Copy link
Copy Markdown
Contributor

devloai bot commented Mar 29, 2026

Unable to trigger custom agent "Code Reviewer". You have run out of credits 😔
Please upgrade your plan or buy additional credits from the subscription page.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR targets robustness issues in pyRevit’s ribbon UI wrappers to prevent pyRevit tabs/panels from breaking (or being misclassified as native) due to specific ribbon item edge cases.

Changes:

  • Fix GenericPyRevitUIContainer.keys() / .values() to actually return lists.
  • Fix deferred tooltip-image exception to reference tooltip_image (not tooltip_video).
  • Extend panel item wrapping to recognize UI.ComboBox and skip unknown item types instead of raising.

@jmcouffin jmcouffin added the Enhancement Enhancement request [class->Improved #{number}: {title}] label Mar 31, 2026
@jmcouffin jmcouffin merged commit 5678529 into pyrevitlabs:develop Mar 31, 2026
@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1536-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1540-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1540-wip

@Wurschdhaud Wurschdhaud deleted the fix-3201 branch March 31, 2026 16:03
@github-actions
Copy link
Copy Markdown
Contributor

📦 New work-in-progress (wip) builds are available for 6.1.0.26090+1556-wip

@github-actions
Copy link
Copy Markdown
Contributor

📦 New public release are available for 6.2.0.26090+1754

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Enhancement request [class->Improved #{number}: {title}]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: pyRevitDev tab is recognized as "native"

3 participants