`Cannot read property 'uri' of undefined` when use jupyter interactive
See original GitHub issueIssue Type: Bug
Actual behavior
It will alert Cannot read property 'uri' of undefined
when use jupyter interactive, and won’t successfully activated. However, native jupyter works well.
I have tried reinstalling the extension and the vscode, but this problem still exists.
Environment data
Extension version: 2020.3.71659 VS Code version: 1.44.2 OS version: Windows_NT x64 10.0.18363
Logs
- Output: No output for Python in the Output panel
- Console
Error Python Extension: 2020-04-21 17:13:55: DataScience Error [TypeError: Cannot read property 'uri' of undefined at s.get rootPath [as rootPath] (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:1:718209) at _.getOwningResource (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:75:805130) at _.getNotebookOptions (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:75:805692) at _.startServer (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:1:776009) at _.ensureServerAndNotebookImpl (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:1:775698) at _.ensureServerAndNotebook (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:1:775342) at _.ensureServerAndNotebook (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:75:806648) at new _ (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:75:803080) at Object.t.resolveInstance (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:60:93194) at c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:60:92396 at Object.t.resolve (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:60:92663) at c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:60:83747 at e._get (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:60:83513) at e.get (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:60:82224) at a.get (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:75:1166603) at y.create (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:75:820979) at y.getOrCreateActive (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:75:820390) at r.addCode (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:75:729316) at runMatchingCell (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:75:730236) at runCell (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:75:727360) at r.s.value (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:1:12849) at m.runCell (c:\Users\ganxy\.vscode\extensions\ms-python.python-2020.3.71659\out\client\extension.js:1:733715) at e._executeContributedCommand (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:592:220) at e._doExecuteCommand (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:591:378) at executeCommand (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:591:284) at y._executeConvertedCommand (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:594:105) at e._executeContributedCommand (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:592:220) at e.$executeContributedCommand (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:592:595) at e._doInvokeHandler (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:752:683) at e._invokeHandler (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:752:375) at e._receiveRequest (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:751:14) at e._receiveOneMessage (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:749:832) at d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:748:34 at e.fire (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:48:497) at v.fire (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:206:615) at d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:919:744 at e.fire (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:48:497) at v.fire (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:206:615) at t.PersistentProtocol._receiveMessage (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:211:17) at d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:208:155 at e.fire (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:48:497) at p.acceptChunk (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:204:129) at d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:203:483 at Socket.t (d:\Applications\Microsoft VS Code\resources\app\out\vs\workbench\services\extensions\node\extensionHostProcess.js:212:565) at Socket.emit (events.js:203:13) at addChunk (_stream_readable.js:295:12) at readableAddChunk (_stream_readable.js:276:11) at Socket.Readable.push (_stream_readable.js:210:10) at Pipe.onStreamRead (internal/stream_base_commons.js:166:17)]
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
`Cannot read property 'uri' of undefined` when use jupyter ...
It will alert Cannot read property 'uri' of undefined when use jupyter interactive, and won't successfully activated. However, native jupyter ...
Read more >Open Jupyter in VSCode: TypeError: Cannot read properties ...
I created a new Jupyter notebook in my VSCode using command shortcut and selected ... Cannot read property 'makeSettings' of undefined #834.
Read more >VS Code API | Visual Studio Code Extension API
VS Code API is a set of JavaScript APIs that you can invoke in your Visual Studio Code extension. This page lists all...
Read more >VSCode and Jupyter: TypeError: Cannot read property 'charAt ...
I used to use Jupyter Notebooks for Python. ... VSCode and Jupyter: TypeError: Cannot read property 'charAt' of undefined.
Read more >Troubleshooting errors in AWS Glue
For any connections and development endpoints that you use, check that your cluster has not run out of elastic network interfaces. Error: Could...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ganxy1028 quick question. Do you currently not have a workspace folder open? Due to the error that I see in the console log I believe that we might not be handling this case correctly.
Thanks for your work very much.