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
Using Visual Studio Code where this behavior was discovered:
Override the event_gainFocus event with custom code,
Create a textInfo object with position selection,
Collapse and expand it to unit line,
Create a test condition that checks if line start offsets are teh same after code completion is inserted,
If they are the same call: speech.cancelSpeech()
Actual behavior:
Speech gets canceled, but after some delay. First character or 2 are read from teh line where start offsets have evaluated to be the same. Then reading the rest of the line is skipped.
When calling: speech.speakText() or speech.speakTextInfo() with properly expanded character offset to make sure that we fall on an empty charactr does not help. The begginging of the line as described gets announced.
Expected behavior:
Speech should be canceled and optionally the desired character should be announced or nothing when for example using the call to: speech.speakTextInfo() with suppressBlanks=True.
System configuration
A laptop/desktop with 4 core CPU and 16GB of RAM.
NVDA installed/portable/running from source:
NVDA is isntalled.
NVDA version:
Version 2020.3.
Windows version:
Windows 64-bit 10.0.19042
Name and version of other software in use when reproducing the issue:
Visual Studio Code (Stable = 1.51.1 / Insider 1.52 build as of 2020-12-01)
Other information about your system:
Logging speech category provides the following information:
There are no errors when getting the selection offsets,
NVDA detects caret changes using bookmarks,
Speech manager seems to clear teh speech sequence queue before the focus event gets fired on the textarea control,
The following log fragment might be helpful:
IO - speech.speak (15:25:39.132) - MainThread (8236):
Speaking ['\x00', (It is an empty character for a role I want to be silent.)
CancellableSpeech (still valid devInfo(
isCanceledCache: False, (What does it mean?)
isValidCallback: True, (What does it mean?)
isValidCallbackDevInfo: ), (Seems to have no value.)
' IDBFactory.apply.arguments\n'] (The line from the editor.)
Other questions
Does the issue still occur after restarting your computer?
Yes and after restarting NVDA or reloading the add-ons.
Have you tried any other versions of NVDA? If so, please report their behaviors.
Yes - version 2020.2 and the issue is the same.
If addons are disabled, is your problem still occuring?
The problem is related to the code in an add-on, which is ment to eliminate reading the contents of the line when the caret or selection is in teh same line. It is the situation when the user gets code completion suggestions that get inserted by the IDE.
Did you try to run the COM registry fixing tool in NVDA menu / tools?
Yes and the behavior is the same.
The text was updated successfully, but these errors were encountered:
After browsing through NVDA sources for I could not find any other way or source of information I tried the following:
announceEntireNewLine = False on the class that inherited from the Editor class in IA2Web or editors in the behavior module and as a last option just a plaine EditableText.
I tried the options isted above one by one without mixing the classes.
Unfortunately the behavior is still the same... After completing the item the first character or 2 ar briefly read and after that speech is canceled.
I'm still looking for ways to solve it so any hints will be appreciated.
Steps to reproduce:
Using Visual Studio Code where this behavior was discovered:
Actual behavior:
Speech gets canceled, but after some delay. First character or 2 are read from teh line where start offsets have evaluated to be the same. Then reading the rest of the line is skipped.
When calling: speech.speakText() or speech.speakTextInfo() with properly expanded character offset to make sure that we fall on an empty charactr does not help. The begginging of the line as described gets announced.
Expected behavior:
Speech should be canceled and optionally the desired character should be announced or nothing when for example using the call to: speech.speakTextInfo() with suppressBlanks=True.
System configuration
A laptop/desktop with 4 core CPU and 16GB of RAM.
NVDA installed/portable/running from source:
NVDA is isntalled.
NVDA version:
Version 2020.3.
Windows version:
Windows 64-bit 10.0.19042
Name and version of other software in use when reproducing the issue:
Visual Studio Code (Stable = 1.51.1 / Insider 1.52 build as of 2020-12-01)
Other information about your system:
Logging speech category provides the following information:
IO - speech.speak (15:25:39.132) - MainThread (8236):
Speaking ['\x00', (It is an empty character for a role I want to be silent.)
CancellableSpeech (still valid devInfo(
isCanceledCache: False, (What does it mean?)
isValidCallback: True, (What does it mean?)
isValidCallbackDevInfo: ), (Seems to have no value.)
' IDBFactory.apply.arguments\n'] (The line from the editor.)
Other questions
Does the issue still occur after restarting your computer?
Yes and after restarting NVDA or reloading the add-ons.
Have you tried any other versions of NVDA? If so, please report their behaviors.
Yes - version 2020.2 and the issue is the same.
If addons are disabled, is your problem still occuring?
The problem is related to the code in an add-on, which is ment to eliminate reading the contents of the line when the caret or selection is in teh same line. It is the situation when the user gets code completion suggestions that get inserted by the IDE.
Did you try to run the COM registry fixing tool in NVDA menu / tools?
Yes and the behavior is the same.
The text was updated successfully, but these errors were encountered: