Repository navigation
Closed
Labels
bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiesverification-foundIssue verification failedverifiedVerification succeededwebviewWebview issues
Milestone
Description
Issue Type: Bug
When having Python interactive window open and try to switch to that group (normally with Cmd + 2), the cursor will disappear instead of going to the "command line" (the space to write commands). Then when trying to go back to editor with Cmd + 1, this won't work again so I need to use the mouse to click where I want to go. This is happening since the last update. It's important to mention that this problem is exclusive for Python Interactive. When using editors, it works fine.
VS Code version: Code 1.45.1 (5763d90, 2020-05-14T08:33:47.663Z)
OS version: Darwin x64 19.4.0
System Info
| Item | Value |
|---|---|
| CPUs | Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz (4 x 2700) |
| GPU Status | 2d_canvas: enabled flash_3d: enabled flash_stage3d: enabled flash_stage3d_baseline: enabled gpu_compositing: enabled metal: disabled_off multiple_raster_threads: enabled_on oop_rasterization: disabled_off protected_video_decode: unavailable_off rasterization: enabled skia_renderer: disabled_off_ok video_decode: enabled viz_display_compositor: enabled_on viz_hit_test_surface_layer: disabled_off_ok webgl: enabled webgl2: enabled |
| Load (avg) | 1, 2, 2 |
| Memory (System) | 8.00GB (1.19GB free) |
| Process Argv | . |
| Screen Reader | no |
| VM | 0% |
Extensions (2)
| Extension | Author (truncated) | Version |
|---|---|---|
| python | ms- | 2020.5.78807 |
| vim | vsc | 1.14.3 |
Reacted by Jim Devine
Reacted by Cornelius Roemer, Nayef Ahmad, Paige Bailey, Lumin and Tutui-Ton
Reacted by Dae, Sheheryar Zaidi and jetpackguy
Metadata
Metadata
Assignees
Labels
bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiesverification-foundIssue verification failedverifiedVerification succeededwebviewWebview issues
Activity
bpasero commentedon May 18, 2020
Sounds like a
webviewissue to me. Maybe caused by extension, not sure.antonioriverov commentedon May 24, 2020
I'm not sure. I disabled the extensions but this kept happening. I had to go back to version 1.44.2 for it to work again.
joyceerhl commentedon Jun 2, 2020
Hi Matt Bierner (@mjbvz) 👋 I work on the Python extension data science team. We've had multiple users report this issue on our repo: #11808 and #12088.
This bug does not manifest with 1.44.2 and the latest release of our Python extension (2020.5.80290). In ^1.45, it appears that our webview within the panel doesn't receive focus when the user switches to a group containing it using the Ctrl+1/2 keyboard shortcut. Specifically,
focusfires when the user directly clicks on the webview, but not with the keyboard shortcuts.Would you happen to have an idea of when / how this can be fixed, and any workarounds we can use in the interim to ensure our webview receives focus with keyboard shortcuts?
mjbvz commentedon Jun 2, 2020
Joyce Er (@joyceerhl) Are any other keyboard shortcut not working?
joyceerhl commentedon Jun 2, 2020
I've only been testing switching groups since that's what users reported an issue with, so just Ctrl+1/2/3 etc. Sorry if my original comment was ambiguous!
mjbvz commentedon Jun 2, 2020
This is a lower priority issue since those keyboard short cuts are not super heavily used.
It sounds like the core of https://github.com/microsoft/vscode-python/issues/11808 is that focus is not restored once the interactive window is refocused. I can repo this just by clicking away from the python interactive window and then clicking on the interactive window tab. I believe that needs to be fixed in the interactive window's implementation
28 remaining items
rchiodo commentedon Jan 28, 2021
Yeah we have the same inconsistency in the jupyter extension. I can't repro the problem anymore myself.
dynamicwebpaige commentedon Mar 15, 2021
It sounds like this bug makes working in Python interactive mode on remote infrastructure, using only a keyboard, impossible. Is that a correct assumption?
rchiodo commentedon Mar 15, 2021
Paige Bailey (@dynamicwebpaige) impossible might be too strong a word, but it's certainly harder. When it doesn't work, you'll sometimes end up with focus elsewhere. You can then tab or hit CTRL+1 again to try a second time.
mjbvz commentedon Oct 20, 2021
The interactive window now is built into VS Code instead of being a webview, so this issue should no longer happen for it
However I also tested this on Mac and Windows using a simple textarea inside a webview. On Mac, both cmd+# and ctrl+# work for me. On windows: ctrl+# and alt+# are also working for me
If you are still seeing this issue in any webview, please let me know specifically what type of webview you have opened and where you are focused when trying to trigger the shortcuts