Skip to content

fix: remove [beforeall:] directive from Revitron tab bundle.yaml#6

Open
Avinashhv wants to merge 1 commit into
revitron:masterfrom
Avinashhv:fix/bundle-yaml-tab-directive
Open

fix: remove [beforeall:] directive from Revitron tab bundle.yaml#6
Avinashhv wants to merge 1 commit into
revitron:masterfrom
Avinashhv:fix/bundle-yaml-tab-directive

Conversation

@Avinashhv
Copy link
Copy Markdown

Summary

  • Removes the [beforeall:] directive from the tab name in Revitron.tab/bundle.yaml
  • Newer versions of pyRevit pass the tab name string literally to Revit's GetRibbonPanels() API, including any trailing directives — causing ArgumentException: Unexpected tab at startup
  • This change keeps the Revitron tab loading correctly without the invalid directive

What changed

Revitron.tab/bundle.yaml:

# Before
layout:
  - Revitron[beforeall:]
  - RPM

# After
layout:
  - Revitron
  - RPM

Reviewer notes

  • The [beforeall:] directive was intended to position the Revitron tab before all others, but it is no longer supported in this form by current pyRevit builds and causes a hard UI build failure that prevents the entire extension from loading
  • Removing it fixes the crash; tab ordering can be revisited separately if needed

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 19, 2026

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@Avinashhv
Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

Newer pyRevit versions pass the tab name literally (including the
[beforeall:] suffix) to Revit's GetRibbonPanels(), causing an
ArgumentException: Unexpected tab at startup. Removing the directive
fixes the UI build error while still creating the Revitron tab.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Avinashhv Avinashhv force-pushed the fix/bundle-yaml-tab-directive branch from 3b95c52 to 1e2b80b Compare May 19, 2026 21:56
@Avinashhv
Copy link
Copy Markdown
Author

recheck

github-actions Bot added a commit that referenced this pull request May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant