microsoft / vscode-jupyter

VS Code Jupyter extension
https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
MIT License
1.25k stars 274 forks source link

CTRL+A randomly breaks in Jupyter notebooks #15749

Open umarbutler opened 3 weeks ago

umarbutler commented 3 weeks ago

Sometimes, while using a Python jupyter notebook, my CTRL+A will randomly stop working. I won't be able to select all text in a code block. I will be able to CTRL+A in the output and actually, sometimes, doing that AND pasting it a code block with then 'free' CTRL+A, but sometimes it won't and the only way out is to close my notebook and open it again which is really quite disruptive and annoying since I have to run everything again.

This bug started maybe 1-2 months ago now.

My build is:

Version: 1.90.0 (user setup)
Commit: 89de5a8d4d6205e5b11647eb6a74844ca23d2573
Date: 2024-06-04T19:33:54.889Z
Electron: 29.4.0
ElectronBuildId: 9593362
Chromium: 122.0.6261.156
Node.js: 20.9.0
V8: 12.2.281.27-electron.0
OS: Windows_NT x64 10.0.22621

My Jupyter version is v2024.5.0.

kheuton commented 3 weeks ago

Thought it was just me! I have the same problem. The only thing I could imagine is that another extension is taking over the Ctrl-A shortcut but that doesn't explain why is intermittent

DonJayamanne commented 3 weeks ago

@umarbutler @kheuton Is CTRL+A not working in the text editor (cells) or in the outputs? Please can you share a screen recording as well.

umarbutler commented 3 weeks ago

@umarbutler @kheuton Is CTRL+A not working in the text editor (cells) or in the outputs?

For me, it doesn’t work in the cells but it does work in the outputs.

As I mentioned earlier, sometimes, if I try doing CTRL+A in an output and copy the result into a cell, I will then be able to use CTRL+A again. Most of the time, however, that isn’t the case.

Please can you share a screen recording as well.

I’m not able to share a screen recording as the bug seems to happen randomly and I would prefer not to share private code.

leandervaneekelen commented 3 weeks ago

Hi there, suffering from the same issue.

zhong-yy commented 1 week ago

Suffering from the same problem.

Jupyter extentsion version: v2024.5.0 vscode version: 1.90.1

selewaut commented 22 hours ago

Hey there, suffering same issue myself. Randomly selecting all text with Ctrl + A inside cells breaks. Reloading window or closing and reopening app usually fixes problem.

Extensions installed are these: bierner.markdown-mermaid@1.23.1 github.copilot@1.208.0 github.copilot-chat@0.16.1 mechatroner.rainbow-csv@3.12.0 ms-python.black-formatter@2024.2.0 ms-python.debugpy@2024.6.0 ms-python.python@2024.8.1 ms-python.vscode-pylance@2024.6.1 ms-toolsai.jupyter@2024.5.0 ms-toolsai.jupyter-keymap@1.1.2 ms-toolsai.jupyter-renderers@1.0.18 ms-toolsai.vscode-jupyter-cell-tags@0.1.9 ms-toolsai.vscode-jupyter-slideshow@0.1.6

VSCODE version : 1.90.2 OS: Windows 22621.3737

umarbutler commented 21 hours ago

This bug is really disruptive to workflows as it can require you to frequently exit Jupyter notebooks and lose all of your saved states which may have taken hours to acquire.