Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In some cases orca reads spaces instead of reading tabs. #104673

Closed
jvesouza opened this issue Aug 14, 2020 · 31 comments
Closed

In some cases orca reads spaces instead of reading tabs. #104673

jvesouza opened this issue Aug 14, 2020 · 31 comments
Assignees
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues chromium Issues and items related to Chromium important Issue identified as high-priority upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-fixed The underlying upstream issue has been fixed upstream-issue-linked This is an upstream issue that has been reported upstream
Milestone

Comments

@jvesouza
Copy link

Issue Type: Bug

This was previously reported on the orca list and appears to be related to the upgrade to electron 9.
Steps:

  1. Launch orca.
  2. turn on Speak indentation and justification in the tab speech of orca's preferences page.
  3. Open an empty file in VSCode.
  4. Press the tab and type this is a test.
  5. Press the enter key.
  6. Browse the text using up and down arrow.

Orca reads the text preceded by the number of leading spaces in the line, as expected.

  1. Convert the indentation to tabs.
  2. Browse the text using up and down arrow.

Orca should read the text preceded by the number of initial tabs in the line but instead it announces that there is a space at the beginning of the line.

On the orca list @joanie commented the following:

This commit fixes the problem -- though it's not a specific fix for
it: https://chromium.googlesource.com/chromium/src/+/e49659287. Not
sure if it should be cherry-picked into Electron 9 or not....

VS Code version: Code - Insiders 1.49.0-insider (bd08768, 2020-08-14T06:41:56.571Z)
OS version: Linux x64 5.7.12-arch1-1

System Info
Item Value
CPUs Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz (4 x 2786)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 0, 1, 1
Memory (System) 9.60GB (1.12GB free)
Process Argv -n --no-sandbox --crash-reporter-id 8d5a3738-d241-4b34-b208-057882a7b877
Screen Reader yes
VM 0%
DESKTOP_SESSION gnome-xorg
XDG_CURRENT_DESKTOP GNOME
XDG_SESSION_DESKTOP gnome-xorg
XDG_SESSION_TYPE x11
We have written the needed data into your clipboard because it was too large to send. Please paste.
@isidorn
Copy link
Contributor

isidorn commented Aug 17, 2020

@jvesouza thanks a lot for filling this.
So it seems like this is fixed in later versions of Chrome. And does not seem super critical that we cherry pick.
Though still leaving up the decision to @deepak1556 if the cherry-pick is low risk

@isidorn isidorn added accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream upstream-issue-fixed The underlying upstream issue has been fixed chromium Issues and items related to Chromium labels Aug 17, 2020
@lukaszgo1
Copy link

lukaszgo1 commented Aug 19, 2020

This can also be reproduced on Windows with NVDA using latest VS Code Insider version. I'm afrait I have to disagree with the statement from the commend above that it's not worth cherry picking a fix for this to the Electron version used by VSCode. When working on a code which uses tabs for indent and spaces for alignment it is imperative to be able to tell if I'm dealing with a tab or with a space.

@isidorn
Copy link
Contributor

isidorn commented Aug 20, 2020

@lukaszgo1 yes, we still plan to include this fix.
@deepak1556 let me know if I can help somehow

@deepak1556
Copy link
Contributor

This commit fixes the problem -- though it's not a specific fix for
it: https://chromium.googlesource.com/chromium/src/+/e49659287. Not
sure if it should be cherry-picked into Electron 9 or not....

The CL in question seems to be part of major refactor https://bugs.chromium.org/p/chromium/issues/detail?id=1049261 . I am hesitant to backport it without more confirmation on the stability of the CL, is it okay to just cherry-pick this commit ? The changes went in Chromium 85 and our current insiders is on 83, a CL of this magnitude usually involves a certain risk factor for backport, especially even more if its part of refactor. I lack the context on this accessibility codepath to begin backport.

@isidorn
Copy link
Contributor

isidorn commented Aug 21, 2020

@deepak1556 thanks for providing details. So if I understand Electron numbering correctly, this would be fixed in Electron 11.
I think it is fine to wait a couple of milestones for this, especially since users on Win and Mac do not seem to be hitting this in VS Code - at least nobody complained.

@deepak1556
Copy link
Contributor

deepak1556 commented Aug 21, 2020

This would be fixed in Electron 10 :) every electron version jumps over to 2 chromium versions.

Electron 9 - 83
Electron 10 - 85
Electron 11 - 87 and so on...

@isidorn
Copy link
Contributor

isidorn commented Aug 24, 2020

@deepak1556 thanks for getting my electron numbering right :)
Thus I have create a new label fixed-in-electron-10

@RDMurray
Copy link

I also have this issue on Windows using NVDA or Narrator.

@isidorn
Copy link
Contributor

