You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.When opening an ipynb file in using the Python extension and VS COde Notebooks API, windows user always gets an error
2.Below is the error log. Opening the file again works.
3. Unable to repro on Mac (3 users), but always reproducible on Windows.
Log
```
[Yesterday 11:02 AM] Jim Griesmer
To be clearer: console.ts:137 [Extension Host] (node:148856) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (at writeOut (internal/process/warning.js:27:3))t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
notificationsAlerts.ts:40 Unable to open 'RunByLine.ipynb': Cannot open notebook of type 'jupyter-notebook'.
onDidChangeNotification @ notificationsAlerts.ts:40
(anonymous) @ notificationsAlerts.ts:26
fire @ event.ts:587
addNotification @ notifications.ts:207
notify @ notificationService.ts:106
doHandleOpenEditorError @ editorGroupView.ts:1056
(anonymous) @ editorGroupView.ts:984
processTicksAndRejections @ internal/process/task_queues.js:85
async function (async)
(anonymous) @ editorGroupView.ts:973
doShowEditor @ editorGroupView.ts:971
doOpenEditor @ editorGroupView.ts:954
openEditor @ editorGroupView.ts:882
openEditor @ editorService.ts:530
onEditorOpening @ notebook.contribution.ts:327
open @ notebook.contribution.ts:160
onGroupWillOpenEditor @ editorService.ts:509
(anonymous) @ editorService.ts:165
fire @ event.ts:587
openEditor @ editorGroupView.ts:875
(anonymous) @ editorService.ts:1299
(anonymous) @ explorerViewlet.ts:218
openEditor @ editorService.ts:1298
(anonymous) @ explorerView.ts:429
fire @ event.ts:587
open @ listService.ts:542
onSelection @ listService.ts:537
(anonymous) @ listService.ts:498
fire @ event.ts:587
(anonymous) @ event.ts:56
(anonymous) @ event.ts:810
fire @ event.ts:587
_set @ abstractTree.ts:1020
set @ abstractTree.ts:1010
setSelection @ abstractTree.ts:1219
onPointer @ listWidget.ts:634
onPointer @ abstractTree.ts:1138
fire @ event.ts:589
(anonymous) @ event.ts:56
fire @ event.ts:587
o @ event.ts:16
Show 10 more frames
notificationsAlerts.ts:40 Unable to open 'RunByLine.ipynb': Cannot open notebook of type 'jupyter-notebook'.
(1 liked)
```
Does this issue occur when all extensions are disabled?: No
@rebornix I'm not on a Windows PC, I'm on a Mac and do not see this issue at all.
Will try to setup a Windows PC to see if I can repro this. However based on the error logs, the errors are coming from the VS Code (not extension) & it oddly enough it works without any issues on Macs.
What happened in this case is we try to activate Python extension when opening a .ipynb file but the activate method returns before the content provider for .ipynb file is registered so the core fails as it doesn't find any provider for the notebook.
Steps to Reproduce:
1.When opening an ipynb file in using the Python extension and VS COde Notebooks API, windows user always gets an error
2.Below is the error log. Opening the file again works.
3. Unable to repro on Mac (3 users), but always reproducible on Windows.
Log
``` [Yesterday 11:02 AM] Jim Griesmer To be clearer: console.ts:137 [Extension Host] (node:148856) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (at writeOut (internal/process/warning.js:27:3))t.log @ console.ts:137 $logExtensionHostMessage @ mainThreadConsole.ts:39 _doInvokeHandler @ rpcProtocol.ts:402 _invokeHandler @ rpcProtocol.ts:387 _receiveRequest @ rpcProtocol.ts:303 _receiveOneMessage @ rpcProtocol.ts:230 (anonymous) @ rpcProtocol.ts:105 fire @ event.ts:587 fire @ ipc.net.ts:453 _receiveMessage @ ipc.net.ts:733 (anonymous) @ ipc.net.ts:592 fire @ event.ts:587 acceptChunk @ ipc.net.ts:239 (anonymous) @ ipc.net.ts:200 t @ ipc.net.ts:28 emit @ events.js:203 addChunk @ _stream_readable.js:295 readableAddChunk @ _stream_readable.js:276 Readable.push @ _stream_readable.js:210 onStreamRead @ internal/stream_base_commons.js:166 notificationsAlerts.ts:40 Unable to open 'RunByLine.ipynb': Cannot open notebook of type 'jupyter-notebook'. onDidChangeNotification @ notificationsAlerts.ts:40 (anonymous) @ notificationsAlerts.ts:26 fire @ event.ts:587 addNotification @ notifications.ts:207 notify @ notificationService.ts:106 doHandleOpenEditorError @ editorGroupView.ts:1056 (anonymous) @ editorGroupView.ts:984 processTicksAndRejections @ internal/process/task_queues.js:85 async function (async) (anonymous) @ editorGroupView.ts:973 doShowEditor @ editorGroupView.ts:971 doOpenEditor @ editorGroupView.ts:954 openEditor @ editorGroupView.ts:882 openEditor @ editorService.ts:530 onEditorOpening @ notebook.contribution.ts:327 open @ notebook.contribution.ts:160 onGroupWillOpenEditor @ editorService.ts:509 (anonymous) @ editorService.ts:165 fire @ event.ts:587 openEditor @ editorGroupView.ts:875 (anonymous) @ editorService.ts:1299 (anonymous) @ explorerViewlet.ts:218 openEditor @ editorService.ts:1298 (anonymous) @ explorerView.ts:429 fire @ event.ts:587 open @ listService.ts:542 onSelection @ listService.ts:537 (anonymous) @ listService.ts:498 fire @ event.ts:587 (anonymous) @ event.ts:56 (anonymous) @ event.ts:810 fire @ event.ts:587 _set @ abstractTree.ts:1020 set @ abstractTree.ts:1010 setSelection @ abstractTree.ts:1219 onPointer @ listWidget.ts:634 onPointer @ abstractTree.ts:1138 fire @ event.ts:589 (anonymous) @ event.ts:56 fire @ event.ts:587 o @ event.ts:16 Show 10 more frames notificationsAlerts.ts:40 Unable to open 'RunByLine.ipynb': Cannot open notebook of type 'jupyter-notebook'. (1 liked) ```Does this issue occur when all extensions are disabled?: No
@rebornix /cc
The text was updated successfully, but these errors were encountered: