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

Notebook incorrectly shows as empty after renaming #5511

Open
seeM opened this issue Nov 26, 2024 · 0 comments
Open

Notebook incorrectly shows as empty after renaming #5511

seeM opened this issue Nov 26, 2024 · 0 comments
Labels
area: notebooks Issues related to Notebooks category. bug Something isn't working theme: notebooks 2.0

Comments

@seeM
Copy link
Contributor

seeM commented Nov 26, 2024

Using the Positron Notebook UI in a dev build, after renaming a notebook and opening the newly named version it shows as empty, despite previously having cells with outputs:

Image

Closing and opening the notebook again doesn't fix it.

Restarting Positron fixes it.

Console logs
 INFO Positron Notebook | Input(positron-notebook-4) | constructor
log.ts:423  INFO positron-notebook-1 detachView
log.ts:423  INFO positron-notebook-1 detachModel
log.ts:433  WARN Editor ID Mismatch: workbench.editor.positronNotebook !== jupyter-notebook. This will cause bugs. Please ensure editorInput.editorId matches the registered id
log.ts:423  INFO Positron Notebook | Editor(0) | clearInput
log.ts:423  INFO Positron Notebook | Editor(0) | disposeReactRenderer
log.ts:423  INFO Positron Notebook | Editor(0) | setInput
log.ts:423  INFO Positron Notebook | Input(positron-notebook-4) | resolve
log.ts:423  INFO Positron Notebook | Editor(0) | renderReact
contextKeyService.ts:446 Element already has context attribute: positron-notebook-container
ScopedContextKeyService @ contextKeyService.ts:446
createScoped @ contextKeyService.ts:307
_renderReact @ PositronNotebookEditor.tsx:450
setInput @ PositronNotebookEditor.tsx:316
await in setInput (async)
doSetInput @ editorPanes.ts:434
doOpenEditor @ editorPanes.ts:254
openEditor @ editorPanes.ts:131
(anonymous) @ editorGroupView.ts:1340
doShowEditor @ editorGroupView.ts:1364
doOpenEditor @ editorGroupView.ts:1322
openEditor @ editorGroupView.ts:1226
openEditor @ editorService.ts:573
await in openEditor (async)
(anonymous) @ explorerView.ts:526
_deliver @ event.ts:1242
fire @ event.ts:1273
_open @ listService.ts:778
onPointer @ listService.ts:749
(anonymous) @ listService.ts:705
_deliver @ event.ts:1242
fire @ event.ts:1273
(anonymous) @ event.ts:136
_deliver @ event.ts:1242
fire @ event.ts:1273
(anonymous) @ event.ts:136
_deliver @ event.ts:1242
fire @ event.ts:1273
onViewPointer @ listWidget.ts:784
onViewPointer @ abstractTree.ts:2310
(anonymous) @ event.ts:187
_deliver @ event.ts:1242
fire @ event.ts:1273
(anonymous) @ event.ts:136
_deliver @ event.ts:1242
fire @ event.ts:1273
fn @ event.ts:40
log.ts:423  INFO Positron Notebook | Editor(0) | getViewModel
log.ts:423  INFO positron-notebook-1 Generating new notebook options
log.ts:423  INFO positron-notebook-1 detachView
log.ts:423  INFO positron-notebook-1 detachModel
contextKeyService.ts:446 Element already has context attribute: positron-notebook-container
ScopedContextKeyService @ contextKeyService.ts:446
createScoped @ contextKeyService.ts:307
setContainer @ ContextKeysManager.ts:45
attachView @ PositronNotebookInstance.ts:456
setInput @ PositronNotebookEditor.tsx:320
await in setInput (async)
doSetInput @ editorPanes.ts:434
doOpenEditor @ editorPanes.ts:254
openEditor @ editorPanes.ts:131
(anonymous) @ editorGroupView.ts:1340
doShowEditor @ editorGroupView.ts:1364
doOpenEditor @ editorGroupView.ts:1322
openEditor @ editorGroupView.ts:1226
openEditor @ editorService.ts:573
await in openEditor (async)
(anonymous) @ explorerView.ts:526
_deliver @ event.ts:1242
fire @ event.ts:1273
_open @ listService.ts:778
onPointer @ listService.ts:749
(anonymous) @ listService.ts:705
_deliver @ event.ts:1242
fire @ event.ts:1273
(anonymous) @ event.ts:136
_deliver @ event.ts:1242
fire @ event.ts:1273
(anonymous) @ event.ts:136
_deliver @ event.ts:1242
fire @ event.ts:1273
onViewPointer @ listWidget.ts:784
onViewPointer @ abstractTree.ts:2310
(anonymous) @ event.ts:187
_deliver @ event.ts:1242
fire @ event.ts:1273
(anonymous) @ event.ts:136
_deliver @ event.ts:1242
fire @ event.ts:1273
fn @ event.ts:40
log.ts:423  INFO positron-notebook-1 attachView
3log.ts:413 DEBUG Comments: URIs of continue on comments to add to storage .
log.ts:413 DEBUG Comments: URIs of continue on comments to add to storage .
log.ts:413 DEBUG Comments: URIs of continue on comments to add to storage .
@seeM seeM added area: notebooks Issues related to Notebooks category. bug Something isn't working theme: notebooks 2.0 labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: notebooks Issues related to Notebooks category. bug Something isn't working theme: notebooks 2.0
Projects
None yet
Development

No branches or pull requests

1 participant