You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BinaryNinja extension not compatible with BinaryNinja >= 4.3 due to deprecated DockHandler API #130
changed the title [-]Not compatible with BinaryNinja 4.3[/-][+]BinaryNinja extension not compatible with BinaryNinja 4.3 due to deprecated DockHandler API[/+]on Nov 15, 2025
Sorry for the delay. It looks like the patch for this should be easy to include.
---a/ext_bn/retsync/sync.py+++b/ext_bn/retsync/sync.py
@@ -1,10+1,10 @@
-frombinaryninjauiimportDockHandler+frombinaryninjauiimportUIContextfrombinaryninjaimportBinaryView, BackgroundTaskThreadfrombinaryninja.pluginimportPluginCommandfrombinaryninja.enumsimportSegmentFlag, MoveOperation-frombinaryninjauiimportUIContext+# … rest of imports …
@@ -<some‑line> (wheretheoldcodeusesDockHandler)
-dock_handler=DockHandler.getActiveDockHandler()
-ifviewFrame:=dock_handler.getViewFrame():
-if (view:=viewFrame.getCurrentWidget()) isNone:
-raiseValueError("Could not find active view via dock handler.")
+ui_context=UIContext.activeContext()
+ifui_contextand (viewFrame:=ui_context.getCurrentViewFrame()):
+if (view:=viewFrame.getCurrentWidget()) isNone:
+raiseValueError("Could not find active view via UIContext.")
elifactiveWindow :=QApplication.activeWindow():
if (view:=activeWindow.childAt(QPoint(150, 150))) isNone:
raiseValueError("Could not find active view via heuristics.")
changed the title [-]BinaryNinja extension not compatible with BinaryNinja 4.3 due to deprecated DockHandler API[/-][+]BinaryNinja extension not compatible with BinaryNinja >= 4.3 due to deprecated DockHandler API[/+]on Nov 15, 2025
Activity
CX330Blake commentedon Jul 29, 2025
+1
[-]Not compatible with BN 4.3[/-][+]Not compatible with BinaryNinja 4.3[/+][-]Not compatible with BinaryNinja 4.3[/-][+]BinaryNinja extension not compatible with BinaryNinja 4.3 due to deprecated DockHandler API[/+]saidelike commentedon Nov 15, 2025
See usage of DockHandler in https://github.com/search?q=repo%3Abootleg%2Fret-sync%20DockHandler&type=code
saidelike commentedon Nov 15, 2025
Sorry for the delay. It looks like the patch for this should be easy to include.
This is adapted from https://github.com/jonpalmisc/screenshot_ninja/pull/4/files.
Generated with https://chatgpt.com/share/6918ed5e-8748-8007-b30d-d76e90e94abd
We might just want to test the version of BinaryNinja and special case using DockerHandler for old versions, if needed?
[-]BinaryNinja extension not compatible with BinaryNinja 4.3 due to deprecated DockHandler API[/-][+]BinaryNinja extension not compatible with BinaryNinja >= 4.3 due to deprecated DockHandler API[/+]