isidorn commented Sep 16, 2020

@deepak1556 this seems to be a bigger issue than I originally thought, since more users are hitting this. Do we have some timeline on Electron 10 update? If it is far out do we have more details if it is just ok to cherry pick that larger fix? Thanks a lot.

@deepak1556
Copy link
Contributor

We plan to skip 10 and go for 11, and it won't hit stable anytime before November.

If it is far out do we have more details if it is just ok to cherry pick that larger fix?

I can give it a try, mostly OOF this week, will check back on this next week.

@deepak1556 deepak1556 added this to the September 2020 milestone Sep 16, 2020
@isidorn
Copy link
Contributor

isidorn commented Sep 16, 2020

Thanks a lot

@isidorn
Copy link
Contributor

isidorn commented Oct 1, 2020

@deepak1556 we should move this to October?

@pranavlal
Copy link

Hi all,
I am adding to the chorus of voices stating that this bug is prevalent on Windows too using NVDA. Is there any kind of workaround? I am on the insider build channel.
Is there any kind of temporary fix? I would prefer not to switch editors because my workflow would be significantly hampered if I had to do that.

@isidorn
Copy link
Contributor

isidorn commented Oct 19, 2020

@pranavlal unforutnelty there is no workaround now. We plan to fix this as part of the Electron update, I will also check with Deepak.

@LeonarddeR
Copy link

Sorry for opening the duplicate.
To be honest, I'm experiencing this as a pretty major issue. There's no reliable way to find out whether I'm indenting with tab or space, unless I copy stuff to another text editor.

@isidorn
Copy link
Contributor

isidorn commented Oct 20, 2020

Let's add important label to make it clear this is a big blocker for our screen reader users.

@isidorn isidorn added the important Issue identified as high-priority label Oct 20, 2020
@isidorn
Copy link
Contributor

isidorn commented Oct 26, 2020

We have decided to build an exploration build with a fix for this on the electron side as a workaround for this
Next milestone we plan to backport the fix to master so we have a full milestone to self host on the fix. Since the fix is not trivial. Thus moving this to November

@deepak1556 will provide a link to the exploration build once we have it

@isidorn isidorn modified the milestones: October 2020, November 2020 Oct 26, 2020
@deepak1556
Copy link
Contributor

Exploration builds:

Zip Archive
Deb
Snap
RPM

@jvesouza
Copy link
Author

Exploration builds:

Zip Archive
Deb
Snap
RPM

Please forgive my ignorance, but I have some questions regarding the exploration build.

  • Is the generation done every day or every night?
  • Does the generation incorporate the corrections made in the master branch?
  • If I find any problem/bug can I report normally?

Thanks.

@alex19EP

This comment has been minimized.

@deepak1556
Copy link
Contributor

Is the generation done every day or every night?

Yes current exploration branch tracks master, there is a scheduled build every day.

If I find any problem/bug can I report normally?

Yup you can follow the usual issue reporting flow.

@alex19EP
Copy link

@deepak1556 then I was wrong in my conclusions. Is there any detailed documentation about exploration builds?

@jvesouza
Copy link
Author

I confirmm that the reported problem seems to be fixed in this build.

Also the bug #93056 seems to be fixed.

@deepak1556
Copy link
Contributor

@alex19EP nope there isn't one.

@jvesouza thanks for confirming!

@jvesouza
Copy link
Author

This also fix bug #108857

@jvesouza
Copy link
Author

The version I'm using from build explorations seems to be causing some crash in orca.
After I start code-exploration orca stays mute and I need to restart orca.

@jvesouza
Copy link
Author

Just to check if I'm not doing something wrong:
Today I downloaded the build exploration and according to the about dialog, the version was generated on October 22, commit 1dfc92e.

Is there a newer version?

@isidorn
Copy link
Contributor

isidorn commented Oct 30, 2020

I see a newer version from 7 hours ago that seems realesed. Though @deepak1556 would know better.

@deepak1556
Copy link
Contributor

yeah the link points to a older version, you can just check for updates under the gear icon and it should update to the latest released a few hours back. I don't plan on updating the above link as the app will update anyways once you download it :)

@jvesouza
Copy link
Author

@deepak1556 Thanks for the clarification, but I'm probably still doing something wrong.
When I try to update from code-exploration I am redirected to the following url:
https://code.visualstudio.com/insiders/

@isidorn
Copy link
Contributor

isidorn commented Dec 1, 2020

Moving this to next milestone since then we plan to ship Electron 11 as part of Stable.

@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
accessibility Keyboard, mouse, ARIA, vision, screen readers (non-specific) issues chromium Issues and items related to Chromium important Issue identified as high-priority upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-fixed The underlying upstream issue has been fixed upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

9 participants