Skip to content

Fix braille dimension warnings in NVDA 2026.2 - #84

Closed
kazek5p-git wants to merge 2 commits into
nvda-es:teleNVDAfrom
kazek5p-git:fix-nvda-2026-2-braille-dimensions
Closed

Fix braille dimension warnings in NVDA 2026.2#84
kazek5p-git wants to merge 2 commits into
nvda-es:teleNVDAfrom
kazek5p-git:fix-nvda-2026-2-braille-dimensions

Conversation

@kazek5p-git

@kazek5p-git kazek5p-git commented Aug 8, 2026

Copy link
Copy Markdown

Description

In NVDA 2026.2, braille.DisplayDimensions is deprecated and each use logs a warning with a full traceback. When a remote control connection is established, the TeleNVDA callback is invoked repeatedly, causing the log to grow rapidly and temporarily blocking NVDA's main thread.

Change

The callback now imports DisplayDimensions from braille.display, the current NVDA API. Behavior is unchanged; the callback is registered only for NVDA 2025 and newer.

Verification

  • python -m py_compile addon/globalPlugins/remoteClient/local_machine.py
  • git diff --check

@kazek5p-git
kazek5p-git force-pushed the fix-nvda-2026-2-braille-dimensions branch from f3c2685 to 8592316 Compare August 8, 2026 17:47
@kazek5p-git kazek5p-git changed the title Napraw ostrzeżenia brajla w NVDA 2026.2 Fix braille dimension warnings in NVDA 2026.2 Aug 8, 2026
@jmdaweb

jmdaweb commented Aug 8, 2026

Copy link
Copy Markdown
Member

In NVDA 2026.2, there is no braille.display module. There are no deprecation warnings printed to the log, and main thread is not blocked. In addition, this change does not ensure backwards compatibility between 2025.x and 2026.2, where braille.DisplayDimensions is expected and is also the recommended method. If this pr is merged, it introduces bugs and may break the add-on. Described testing procedure is completely useless. If you want to continue using artificial intelligence, please don't contribute to this project. AI pull requests without an expert developer behind aren't welcome here.

@jmdaweb jmdaweb closed this Aug 8, 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.

2 participants