Skip to content

Notebook formatting randomly replaced the initial line of all cells for the same code thing and I lost hours of work #131009

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

Closed
romanovzky opened this issue Aug 17, 2021 · 6 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) important Issue identified as high-priority notebook notebook-cell-editor Bugs related to code editors in Notebooks (not intellisense / LS's)
Milestone

Comments

@romanovzky
Copy link

Does this issue occur when all extensions are disabled?: I don't know and I don't want to find out

Version: 1.59.0
Commit: 379476f
Date: 2021-08-04T23:13:20.182Z
Electron: 13.1.7
Chrome: 91.0.4472.124
Node.js: 14.16.0
V8: 9.1.269.36-electron.0
OS: Linux x64 5.10.56-1-MANJARO

Steps to Reproduce:

Not sure and I'm not trying to find out.

What happened:

I was working on a notebook for a few hours. The code was getting messy to read so I ran Notebook: Format Notebook. The results couldn't be more frustrating: all the cells first line was replaced by a seemingly random bit of code (maybe something I had in the clipboard?). Since the code format saves the notebook, and for some reason ctrl-z did not revert the cells to the previous state, I lost hours of work as I now have to remember which piece of code was in the first line in every single cell.

In addition to all the regressions added with the new version, I'm going to go back to jupyter lab/notebook for now as working on notebooks with Code has become painfully counter-productive. It does feel like I'm using a nightly or dev build.

@rebornix
Copy link
Member

rebornix commented Aug 17, 2021

Sorry to hear that. Can you please confirm what you are seeing is the same as microsoft/vscode-python#16980 ? Thanks in advance!

@rebornix rebornix added the info-needed Issue requires more information from poster label Aug 17, 2021
@romanovzky
Copy link
Author

Yes, it seems exactly that. Sorry for my previous tone of voice, it was just very very frustrating at the time. Let me know if there is more information that I can provide.

One thing that I noticed, but I'm not sure if it was related, was a vscode popup notification (those that appear on the bottom right) with the error sign saying could not load model, but again I'm not sure if this is related.

@rebornix
Copy link
Member

@romanovzky thanks for your help, you have already been pretty helpful. We will look into a fix and see how soon we can get it released.

@rebornix rebornix added notebook bug Issue identified by VS Code Team member as probable bug important Issue identified as high-priority labels Aug 18, 2021
@rebornix rebornix removed the info-needed Issue requires more information from poster label Sep 2, 2021
@rebornix rebornix reopened this Sep 2, 2021
@greazer greazer added this to the October 2021 milestone Oct 5, 2021
@tanhakabir tanhakabir added the notebook-cell-editor Bugs related to code editors in Notebooks (not intellisense / LS's) label Oct 5, 2021
@greazer
Copy link
Member

greazer commented Oct 12, 2021

This is a dupe of #130719. It will be fixed in the next recovery build of the Python extension for VS Code.

@greazer greazer closed this as completed Oct 12, 2021
@greazer greazer added the *duplicate Issue identified as a duplicate of another issue(s) label Oct 20, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Nov 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) important Issue identified as high-priority notebook notebook-cell-editor Bugs related to code editors in Notebooks (not intellisense / LS's)
Projects
None yet
Development

No branches or pull requests

5 participants
@rebornix @romanovzky @greazer @tanhakabir and others