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

Exception when view value in data viewer #10789

Closed
yellowmarlboro opened this issue Jul 13, 2022 · 4 comments · Fixed by #10800
Closed

Exception when view value in data viewer #10789

yellowmarlboro opened this issue Jul 13, 2022 · 4 comments · Fixed by #10800
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged variable-explorer

Comments

@yellowmarlboro
Copy link

Environment data

  • VS Code version: 1.69.1
  • Jupyter Extension version (available under the Extensions sidebar): v2022.6.1101950301
  • Python Extension version (available under the Extensions sidebar): v2022.10.0
  • OS (Windows | Mac | Linux distro) and version: ubuntu22.04 wsl2
  • Python and/or Anaconda version: python3.8.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Jupyter server running: Remote (wsl)

Actual behaviour

when i'm debugging my project and i click view value in data viewer, it happend error

Logs

Output for Jupyter in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Jupyter)

Visual Studio Code (1.69.1, wsl, desktop)
Jupyter Extension Version: 2022.6.1101950301.
Python Extension Version: 2022.10.0.
Multiple Workspace folders opened ...
info 13:51:14.611: ZMQ install verified.
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
info 13:51:16.499: LSP Notebooks experiment is disabled -- not in treatment group
info 13:51:17.651: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
info 13:51:18.915: Process Execution: > ~/.pyenv/versions/3.8.6/envs/Risk_py38/bin/python -m pip list
> ~/.pyenv/versions/3.8.6/envs/Risk_py38/bin/python -m pip list
info 13:54:18.889: Found debugAdapterPython on Debug Configuration to use
error 13:54:18.892: [TypeError: t.startsWith is not a function
	at C.getDebugAdapterPython (/home/.../.vscode-server/extensions/ms-toolsai.jupyter-2022.6.1101950301/out/extension.node.js:39:274390)
	at C.onVariablePanelShowDataViewerRequest (/home/.../.vscode-server/extensions/ms-toolsai.jupyter-2022.6.1101950301/out/extension.node.js:39:273113)
	at C.<anonymous> (/home/.../.vscode-server/extensions/ms-toolsai.jupyter-2022.6.1101950301/out/extension.node.js:24:464889)
	at o._executeContributedCommand (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:85:62871)
	at o.$executeContributedCommand (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:85:63575)
	at s._doInvokeHandler (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:95:13708)
	at s._invokeHandler (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:95:13390)
	at s._receiveRequest (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:95:12159)
	at s._receiveOneMessage (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:95:10853)
	at /home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:95:8957
	at b.invoke (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:145)
	at v.deliver (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:2266)
	at p.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:1844)
	at a.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:18976)
	at /home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:34679
	at b.invoke (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:145)
	at v.deliver (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:2266)
	at p.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:1844)
	at a.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:18976)
	at r._receiveMessage (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:23563)
	at /home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:21097
	at b.invoke (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:145)
	at v.deliver (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:2266)
	at p.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:1844)
	at p.acceptChunk (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:15807)
	at /home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:14937
	at b.invoke (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:145)
	at v.deliver (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:2266)
	at p.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:1844)
	at f._processReadQueue (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:21271)
	at f.acceptFrame (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:20927)
	at v._acceptChunk (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:18891)
	at /home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:15880
	at Socket.R (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:13763)
	at Socket.emit (node:events:390:28)
	at addChunk (node:internal/streams/readable:315:12)
	at readableAddChunk (node:internal/streams/readable:289:9)
	at Socket.Readable.push (node:internal/streams/readable:228:10)
	at TCP.onStreamRead (node:internal/stream_base_commons:199:23)]
warn 13:54:18.893: DataScience Error [TypeError: t.startsWith is not a function
	at C.getDebugAdapterPython (/home/.../.vscode-server/extensions/ms-toolsai.jupyter-2022.6.1101950301/out/extension.node.js:39:274390)
	at C.onVariablePanelShowDataViewerRequest (/home/.../.vscode-server/extensions/ms-toolsai.jupyter-2022.6.1101950301/out/extension.node.js:39:273113)
	at C.<anonymous> (/home/.../.vscode-server/extensions/ms-toolsai.jupyter-2022.6.1101950301/out/extension.node.js:24:464889)
	at o._executeContributedCommand (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:85:62871)
	at o.$executeContributedCommand (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:85:63575)
	at s._doInvokeHandler (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:95:13708)
	at s._invokeHandler (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:95:13390)
	at s._receiveRequest (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:95:12159)
	at s._receiveOneMessage (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:95:10853)
	at /home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:95:8957
	at b.invoke (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:145)
	at v.deliver (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:2266)
	at p.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:1844)
	at a.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:18976)
	at /home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:34679
	at b.invoke (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:145)
	at v.deliver (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:2266)
	at p.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:1844)
	at a.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:18976)
	at r._receiveMessage (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:23563)
	at /home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:21097
	at b.invoke (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:145)
	at v.deliver (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:2266)
	at p.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:1844)
	at p.acceptChunk (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:15807)
	at /home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:69:14937
	at b.invoke (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:145)
	at v.deliver (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:2266)
	at p.fire (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:61:1844)
	at f._processReadQueue (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:21271)
	at f.acceptFrame (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:20927)
	at v._acceptChunk (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:18891)
	at /home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:15880
	at Socket.R (/home/.../.vscode-server/bin/.../out/vs/workbench/api/node/extensionHostProcess.js:111:13763)
	at Socket.emit (node:events:390:28)
	at addChunk (node:internal/streams/readable:315:12)
	at readableAddChunk (node:internal/streams/readable:289:9)
	at Socket.Readable.push (node:internal/streams/readable:228:10)
	at TCP.onStreamRead (node:internal/stream_base_commons:199:23)]

@yellowmarlboro yellowmarlboro added the bug Issue identified by VS Code Team member as probable bug label Jul 13, 2022
@github-actions github-actions bot added the triage-needed Issue needs to be triaged label Jul 13, 2022
@rchiodo
Copy link
Contributor

rchiodo commented Jul 13, 2022

Thanks for the bug.

Looks like a problem right here:

let untildePath = debugConfiguration.python;

debugConfiguration.python may not exist or be a string.

@ItamarShDev
Copy link

Can we set this from settings?
I do have python set up in the debug configuration, yet the error persist
image

@DonJayamanne
Copy link
Contributor

@IanMatthewHuff /cc I think you were looking into some issues related to this.

@IanMatthewHuff
Copy link
Member

IanMatthewHuff commented Jul 14, 2022

Ahh, this is on me. I messed that up merging with the python code to pull the path. It should just be using the pythonPath not the debugConfiguration.python. @rchiodo if you don't mind I'll steal this back to fix quick. My mistake here...

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug triage-needed Issue needs to be triaged variable-explorer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants