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

Markdown doesn't get updated unless I click 'Insert cell below' #2309

Closed
GayatriChandran opened this issue Feb 12, 2020 · 8 comments
Closed

Comments

@GayatriChandran
Copy link

Steps to cause the bug to occur

  1. Open a Jupyter notebook
  2. Insert 2 or 3 cells in advance.
  3. Type text in the first cell and assign it as Markdown (by clicking the 'M' sign on the top-left corner of the cell).
  4. Type in the next cell.

Actual behavior

The text in the first cell does not get auto-saved.

Expected behavior

The content in the first cell should get auto-saved.

The work-around which I'm using now :

After typing text in a cell, I click the '+' button or 'Insert cell below' (which works only if it's clicked twice) and that somehow saves the Markdown content that I just typed.

markdown_bug

Jupyter environment

  • Jupyter server running: Local
  • Extension version: 2020.2.62710
  • VS Code version: 1.41.1
  • Python version: 3.7.3 64-bit
  • OS: Windows_NT x64 10.0.14393
  • Virtual environment: conda
@rchiodo
Copy link
Contributor

rchiodo commented Feb 12, 2020

I'm not reproing this. Let me make sure I'm following the same steps though:

  1. Open notebook
  2. Insert cells at the top of the notebook
  3. Type in text in first cell
  4. Change to markdown
  5. Type in text in second cell
  6. Change to markdown
  7. Type in text in third cell

First two cells should lose text typed in?
markdownedit

@GayatriChandran
Copy link
Author

The steps you followed are correct, and it seems to be working as expected in your case. When I do the same thing, it doesn't get saved, unless I insert a cell below after entering text.

@rchiodo
Copy link
Contributor

rchiodo commented Feb 12, 2020

If you can repro it consistently, can you capture a console log for me? This one would be the console log for the editor. You get to this by running the command 'Developer: Open Webview Developer Tools', then click on the console tab, right click, save as, and upload here.

Thanks.

@DonJayamanne
Copy link
Contributor

@Ikru488 Do you have auto save turned on?

@GayatriChandran
Copy link
Author

GayatriChandran commented Feb 13, 2020

The not-getting-saved problem got resolved when I reinstalled the python extension. It still acts funny though, I can't delete the text in a markdown cell, only modify it, or delete the cell.
Anyhow, here's the console log, hope this helps :
console-1581595192746.txt
No, I don't have auto save turned on.

@rchiodo
Copy link
Contributor

rchiodo commented Feb 13, 2020

Not sure what you mean by you can't delete text? The backspace key doesn't work?

@GayatriChandran
Copy link
Author

I mean that deleted text reappears. Like this :
deletion_bug

@rchiodo
Copy link
Contributor

rchiodo commented Feb 14, 2020

Oh okay. That makes more sense. That should be addressed by this issue here:
https://github.com/microsoft/vscode-python/issues/8589

@rchiodo rchiodo closed this as completed Feb 14, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Feb 21, 2020
@microsoft microsoft unlocked this conversation Nov 13, 2020
@DonJayamanne DonJayamanne transferred this issue from microsoft/vscode-python Nov 13, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants