microsoft / vscode-jupyter

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

Cell randomly losing focus, view jumping (reopening #12863) #15797

Closed thobitz closed 1 month ago

thobitz commented 2 months ago

Environment data

Expected behaviour

Uninterrupted editing of Notebooks

Actual behaviour

Whenever an autosave occurs or whenever the notebook is saved with Ctrl-S, the current cell loses focus and the notebook scrolls to a random place. This makes VSC more or less unusable.

During the save, the "Problems" box is updated. The location to which the notebook scrolls often (but not always) seems to be related to the position of the errors displayed in the Problems box.

The issue has been described comprehensively in bug report 12863, but was auto-closed without resolution.

Unfortunately I cannot access Github or upload any files from my work laptop where the issue occurs. I cannot reproduce the issue on my personal laptop, despite running the same versions of VSC, Jupyter, Python and Pylance.

Steps to reproduce:

See above. The issue has been described comprehensively in 12863.

ricardorodl commented 1 month ago

Following. Same issue here.

amunger commented 1 month ago

closing in favor of https://github.com/microsoft/vscode-jupyter/issues/12863 since that has videos that show the issue

DavidMorton commented 3 weeks ago

@amunger Though this is closed, #12863 is marked as resolved, and so I can't comment. I just want to chime in and say that this has started happening to me this year. At first, it was only on VSCode in the cloud, when launching from AML, so I switched to using VSCode with the remote extension, and that worked for a while. Now it's happening again. Do you know of any workaround currently? It's driving me nuts and really breaking the flow

thobitz commented 3 weeks ago

Currently my workaround is to disable Autosave. Which obviously isn’t a solution – but at least I can use Jupyter NBs for demos and tests now and then.

From: David Morton @.> Sent: Wednesday, August 14, 2024 10:00 PM To: microsoft/vscode-jupyter @.> Cc: thobitz @.>; Author @.> Subject: Re: [microsoft/vscode-jupyter] Cell randomly losing focus, view jumping (reopening #12863) (Issue #15797)

@amunger https://github.com/amunger Though this is closed, #12863 https://github.com/microsoft/vscode-jupyter/issues/12863 is marked as resolved, and so I can't comment. I just want to chime in and say that this has started happening to me this year. At first, it was only on VSCode in the cloud, when launching from AML, so I switched to using VSCode with the remote extension, and that worked for a while. Now it's happening again. Do you know of any workaround currently? It's driving me nuts and really breaking the flow

— Reply to this email directly, view it on GitHub https://github.com/microsoft/vscode-jupyter/issues/15797#issuecomment-2289873374 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AEOFVG32UKOSBPXVS5KRPPTZRPAMLAVCNFSM6AAAAABJ4KHHTGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOBZHA3TGMZXGQ . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AEOFVG3UXLMCAMZW7CBMWCDZRPAMLA5CNFSM6AAAAABJ4KHHTGWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUIPSY54.gif Message ID: @. @.> >

amunger commented 3 weeks ago

oh, sorry, didn't realize the conversation was still locked, I've unlocked https://github.com/microsoft/vscode-jupyter/issues/12863