Exafunction/codeium-chrome

DeepNote crashes when deleting a code cell

Closed this issue · 6 comments

pqn commented

What's the sequence of steps to reproduce?

  1. create a code cell
  2. type something
  3. press backspace until there is no content
  4. press backspace once more

A brief demo:
deepnote-demo

pqn commented

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.

pqn commented

I'm not able to reproduce this unfortunately. Does it happen reliably for you?

Seems fixed now, maybe patched by DeepNote.