DeepNote crashes when deleting a code cell
Closed this issue · 6 comments
What's the sequence of steps to reproduce?
I haven't had time to test, but I suspect we might need something like this at the top of createInlineCompletionItem()
:
if (editor?.getModel()?.isDisposed) {
return undefined;
}
@pqn
Thanks for your suggestions. However, it doesn't work. I guess it is not actually relevant to createInlineCompletionItem
or other components in Codeium extension. After looking into the JS files provided in the console, I strongly suspect it is because DeepNote invokes some dispose functions after deleting a cell, which includes some obvious React code (as there is almost no React dependency in Codeium extension itself). Maybe some code injected by Codeium makes the Monaco dispose once and Deepnote forces it to dispose again. Just my guess, I'm not very familiar with the front-end tech or Codeium.
I'm not able to reproduce this unfortunately. Does it happen reliably for you?
Seems fixed now, maybe patched by DeepNote.