binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

Renamed Functions via API Don't Show in Main View Without Doing Something to Make Them Show

Open utkonos opened this issue 2 months ago • 1 comments

Version and Platform (required):

  • Binary Ninja Version: 5.3.8726-dev Ultimate, 8589bdfe
  • OS: macos
  • OS Version: 26.1.0
  • CPU Architecture: arm64

Bug Description: If I change many function names via plugin, they appear immediately in the symbols pane, but don't change in the main view until you navigate away and back or do something like that to get them to appear.

Steps To Reproduce:

  1. Open this file: time tensor mounts intensely
  2. Run this plugin from _start evening search integrates distinctly

Expected Behavior: Renamed functions appear immediately like in symbols pane.

utkonos avatar Dec 05 '25 03:12 utkonos

Not a fix, but a temporary work-around for those experiencing the same issue:

from binaryninjaui import UIContext

# Refresh the view
ui_context = UIContext.activeContext()
if ui_context:
    view_frame = ui_context.getCurrentViewFrame()
    if view_frame:
        view_frame.refreshContents()

psifertex avatar Dec 05 '25 03:12 psifertex