Repository navigation
wxGUI: Share watchdog Observer to fix FSEvents RuntimeError - #7677
Conversation
|
Have you figured out why this is even necessary? It would be good to understand the source of the problem. Could you please confirm you tested it? |
Yes, I tested it before creating the PR, and it does fixes the issue.
From what I was able to understand, Originally self._mapset_watchdog = MapsetWatchdog(
elements_dirs=(("raster", "cell"),),When the Data Catalog (DataCatalogTree) was added alongside On Windows/Linux, It allows two separate observers in the same process to watch the same directory independently without error. |
Fixes #7652
Cannot add watch ... - it is already scheduledon macOS by replacing per-instance Observer objects with a single class-level _shared_observer across MapsetWatchdog instances.weakref.WeakSetinstance tracking (_instances) soScheduleWatchCurrentMapset()can schedule event handlers for all active GUI components.I have used Claude for this.