Skip to content

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

@Wurschdhaud

Description

@Wurschdhaud

✈ 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

see title - this makes testing the command script.toggle_icon() impossible as it ignores native tabs

⌨ Error/Debug Message

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Manage 

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Create 

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Insert 

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Annotate 

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: View 

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Manage 

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Add-Ins 

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: pyRevit 

DEBUG [pyrevit.coreutils.ribbon] Native tab added to the list of tabs: pyRevitDev 

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: pyRevitPlus

♻️ To Reproduce

This small sample script can show the error:

try:
    script.get_logger().set_debug_mode()
    state = config.get_option("state", True)
    print("Current state: ", state)
    script.toggle_icon(not state)
    config.set_option("state", not state)
    script.save_config()
    print("Works... Saving: ", not state)
except Exception as e:
    print(e)
finally:
    script.get_logger().reset_level()

⏲️ Expected behavior

looking at the printout, i would expect the behaviour to list all tabs but the pyrevit ones as native. Is this not the intention of that? Currently all of them are not native:

EBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Architecture

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Structure

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Steel

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Precast

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Systems

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Insert

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Annotate

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Analyze

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Massing & Site

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Collaborate

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: View

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Manage

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Create

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Insert

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Annotate

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: View

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Manage

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: Add-Ins

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: pyRevitPlus

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: develop

DEBUG [pyrevit.coreutils.ribbon] Tab added to the list of tabs: pyRevit

DEBUG [pyrevit.coreutils.ribbon] Native tab added to the list of tabs: pyRevitDev

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

latest commit

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    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