nvda icon indicating copy to clipboard operation
nvda copied to clipboard

Visual Studio: Line numbering related errors

Open RudolfWeeber opened this issue 6 years ago • 5 comments

  • Line numbers are brailled 3x on empty lines
  • Cursor routing keys are off by n characters, where n = number of digits in the line number +1

Steps to reproduce:

  • In visual Studio 2019, enable line numbering (tools->options->editor->all langauges->[X] line numbering).
  • Open a text file in the editor

Actual behavior:

  • Placing the cursor on an empty lines, the line number is brailled 3x rather than 1x.
  • Pressing a routing key places the cursor too far to the right (1 char per line number digit + 1 for the space before the actual code begins)

Expected behavior:

Braille line numbers only once, on routing key press, cursor lands at the letter under the routing key

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

2019.2rc

Windows version:

Win10

Name and version of other software in use when reproducing the issue:

Visual Studio 2019.2 (community edition)

Other information about your system:

Other questions

Does the issue still occur after restarting your PC?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

The 3x-brailling of the line numbers was also present in 2019.1. Did not check the routing keys, there

RudolfWeeber avatar Aug 03 '19 12:08 RudolfWeeber

NVDA now uses UIA to read the contents of the code editor. I think we should make it possible to use the object model based TextInfo instead.

LeonarddeR avatar Sep 19 '19 06:09 LeonarddeR

@leonardder have been any changes to this behavior since your last comment?

Adriani90 avatar Dec 08 '20 21:12 Adriani90

yeah the behavior is still the same, the strange thing is, that the speech is not recieving the thribble line numbers, only the braille display is showing it. The textinfo is also showing only one line number.

christopherpross avatar Apr 13 '21 17:04 christopherpross

@christopherpross, @RudolfWeeber are you still having this issue with NVDA 2024.2 and Visual Studio 2022 last update?

Adriani90 avatar Jun 28 '24 21:06 Adriani90

@Adriani90
I cannot check that, because my braille display is broken right now. I could give you feedback in the next week, but think the bug is not fixed.

christopherpross avatar Jun 28 '24 22:06 christopherpross

@Adriani90 I can not longer reproduce this issue. If linenumbers are activated in visual studio 2022, the linenumbers are not read or printed in braille unless the option in nvda is activated. If this is the case, the linenumbers are correctly on the brailledisplay.

christopherpross avatar Jul 17 '24 07:07 christopherpross

Thanks for the update, closing as works for me.

Adriani90 avatar Jul 17 '24 07:07 Adriani90

This was apparently fixed in ef31b1d560

LeonarddeR avatar Jul 17 '24 07:07 LeonarddeR