text:
File :5, in shape(name)

Applies To

[X] Notebooks (.ipynb files)
[X] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
import turtle as ttl

ttl.shape('turtle')
ttl.speed(0)

# draw a line
ttl.forward(200)

ttl.mainloop()
print('done')

If you run it twice, it will report an error. The third time, it can run normally again. Unless you kill the kernel, an error will occur every time you run it repeatedly.
Terminator                                Traceback (most recent call last)
c:\newPython\test.ipynb Cell 2 in <cell line: 1>()
----> [1](vscode-notebook-cell:/c%3A/newPython/test.ipynb#W1sZmlsZQ%3D%3D?line=0) ttl.shape('turtle')
      [2](vscode-notebook-cell:/c%3A/newPython/test.ipynb#W1sZmlsZQ%3D%3D?line=1) ttl.speed(0)
      [4](vscode-notebook-cell:/c%3A/newPython/test.ipynb#W1sZmlsZQ%3D%3D?line=3) # draw a line

File <string>:5, in shape(name)

Terminator:

VS Code Version
1.71.2
Jupyter Extension Version
v2022.8.1002431955
Jupyter logs
info 9:45:11.383: Execute Cell 0 c:\newPython\test.ipynb
info 9:45:11.423: Cell 0 executed with state Success
info 9:45:13.223: Execute Cell 1 c:\newPython\test.ipynb
info 9:45:14.751: Cell 1 executed with state Success
info 9:45:16.767: Execute Cell 1 c:\newPython\test.ipynb
info 9:45:16.923: Cancel all remaining cells true || Error || undefined
info 9:45:16.923: Cancel pending cells
info 9:45:16.924: Cell 1 executed with state Error

Coding Language and Runtime Version
Python 3.10
Language Extension Version (if applicable)
Python Pylance jupyter
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
No response

It might just have some trouble with initialization and teardown of the external app. Looks like @DonJayamanne has done some previous work to get turtle working on https://github.com/microsoft/vscode-jupyter/issues/8241

@ydmykr
Can you run the same code in Jupyter Notebook (outside VS Code) and let me know if you run into the same problem

Unfortunately, I will still encounter the same problem.

Thanks for getting back to us, Looks like a problem with the package itself, or other.
Unfortunately I'm not an expert of the turtle widget, please react out to the maintainers of the turtle package for assistance.
Closing this issue as this isn't a problem with the Jupyter extension.

source: gharchive/issue

authors: DonJayamanne amunger ydmykr

license: MIT

license_type: permissive

license_source: github-api


text:
Unable to connect to localhost notebook server in vscode.dev

Environment data

VS Code version: 1.86.0 (vscode.dev)
Jupyter Extension version (available under the Extensions sidebar): v2024.1.2024012502
Python Extension version (available under the Extensions sidebar): v2024.0.1
OS (Windows | Mac | Linux distro) and version: Mac (Edge)
Python and/or Anaconda version: 3.11.5
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
Jupyter server running: Local

Expected behaviour
Can connect to localhost kernel running with command:
python3 -m notebook --NotebookApp.allow_origin="*"
Also went through the steps here.
Actual behaviour

Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

Start a server on localhost: python3 -m notebook --NotebookApp.allow_origin="*"
Verify that the connection works in VS Code Stable (v1.86.0 with Jupyter extension version v2024.1.2024012502)
Verify that the same connection does not work in vscode.dev

Logs

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

Visual Studio Code (1.86.0, undefined, vscode.dev)
Jupyter Extension Version: 2024.1.2024012502.
Python Extension Version: 2024.0.1.
Pylance Extension Version: 2023.12.1.
No workspace folder opened.
16:16:04.430 [error] Unable to determine the caller of the extension API for trace stack. Error:
    at EI.determineExtensionFromCallStack (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.1.2024012502+web/extension/dist/extension.web.bundle.js#vscode-extension:107:51815)
    at Object.registerRemoteServerProvider (https://ms-toolsai.vscode-unpkg.net/ms-toolsai/jupyter/2024.1.2024012502+web/extension/dist/extension.web.bundle.js#vscode-extension:107:29295)
    at bo.eval (https://github.vscode-unpkg.net/GitHub/codespaces/1.16.10/node_modules/moment/locale/af.js:3:1)
    at Generator.next (<anonymous>)
    at fulfilled (https://github.vscode-unpkg.net/GitHub/codespaces/1.16.10/node_modules/moment/locale/af.js:3:1)
16:16:04.430 [error] The API registerRemoteServerProvider has being deprecated and will be removed soon, please use createJupyterServerCollection (extension unknown).
16:16:16.188 [warn] Password for http://localhost:8888/ was invalid.
16:16:16.214 [debug] Disposing Jupyter Lab Helper
16:16:16.214 [debug] SessionManager - dispose contents manager
16:16:16.214 [debug] ShutdownSessionAndConnection - dispose session manager
16:16:16.214 [warn] Uri verification error Error: Forbidden
16:16:16.216 [debug] Finished disposing Jupyter Lab Helper
16:16:16.216 [error] Jupyter Lab Helper:getKernelSpecs failure:  Error: Poll (@jupyterlab/services:KernelSpecManager#specs) is disposed.

I've never actually used the vanilla notebook package.
Are you able to use the jupyter package?
python3 -m jupyter notebook --NotebookApp.allow_origin="*"
or
python3 -m jupyter lab--NotebookApp.allow_origin="*"

Hi @amunger! Looks like neither of those are working for me either

I get the same password incorrect screen, and it's working in local Jupyter

Adding some server logs which show first the inability to sign in from vscode.dev, followed by it working in local:

Logs

<p>

[W 2024-02-08 11:21:13.116 ServerApp] 404 OPTIONS /hub/api (@::1) 64.08ms referer=None
[W 2024-02-08 11:21:13.128 ServerApp] 404 GET /hub/api (@::1) 1.46ms referer=None
[W 2024-02-08 11:21:13.134 ServerApp] 404 OPTIONS /tree? (@::1) 0.53ms referer=None
[W 2024-02-08 11:21:13.139 ServerApp] 404 GET /tree? (@::1) 0.61ms referer=None
[W 2024-02-08 11:21:13.771 ServerApp] 405 OPTIONS /login? (@::1) 1.54ms referer=None
[W 2024-02-08 11:21:13.795 ServerApp] 404 OPTIONS /tree (@::1) 1.60ms referer=None
[W 2024-02-08 11:21:13.803 ServerApp] 404 GET /tree (@::1) 6.70ms referer=None
[W 2024-02-08 11:21:13.820 ServerApp] wrote error: 'Forbidden'
Traceback (most recent call last):
File "/Users/paulwang/Library/Python/3.11/lib/python/site-packages/tornado/web.py", line 1784, in _execute
result = method(*self.path_args, **self.path_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/paulwang/Library/Python/3.11/lib/python/site-packages/tornado/web.py", line 3278, in wrapper
url = self.get_login_url()
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/jupyter_server/base/handlers.py", line 753, in get_login_url
raise web.HTTPError(403)
tornado.web.HTTPError: HTTP 403: Forbidden
[W 2024-02-08 11:21:13.836 ServerApp] 403 GET /api/kernels?1707420073811 (@::1) 15.48ms referer=None
[W 2024-02-08 11:21:13.837 ServerApp] wrote error: 'Forbidden'
Traceback (most recent call last):
File "/Users/paulwang/Library/Python/3.11/lib/python/site-packages/tornado/web.py", line 1784, in _execute
result = method(*self.path_args, **self.path_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/paulwang/Library/Python/3.11/lib/python/site-packages/tornado/web.py", line 3278, in wrapper
url = self.get_login_url()
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/jupyter_server/base/handlers.py", line 753, in get_login_url
raise web.HTTPError(403)
tornado.web.HTTPError: HTTP 403: Forbidden
[W 2024-02-08 11:21:13.838 ServerApp] 403 GET /api/kernelspecs?1707420073811 (@::1) 1.55ms referer=None
[W 2024-02-08 11:21:13.838 ServerApp] wrote error: 'Forbidden'
Traceback (most recent call last):
File "/Users/paulwang/Library/Python/3.11/lib/python/site-packages/tornado/web.py", line 1784, in _execute
result = method(*self.path_args, **self.path_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/paulwang/Library/Python/3.11/lib/python/site-packages/tornado/web.py", line 3278, in wrapper
url = self.get_login_url()
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/jupyter_server/base/handlers.py", line 753, in get_login_url
raise web.HTTPError(403)
tornado.web.HTTPError: HTTP 403: Forbidden
[W 2024-02-08 11:21:13.839 ServerApp] 403 GET /api/kernels?1707420073812 (@::1) 2.01ms referer=None
[W 2024-02-08 11:21:13.839 ServerApp] wrote error: 'Forbidden'
Traceback (most recent call last):
File "/Users/paulwang/Library/Python/3.11/lib/python/site-packages/tornado/web.py", line 1784, in execute
result = method(*self.path_args, **self.path_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/paulwang/Library/Python/3.11/lib/python/site-packages/tornado/web.py", line 3278, in wrapper
url = self.get_login_url()
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/jupyter_server/base/handlers.py", line 753, in get_login_url
raise web.HTTPError(403)
tornado.web.HTTPError: HTTP 403: Forbidden
[W 2024-02-08 11:21:13.840 ServerApp] 403 GET /api/sessions?1707420073812 (@::1) 2.70ms referer=None
[W 2024-02-08 11:21:13.883 ServerApp] 404 OPTIONS /hub/api (@::1) 0.61ms referer=None
[W 2024-02-08 11:21:13.895 ServerApp] 404 GET /hub/api (@::1) 1.53ms referer=None
[W 2024-02-08 11:21:13.900 ServerApp] wrote error: 'Forbidden'
Traceback (most recent call last):
File "/Users/paulwang/Library/Python/3.11/lib/python/site-packages/tornado/web.py", line 1784, in execute
result = method(*self.path_args, **self.path_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/paulwang/Library/Python/3.11/lib/python/site-packages/tornado/web.py", line 3278, in wrapper
url = self.get_login_url()
^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/jupyter_server/base/handlers.py", line 753, in get_login_url
raise web.HTTPError(403)
tornado.web.HTTPError: HTTP 403: Forbidden
[W 2024-02-08 11:21:13.901 ServerApp] 403 GET /api/kernelspecs?1707420073844 (@::1) 1.87ms referer=None
[W 2024-02-08 11:21:13.909 ServerApp] 404 OPTIONS /tree? (@::1) 1.87ms referer=None
[W 2024-02-08 11:21:13.912 ServerApp] 404 GET /tree? (@::1) 1.21ms referer=None
[W 2024-02-08 11:21:16.241 ServerApp] 404 GET /api/terminals?=1707419911787 (0bb86db298ff4b8dbb32960fb63d6847@::1) 2.33ms referer=http://localhost:8889/tree
[W 2024-02-08 11:21:40.087 ServerApp] 404 GET /api/terminals?=1707419911790 (0bb86db298ff4b8dbb32960fb63d6847@::1) 3.69ms referer=http://localhost:8889/tree
[W 2024-02-08 11:22:14.775 ServerApp] 405 OPTIONS /login? (@::1) 2.70ms referer=None
[W 2024-02-08 11:22:14.801 ServerApp] 404 OPTIONS /tree (@::1) 2.77ms referer=None
[W 2024-02-08 11:22:14.808 ServerApp] 404 GET /tree (@::1) 0.67ms referer=None
[W 2024-02-08 11:22:17.254 ServerApp] 404 OPTIONS /hub/api (@::1) 1.51ms referer=None
[W 2024-02-08 11:22:17.257 ServerApp] 404 GET /hub/api (@::1) 1.52ms referer=None
[W 2024-02-08 11:22:17.263 ServerApp] 404 OPTIONS /tree? (@::1) 1.51ms referer=None
[W 2024-02-08 11:22:17.266 ServerApp] 404 GET /tree? (@::1) 1.64ms referer=None
[W 2024-02-08 11:22:17.948 ServerApp] 404 OPTIONS /hub/api (@::1) 1.20ms referer=None
[W 2024-02-08 11:22:17.950 ServerApp] 404 GET /hub/api (@::1) 0.79ms referer=None
[W 2024-02-08 11:22:17.954 ServerApp] 404 OPTIONS /tree? (@::1) 1.00ms referer=None
[W 2024-02-08 11:22:17.956 ServerApp] 404 GET /tree? (@::1) 1.22ms referer=None
^[[A^[[A
[W 2024-02-08 11:22:23.059 ServerApp] 404 OPTIONS /hub/api (@::1) 1.41ms referer=None
[W 2024-02-08 11:22:23.063 ServerApp] 404 GET /hub/api (@::1) 1.43ms referer=None
[W 2024-02-08 11:22:23.074 ServerApp] 404 OPTIONS /tree? (@::1) 3.08ms referer=None
[W 2024-02-08 11:22:23.087 ServerApp] 404 GET /tree? (@::1) 0.60ms referer=None
[W 2024-02-08 11:23:43.918 ServerApp] 404 GET /hub/api (@127.0.0.1) 9.76ms referer=None
[W 2024-02-08 11:23:43.928 ServerApp] 404 GET /tree? (@127.0.0.1) 1.72ms referer=None
[I 2024-02-08 11:23:49.024 ServerApp] User 408bae62db074664ad1ff5ea6c4aab59 logged in.
[I 2024-02-08 11:23:49.030 ServerApp] 302 POST /login? (408bae62db074664ad1ff5ea6c4aab59@127.0.0.1) 7.52ms
[W 2024-02-08 11:23:50.093 ServerApp] 404 GET /hub/api (@127.0.0.1) 1.03ms referer=None
[W 2024-02-08 11:23:53.483 ServerApp] 404 GET /hub/api (@127.0.0.1) 1.37ms referer=None
[I 2024-02-08 11:23:53.596 ServerApp] Kernel started: d5e1198f-bfaf-40cd-822e-6ffbf511b64b
0.00s - Debugger warning: It seems that frozen modules are being used, which may
0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off
0.00s - to python to disable frozen modules.
0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation.
[I 2024-02-08 11:23:58.829 ServerApp] Connecting to kernel d5e1198f-bfaf-40cd-822e-6ffbf511b64b.
[W 2024-02-08 11:23:59.657 ServerApp] 404 GET /nbextensions/mitosheet/extension.js (@127.0.0.1) 2.27ms referer=None

</p>
</details>

Hi @DonJayamanne, I did not see any logs appearing in console after the failed auth attempt:

oh, try pasting in the full url with the token so that it doesn't (shouldn't) prompt for a password.
http://localhost:8888/?token=xxxxxxxxxxxxx
When I only put in http://localhost:8888 for the server location, it asks for a password, and the token only works as a password on desktop for some reason.

oh, try pasting in the full url with the token so that it doesn't (shouldn't) prompt for a password.
http://localhost:8888/?token=xxxxxxxxxxxxx
When I only put in http://localhost:8888 for the server location, it asks for a password, and the token only works as a password on desktop for some reason.

This worked for me, thanks @amunger! Yeah, interesting that the behaviour is different here. I was so used to not including the token that it never occurred to me it should be part of the server URL.

Closing as fixed

authors: DonJayamanne amunger pwang347

repo: microsoft/vscode-jupyter


text:
kernel crash after closing external plot window

Applies To

[X] Notebooks (.ipynb files)
[X] Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?
Hi!
When working on a Jupyter notebook, when making a plot outside the notebook itself (pop up window) using PIL, PyVista and other types of plotters the window crashes when I want to close it. The window freezes and I need to kill the kernel to solve it.
VS Code Version
Version: 1.86.1 (Universal) Commit: 31c37ee8f63491495ac49e43b8544550fbae4533 Date: 2024-02-07T09:09:01.236Z (1 wk ago) Electron: 27.2.3 ElectronBuildId: 26495564 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin arm64 23.2.0
Jupyter Extension Version
v2024.1.1
Jupyter logs
12:19:38.474 [info] Kernel acknowledged execution of cell 4 @ 1707995978474
12:19:51.309 [info] End cell 4 execution after 12.835s, completed @ 1707995991309, started @ 1707995978474
12:20:09.616 [error] Disposing session as kernel process died ExitCode: undefined, Reason:
12:20:09.616 [info] Dispose Kernel process 23013.
12:20:09.618 [error] Jupyter Extension (Error in onKernelStatusChanged, method:onKernelStatusChanged): Error: notebook controller is DISPOSED
    at Object.createNotebookCellExecution (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:150:203497)
    at Function.create (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:130:2129)
    at Function.getOrCreate (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:130:1897)
    at sp (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:133:2524)
    at rf.endCellAndDisplayErrorsInCell (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:252:13599)
    at rf.onKernelStatusChanged (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:252:13205)
    at rf.n.value (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:77:11258)
    at r.y (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:80:1902)
    at r.z (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:80:1972)
    at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:80:2188)
    at hy.<anonymous> (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:268:2878)
    at r.y (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:80:1902)
    at r.z (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:80:1972)
    at r.fire (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:80:2188)
    at t (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:252:38593)
    at D (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:40:20363)
    at Object.p [as emit] (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:40:20024)
    at i.emit (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:40:18131)
    at L_.onStatusChanged (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:249:31476)
    at D (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:40:20363)
    at Object.p [as emit] (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:40:20024)
    at i.emit (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:40:18131)
    at $_.onKernelStatus (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:281:24365)
    at D (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:40:20363)
    at Object.p [as emit] (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:40:20024)
    at i.emit (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:40:18131)
    at J_.shutdown (~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-arm64/dist/extension.node.js:281:15611)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Coding Language and Runtime Version
Python v3.10.13
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
conda v23.11.0
Running Jupyter locally or remotely?
Local

Thanks for the reply. I did create a sample Conda env with python 3.10 and installed 2 libs:

conda install jupyterlab
conda install pyvista

I could create a sample notebook (sample.ipynb) to replicate the bug sample.zip.
The bug appeared while running on VSCode and also via jupyterlab launched via terminal. Here is the terminal:
[I 2024-02-16 10:47:40.781 ServerApp] Kernel restarted: 0de4fc44-d70b-473d-a4fe-4801c6a7ae18.
[I 2024-02-16 10:47:40.784 ServerApp] Starting buffering for 0de4fc44-d70b-473d-a4fe-4801c6a7ae18:b11b9c31-b7d0-464b-b9df-0a8a279af786.
[I 2024-02-16 10:47:40.790 ServerApp] Connecting to kernel 0de4fc44-d70b-473d-a4fe-4801c6a7ae18.
[I 2024-02-16 10:47:40.790 ServerApp] Restoring connection for 0de4fc44-d70b-473d-a4fe-4801c6a7ae18:b11b9c31-b7d0-464b-b9df-0a8a279af786.
[I 2024-02-16 10:47:56.941 ServerApp] Saving file at /smaple.ipynb.
[I 2024-02-16 10:48:13.770 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), keep random ports.
[W 2024-02-16 10:48:13.771 ServerApp] kernel 0de4fc44-d70b-473d-a4fe-4801c6a7ae18 restarted
[I 2024-02-16 10:48:13.780 ServerApp] Starting buffering for 0de4fc44-d70b-473d-a4fe-4801c6a7ae18:b11b9c31-b7d0-464b-b9df-0a8a279af786.
[I 2024-02-16 10:48:13.822 ServerApp] Connecting to kernel 0de4fc44-d70b-473d-a4fe-4801c6a7ae18.
[I 2024-02-16 10:48:13.823 ServerApp] Restoring connection for 0de4fc44-d70b-473d-a4fe-4801c6a7ae18:b11b9c31-b7d0-464b-b9df-0a8a279af786.
Thanks for the help !

The bug appeared while running on VSCode and also via jupyterlab launched via terminal. Here is the terminal:

The python package used to generate the plot is what is causing the Kernels to crash.
I was hoping there would be some better logs in Jupyter (when launched from the terminal), unfortunately thats not the case.
Given this is not an issue with VS Code (evidenced by the fact that this also occurs in Jupyter), i am closing this as out of scope, as its caused by some external package.
Sorry I couldn't help futher, the logs definitely helped but not enough to help me help you identify the root cause
My suggestion at this stage,

Is to file an issue against repo of the Python package you are using.
Or reach out on stack overflow

authors: DonJayamanne guytangzz


text:
Intellisense / Autocomplete stops working when trying to call a pandas method

Environment data

VS Code version: 1.86.2
Jupyter Extension version (available under the Extensions sidebar): v2024.1.1
Python Extension version (available under the Extensions sidebar): v2024.0.1
OS (Windows | Mac | Linux distro) and version: MacOS Sonoma 14.2.1
Python and/or Anaconda version: 3.9.12
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Jupyter server running: Local

Expected behaviour
When doing my data analysis as usual, I refer to my dataframes as needed and apply some method depending on what I need, expecting that autocompletion / intellisense assist me with the needed methods.
Example: I have a dataframe df and I want to count values for column X, so I expect jupyter to aid me when coding df['X'].value_co... .
Actual behaviour
With latest version, intellisense stops working the second I attempt to refer a dataframe column by the notation df['X']. Before referencing a column like that, everything works as expected, but the second I try this, nothing works. I cannot even declare a dataframe from scratch because it doesn't recognize the imported libraries such as pandas.
When I downgrade the jupyter extension version, everything works just fine.
Steps to reproduce:
[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

Import pandas as pd
Attempt to create a brand new dataframe from scratch.
Read an excel file into a dataframe
Get data from a column with notation df['X']
Attempt to call an existing method like .unique() or .value_counts()
Attempt to create a brand new dataframe from scratch.

Real Example

Logs

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

XXX

Have the same issue. The similar issue was there a few months back. Now again?

@jorregoo @guyguyguy1234
Please could you enable logging as follows:

Open settings & go into Jupyter->Logging
Change the value to verbose
Reload VS Code,
Attempt to repro the issue & then copy the output from the Jupyter output panel.

It seems that goes into a loop. The only output (and it stays outputting the same thing like it's in some sort of loop) I get at the exact moment I attempt to call a column from my dataframe is:
09:38:54.983 [debug] Jupyter completion time: 7 09:38:54.985 [debug] Jupyter completion time: 8 09:38:54.988 [debug] Jupyter completion time: 10 09:38:54.996 [debug] Jupyter completion time: 18 09:38:55.012 [debug] Jupyter completion time: 4 09:38:55.016 [debug] Jupyter completion time: 7 09:38:55.018 [debug] Jupyter completion time: 9 09:38:55.027 [debug] Jupyter completion time: 16 09:38:55.031 [debug] Jupyter completion time: 11 09:38:55.043 [debug] Jupyter completion time: 8 09:38:55.061 [debug] Jupyter completion time: 19 09:38:55.084 [debug] Jupyter completion time: 24 09:38:55.099 [debug] Jupyter completion time: 19 09:38:55.102 [debug] Jupyter completion time: 22 09:38:55.103 [debug] Jupyter completion time: 22 09:38:55.112 [debug] Jupyter completion time: 31

@jorregoo  please call you share the full logs after you have reloaded vscode
Thanks

File
3-Jupyter.log
Log
Visual Studio Code (1.86.2, undefined, desktop) Jupyter Extension Version: 2024.1.1. Python Extension Version: 2024.0.1. Pylance Extension Version: 2024.2.2. Platform: darwin (x64). Workspace folder ~/Documents/Oficina/Zoho/tickets_python, Home = /Users/julio 09:54:38.226 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: undefined, Arg 2: "RunPythonCode" 09:54:38.227 [info] Start refreshing Kernel Picker (1708268078227) 09:54:38.249 [info] Using Pylance 09:54:38.258 [debug] Preferred Remote kernel for ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb is undefined 09:54:38.476 [debug] Get Custom Env Variables, Class name = Tm, completed in 250ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode" 09:54:38.476 [debug] Jupyter Paths /kernels:  09:54:38.477 [debug] Kernel Spec Root Paths, /usr/share/jupyter/kernels, /usr/local/share/jupyter/kernels, ~/Library/Jupyter/kernels 09:54:38.481 [debug] Search for KernelSpecs in Interpreter /usr/bin/python3 09:54:38.482 [debug] Finding Global Python KernelSpecs 09:54:38.483 [debug] Search for KernelSpecs in Interpreter /usr/local/bin/python3 09:54:38.484 [debug] Search for KernelSpecs in Interpreter /usr/local/bin/python3.11 09:54:38.485 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/bin/python 09:54:38.485 [debug] Search for KernelSpecs in Interpreter ~/.conda/envs/Datasets-project/bin/python 09:54:38.486 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/datascience/bin/python 09:54:38.487 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/meta-env/bin/python 09:54:38.487 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/mlenv/bin/python 09:54:38.488 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/py310/bin/python 09:54:38.488 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/vennii_env/bin/python 09:54:38.489 [debug] Search for KernelSpecs in Interpreter ~/opt/anaconda3/envs/vennii_openai/bin/python 09:54:38.490 [debug] Full interpreter list is length: 11, /usr/bin/python3::Unknown:/usr/bin/python3, /usr/local/bin/python3::Unknown:/usr/local/bin/python3, /usr/local/bin/python3.11::Unknown:/usr/local/bin/python3.11, ~/opt/anaconda3/bin/python:base:Conda:~/opt/anaconda3/bin/python, ~/.conda/envs/Datasets-project/bin/python:Datasets-project:Conda:~/.conda/envs/Datasets-project/bin/python, ~/opt/anaconda3/envs/datascience/bin/python:datascience:Conda:~/opt/anaconda3/envs/datascience/bin/python, ~/opt/anaconda3/envs/meta-env/bin/python:meta-env:Conda:~/opt/anaconda3/envs/meta-env/bin/python, ~/opt/anaconda3/envs/mlenv/bin/python:mlenv:Conda:~/opt/anaconda3/envs/mlenv/bin/python, ~/opt/anaconda3/envs/py310/bin/python:py310:Conda:~/opt/anaconda3/envs/py310/bin/python, ~/opt/anaconda3/envs/vennii_env/bin/python:vennii_env:Conda:~/opt/anaconda3/envs/vennii_env/bin/python, ~/opt/anaconda3/envs/vennii_openai/bin/python:vennii_openai:Conda:~/opt/anaconda3/envs/vennii_openai/bin/python 09:54:38.492 [debug] Getting activated env variables, Class name = mp (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "/usr/local/bin/python3", Arg 3: undefined 09:54:38.492 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "RunPythonCode" 09:54:38.492 [debug] Get Custom Env Variables, Class name = Tm, completed in 0ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "RunPythonCode" 09:54:38.756 [debug] Kernels for interpreter /usr/bin/python3 are .jvsc74a57bd031f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6./usr/bin/python3./usr/bin/python3.-m#ipykernel_launcher 09:54:38.757 [debug] Kernels for interpreter /usr/local/bin/python3 are .jvsc74a57bd0aee8b7b246df8f9039afb4144a1f6fd8d2ca17a180786b69acc140d282b71a49./usr/local/bin/python3./usr/local/bin/python3.-m#ipykernel_launcher 09:54:38.757 [debug] Kernels for interpreter /usr/local/bin/python3.11 are .jvsc74a57bd01a1af0ee75eeea9e2e1ee996c87e7a2b11a0bebd85af04bb136d915cefc0abce./usr/local/bin/python3.11./usr/local/bin/python3.11.-m#ipykernel_launcher 09:54:38.758 [debug] Kernels for interpreter ~/opt/anaconda3/envs/py310/bin/python are .jvsc74a57bd030f80dcf5de74bc7f2ebc4d76e37a9001be0394a91e8991fb529921b92535221.~/opt/anaconda3/envs/py310/python.~/opt/anaconda3/envs/py310/python.-m#ipykernel_launcher 09:54:38.775 [debug] KernelProvider switched kernel to id = .jvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763.~/opt/anaconda3/envs/datascience/python.~/opt/anaconda3/envs/datascience/python.-m#ipykernel_launcher 09:54:38.776 [debug] start the kernel, options.disableUI=true for ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb 09:54:38.779 [debug] Initialize notebook communications for editor ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb 09:54:38.779 [debug] Resolving notebook UI Comms (resolve) for ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb 09:54:38.779 [debug] initialize CommonMessageCoordinator 09:54:38.810 [debug] Registering commtarget jupyter.widget 09:54:38.810 [debug] IPyWidgetMessageDispatcher.initialize 09:54:38.810 [debug] Attempting to determine version of IPyWidgets 09:54:38.811 [debug] Controller selection change completed 09:54:38.811 [debug] Waiting for IPyWidgets version 09:54:38.811 [debug] Waiting for IPyWidgets version promise 09:54:38.816 [debug] Getting activated env variables, Class name = mp (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python", Arg 3: undefined 09:54:38.816 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "RunPythonCode" 09:54:38.817 [debug] Get Custom Env Variables, Class name = Tm, completed in 1ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "RunPythonCode" 09:54:38.817 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763.~/opt/anaconda3/envs/datascience/python.~/opt/anaconda3/envs/datascience/python.-m#ipykernel_launcher  (Python Path: ~/opt/anaconda3/envs/datascience/bin/python, Conda, datascience, 3.9.12) for '~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb' (disableUI=true) 09:54:38.818 [debug] Creating raw notebook for resource '~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb' 09:54:38.823 [debug] Loading kernelspec from ~/opt/anaconda3/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/bin/python 09:54:38.823 [debug] Loading kernelspec from ~/.conda/envs/Datasets-project/share/jupyter/kernels/python3/kernel.json for ~/.conda/envs/Datasets-project/bin/python 09:54:38.824 [debug] Loading kernelspec from ~/opt/anaconda3/envs/datascience/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/envs/datascience/bin/python 09:54:38.824 [debug] Loading kernelspec from ~/opt/anaconda3/envs/meta-env/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/envs/meta-env/bin/python 09:54:38.824 [debug] Loading kernelspec from ~/opt/anaconda3/envs/mlenv/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/envs/mlenv/bin/python 09:54:38.824 [debug] Loading kernelspec from ~/opt/anaconda3/envs/vennii_env/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/envs/vennii_env/bin/python 09:54:38.825 [debug] Loading kernelspec from ~/opt/anaconda3/envs/vennii_openai/share/jupyter/kernels/python3/kernel.json for ~/opt/anaconda3/envs/vennii_openai/bin/python 09:54:38.840 [debug] Getting activated env variables, Class name = mp (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python", Arg 3: undefined 09:54:38.840 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "RunPythonCode" 09:54:38.841 [debug] Get Custom Env Variables, Class name = Tm, completed in 1ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "RunPythonCode" 09:54:38.920 [debug] Hiding default kernel spec 'Python 3', 'pythonjvsc74a57bd0c059d7c5662c33a8045139440209ab080fe9c55b4084b564093a5b10a5235a75', ~/.conda/envs/Datasets-project/bin/python for interpreter ~/.conda/envs/Datasets-project/bin/python and spec ~/.conda/envs/Datasets-project/share/jupyter/kernels/python3/kernel.json 09:54:38.920 [debug] Kernels for interpreter ~/.conda/envs/Datasets-project/bin/python are .jvsc74a57bd0c059d7c5662c33a8045139440209ab080fe9c55b4084b564093a5b10a5235a75.~/.conda/envs/Datasets-project/python.~/.conda/envs/Datasets-project/python.-m#ipykernel_launcher 09:54:38.921 [debug] Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763', ~/opt/anaconda3/envs/datascience/bin/python for interpreter ~/opt/anaconda3/envs/datascience/bin/python and spec ~/opt/anaconda3/envs/datascience/share/jupyter/kernels/python3/kernel.json 09:54:38.921 [debug] Kernels for interpreter ~/opt/anaconda3/envs/datascience/bin/python are .jvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763.~/opt/anaconda3/envs/datascience/python.~/opt/anaconda3/envs/datascience/python.-m#ipykernel_launcher 09:54:38.921 [debug] Hiding default kernel spec 'Python 3', 'pythonjvsc74a57bd0eb610f901ad4272a3f0f803e9ec7d1bac0ea3d01789d8501194857432de98b00', ~/opt/anaconda3/bin/python for interpreter ~/opt/anaconda3/bin/python and spec ~/opt/anaconda3/share/jupyter/kernels/python3/kernel.json 09:54:38.921 [debug] Kernels for interpreter ~/opt/anaconda3/bin/python are .jvsc74a57bd0eb610f901ad4272a3f0f803e9ec7d1bac0ea3d01789d8501194857432de98b00.~/opt/anaconda3/python.~/opt/anaconda3/python.-m#ipykernel_launcher 09:54:38.921 [debug] Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd02091aec2cdd9707f684294408c657e0a32be323ead926ddab6e56e17a2f25f0b', ~/opt/anaconda3/envs/mlenv/bin/python for interpreter ~/opt/anaconda3/envs/mlenv/bin/python and spec ~/opt/anaconda3/envs/mlenv/share/jupyter/kernels/python3/kernel.json 09:54:38.922 [debug] Kernels for interpreter ~/opt/anaconda3/envs/mlenv/bin/python are .jvsc74a57bd02091aec2cdd9707f684294408c657e0a32be323ead926ddab6e56e17a2f25f0b.~/opt/anaconda3/envs/mlenv/python.~/opt/anaconda3/envs/mlenv/python.-m#ipykernel_launcher 09:54:38.922 [debug] Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd03d5237f330f08261dcffa241e269a2c5d17461494baf42bc0a97332e84750ba6', ~/opt/anaconda3/envs/meta-env/bin/python for interpreter ~/opt/anaconda3/envs/meta-env/bin/python and spec ~/opt/anaconda3/envs/meta-env/share/jupyter/kernels/python3/kernel.json 09:54:38.922 [debug] Kernels for interpreter ~/opt/anaconda3/envs/meta-env/bin/python are .jvsc74a57bd03d5237f330f08261dcffa241e269a2c5d17461494baf42bc0a97332e84750ba6.~/opt/anaconda3/envs/meta-env/python.~/opt/anaconda3/envs/meta-env/python.-m#ipykernel_launcher 09:54:38.922 [debug] Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd07df8298a3fae2620c2e46cee1ed4214522852850451e917f13c93ba432749442', ~/opt/anaconda3/envs/vennii_env/bin/python for interpreter ~/opt/anaconda3/envs/vennii_env/bin/python and spec ~/opt/anaconda3/envs/vennii_env/share/jupyter/kernels/python3/kernel.json 09:54:38.922 [debug] Kernels for interpreter ~/opt/anaconda3/envs/vennii_env/bin/python are .jvsc74a57bd07df8298a3fae2620c2e46cee1ed4214522852850451e917f13c93ba432749442.~/opt/anaconda3/envs/vennii_env/python.~/opt/anaconda3/envs/vennii_env/python.-m#ipykernel_launcher 09:54:38.922 [debug] Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd038db1b04d2cf7ddd046106009dddfc75fa13bf8287c7d6a2a5f86023f7530855', ~/opt/anaconda3/envs/vennii_openai/bin/python for interpreter ~/opt/anaconda3/envs/vennii_openai/bin/python and spec ~/opt/anaconda3/envs/vennii_openai/share/jupyter/kernels/python3/kernel.json 09:54:38.922 [debug] Kernels for interpreter ~/opt/anaconda3/envs/vennii_openai/bin/python are .jvsc74a57bd038db1b04d2cf7ddd046106009dddfc75fa13bf8287c7d6a2a5f86023f7530855.~/opt/anaconda3/envs/vennii_openai/python.~/opt/anaconda3/envs/vennii_openai/python.-m#ipykernel_launcher 09:54:38.973 [debug] Launching kernel .jvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763.~/opt/anaconda3/envs/datascience/python.~/opt/anaconda3/envs/datascience/python.-m#ipykernel_launcher for ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb in ~/Documents/Oficina/Zoho/tickets_python with ports 9016, 9015, 9019, 9017, 9018 09:54:38.989 [warn] Failed to get activated env vars for /usr/local/bin/python3 in 497ms 09:54:38.989 [debug] Create ProcessService, Class name = _m (started execution), Arg 1: undefined 09:54:38.989 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: undefined, Arg 2: "RunNonPythonCode", Arg 3: undefined 09:54:38.995 [debug] Get Custom Env Variables, Class name = Tm, completed in 6ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunNonPythonCode", Arg 3: undefined 09:54:38.995 [debug] Create ProcessService, Class name = _m, completed in 6ms, has a truthy return value, Arg 1: undefined 09:54:38.996 [info] Process Execution: /usr/local/bin/python3 -c "import site;print("USER_BASE_VALUE");print(site.USER_BASE);print("USER_BASE_VALUE");" 09:54:39.040 [debug] USER_SITE for /usr/local/bin/python3 is ~/Library/Python/3.12/bin 09:54:39.040 [debug] Prepend PATH with user site path for /usr/local/bin/python3, user site ~/Library/Python/3.12/bin 09:54:39.040 [debug] Prepend PATH with python bin for /usr/local/bin/python3 09:54:39.040 [debug] Activated Env Variables for /usr/local/bin/python3,      PATH value is /usr/local/bin:~/Library/Python/3.12/bin:/usr/local/mysql/bin:~/opt/anaconda3/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet:/usr/local/mysql/bin:~/opt/anaconda3/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet and      Path value is undefined 09:54:39.041 [debug] Getting activated env variables, Class name = mp, completed in 549ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "/usr/local/bin/python3", Arg 3: undefined 09:54:39.042 [info] Process Execution: /usr/local/bin/python3 -m pip list 09:54:39.493 [info] End refreshing Kernel Picker (1708268078227) 09:54:39.887 [debug] Conda file returned by Python Extension is conda 09:54:41.124 [debug] Got env vars with python ~/opt/anaconda3/envs/datascience/bin/python, with env var count 40 in 2308ms.      PATH value is /usr/local/mysql/bin:~/opt/anaconda3/envs/datascience/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet and      Path value is undefined 09:54:41.125 [debug] Prepend PATH with python bin for ~/opt/anaconda3/envs/datascience/bin/python 09:54:41.125 [debug] Activated Env Variables for ~/opt/anaconda3/envs/datascience/bin/python,      PATH value is ~/opt/anaconda3/envs/datascience/bin:/usr/local/mysql/bin:~/opt/anaconda3/envs/datascience/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet and      Path value is undefined 09:54:41.125 [debug] Getting activated env variables, Class name = mp, completed in 2309ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python", Arg 3: undefined 09:54:41.132 [info] Process Execution: ~/opt/anaconda3/envs/datascience/bin/python -m pip list 09:54:41.134 [debug] Got env vars with python ~/opt/anaconda3/envs/datascience/bin/python, with env var count 40 in 2294ms.      PATH value is /usr/local/mysql/bin:~/opt/anaconda3/envs/datascience/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet and      Path value is undefined 09:54:41.134 [debug] Prepend PATH with python bin for ~/opt/anaconda3/envs/datascience/bin/python 09:54:41.135 [debug] Activated Env Variables for ~/opt/anaconda3/envs/datascience/bin/python,      PATH value is ~/opt/anaconda3/envs/datascience/bin:/usr/local/mysql/bin:~/opt/anaconda3/envs/datascience/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet and      Path value is undefined 09:54:41.135 [debug] Getting activated env variables, Class name = mp, completed in 2295ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python", Arg 3: undefined 09:54:41.140 [info] Process Execution: ~/opt/anaconda3/envs/datascience/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)" 09:54:41.141 [debug] Kernel Env Variables for ~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/jupyter/kernels/pythonjvsc74a57bd039484295a23200e43fad4d40c77e7a34f4056945e7709f95d12c637e7cc87763/kernel.json, PATH value is ~/opt/anaconda3/envs/datascience/bin:/usr/local/mysql/bin:~/opt/anaconda3/envs/datascience/bin:~/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.12/bin:/Library/Frameworks/Python.framework/Versions/3.11/bin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Library/Apple/usr/bin:/usr/local/share/dotnet 09:54:41.145 [info] Process Execution: ~/opt/anaconda3/envs/datascience/bin/python -m ipykernel_launcher --f=~/Library/Jupyter/runtime/kernel-v2-440830pbaeKL4jhSB.json     > cwd: ~/Documents/Oficina/Zoho/tickets_python 09:54:41.145 [info] Kernel process 44309. 09:54:41.394 [debug] ipykernel version & path 6.9.1, ~/opt/anaconda3/envs/datascience/lib/python3.9/site-packages/ipykernel/__init__.py for ~/opt/anaconda3/envs/datascience/bin/python 09:54:42.054 [debug] Kernel output: NOTE: When using the ipython kernel` entry point, Ctrl-C will not work.
To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.
To read more about this, see https://github.com/ipython/ipython/issues/2049
To connect another client to this kernel, use:
--existing kernel-v2-440830pbaeKL4jhSB.json
09:54:42.169 [debug] Waiting for Raw Session to be ready in postStartRawSession
09:54:42.169 [debug] Waiting for Raw session to be ready, status: connected
09:54:42.169 [debug] Raw session connected
09:54:42.169 [debug] Waiting for Raw session to be ready
09:54:42.170 [debug] Waited for Raw session to be ready & got status: connected
09:54:42.170 [debug] Successfully waited for Raw Session to be ready in postStartRawSession
09:54:42.170 [debug] Kernel status is 'unknown' before requesting kernel info and after ready
09:54:42.170 [debug] Sending request for kernelInfo
09:54:42.671 [debug] Did not get a response for requestKernelInfo
09:54:42.671 [debug] Sending request for kernelInfo
09:54:42.704 [debug] Got response for requestKernelInfo
09:54:42.704 [debug] Successfully completed postStartRawSession after 2 attempt(s) in 534ms
09:54:42.706 [debug] Executing silently Code (idle) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys
09:54:42.721 [debug] Executing silently Code (completed) = import sys as _VSCODE_sys\nprint(_VSCODE_sys.executable); del _VSCODE_sys with 1 output(s)
09:54:42.721 [debug] End sendTelemetryForPythonKernelExecutable after 15ms
09:54:42.721 [debug] Started running kernel initialization for ~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb
09:54:42.721 [debug] Executing silently Code (idle) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy
09:54:42.728 [debug] Executing silently Code (completed) = try:\nimport ipywidgets as _VSCODE_ipywidgets\nprint("e976ee50-99ed-4aba-9b6b-9dcd5634d07d:IPy with 1 output(s)
09:54:42.728 [debug] Determined IPyWidgets Version as 7
09:54:42.728 [debug] Version of IPyWidgets 7 determined after 3.918s
09:54:42.730 [debug] Executing silently Code (idle) = import os as _VSCODE_os\nimport sys as VSCODE_sys\n%cd "/~/Documents/Oficina/Zoho/tickets
09:54:42.748 [debug] Executing silently Code (completed) = import os as _VSCODE_os\nimport sys as VSCODE_sys\n%cd "/~/Documents/Oficina/Zoho/tickets with 1 output(s)
09:54:42.748 [debug] Requesting Kernel info
09:54:42.748 [debug] Got Kernel info
09:54:42.748 [debug] End running kernel initialization, now waiting for idle
09:54:42.749 [debug] Waiting for idle on (kernel): 5257b9ed-870d-40dc-adf0-433b7ab773aa -> idle
09:54:42.749 [debug] Finished waiting for idle on (kernel): 5257b9ed-870d-40dc-adf0-433b7ab773aa -> idle
09:54:42.749 [debug] End running kernel initialization, session is idle
09:54:42.750 [info] Registering Kernel Completion Provider from kernel datascience (Python 3.9.12) for language python
09:54:42.751 [debug] IPyWidgetScriptSource.initialize
09:54:42.751 [debug] IPyWidgetMessageDispatcher.initialize
09:54:42.753 [debug] getDataDirsImpl, Class name = Kr (started execution), Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python"
09:54:42.753 [debug] Get Custom Env Variables, Class name = Tm (started execution), Arg 1: undefined, Arg 2: "RunPythonCode"
09:54:42.754 [debug] Get Custom Env Variables, Class name = Tm, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: "RunPythonCode"
09:54:42.754 [debug] Jupyter Paths :
09:54:42.758 [info] Process Execution: ~/opt/anaconda3/envs/datascience/bin/python ~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/pythonFiles/printJupyterDataDir.py
09:54:42.805 [warn] Got a non-existent Jupyter Data Dir file://~/.local/share/jupyter
09:54:42.805 [debug] getDataDirsImpl, Class name = Kr, completed in 52ms, has a truthy return value, Arg 1: "~/Documents/Oficina/Zoho/tickets_python/tickets_notebook.ipynb", Arg 2: "~/opt/anaconda3/envs/datascience/bin/python", Return Value: Uri:~/Library/Jupyter, Uri:~/opt/anaconda3/envs/datascience/share/jupyter, Uri:/usr/local/share/jupyter, Uri:/usr/share/jupyter
09:54:43.270 [debug] IPyWidgetMessageDispatcher.initialize
09:54:43.270 [debug] Web view is ready to receive widget messages
09:54:43.306 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
09:54:43.306 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
09:54:43.314 [debug] IPyWidgetMessageDispatcher.initialize
09:54:43.315 [debug] IPyWidgetMessageDispatcher.initialize
09:54:43.316 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter
09:54:43.316 [debug] Widget Message: Received IPyWidgets_kernelOptions in ScriptManager
09:54:43.317 [debug] Widget Message: Received IPyWidgetMessages.IPyWidgets_kernelOptions
09:54:43.317 [debug] Widget Message: data-base-url set to https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter
09:54:43.317 [debug] Widget Message: Received IPyWidget scripts [{"moduleName":"jupyterlab-plotly","scriptUri":"https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/jupyterlab-plotly/index","source":"local"}]
09:54:43.317 [debug] Widget Message: Source for IPyWidget jupyterlab-plotly found in local @ https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/jupyterlab-plotly/index.
09:54:43.317 [debug] Widget Message: Registering IPyWidget jupyterlab-plotly found in https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/jupyterlab-plotly/index.
09:54:43.318 [debug] Widget Message: Received IPyWidget scripts [{"moduleName":"mitosheet","scriptUri":"https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/mitosheet/index","source":"local"}]
09:54:43.318 [debug] Widget Message: Source for IPyWidget mitosheet found in local @ https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/mitosheet/index.
09:54:43.318 [debug] Widget Message: Registering IPyWidget mitosheet found in https://file%2B.vscode-resource.vscode-cdn.net~/.vscode/extensions/ms-toolsai.jupyter-2024.1.1-darwin-x64/temp/scripts/88663a7c1aa15a897e9c899cffce6c4302c7a29346470f101a73cff2397c67e4/jupyter/nbextensions/mitosheet/index.
`

@jorregoo Thank you for sharing the logs
Unfortunately it doesn't look like you tried to replicate the issue when you shared the logs.
Please can you try to replicate the issue you are running into and then share the logs.

Hi, I've followed the steps exactly as mentioned and extracted de output file for jupyter. I have to mention that when using this version of jupyter and trying to work, the fans of my laptop go really loud an my laptop starts heating up.
Log File:
3-Jupyter.log

@jorregoo thanks for sharing the logs
However it doesn't look like you have installed the extension, the version you have in the logs is still an old version.
The version should read 2024.2.0
Please can you try to install the VSIX once again, reload VS Code and replicate the issue and finally share the logs.
Thanks

Sorry for the trouble.
I've reinstalled the updated version for jupyter and the VSIX file for vscode.
Here's the file with the jupyter version updated (I've checked the version in the log file):
3-Jupyter.log
Once I replicate the issue, it goes into a loop that forces me into closing vscode in order to retrieve the log file and attach it here.

@jorregoo
Thanks for the logs, I believe I may have resolved, this, please can you try installing this VSIX
and share the logs again, even if it does work.
Please remember to re-load VS Code.
ms-toolsai-jupyter-insiders.vsix.zip

Thanks, it worked. Here's the file with the logs. Can you please let me know what was the issue?
3-Jupyter.log

Closed as part of this https://github.com/microsoft/vscode-jupyter/pull/15204
Basically there was a race condition and your machine seems to have been hitting it consistently.
Possible you have a lot of extensions installed or the like, that was slowing things down exacerbating the race condition.

authors: DonJayamanne guyguyguy1234 jorregoo


text:
UI error in jupyter notebook when terminal maximize

Issue Type: Bug
Open a jupyter notebook (with new UI). Open Terminal panel --> Maximize Panel size. There is a UI bug at the top of the window.
Extension version: 2021.8.1054968649
VS Code version: Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:10:15.214Z)
OS version: Windows_NT x64 10.0.19042
Restricted Mode: No
Remote OS version: Linux x64 4.19.128-microsoft-standard

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (8 x 1800)

GPU Status
2d_canvas: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledskia_renderer: enabled_onvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.22GB (4.24GB free)

Process Argv
--crash-reporter-id 4f5296a6-ea01-417d-8720-79952247e70a

Screen Reader
no

VM
0%

Item
Value

Remote
WSL: Ubuntu

OS
Linux x64 4.19.128-microsoft-standard

CPUs
Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz (8 x 1800)

Memory (System)
11.87GB (7.36GB free)

VM
0%

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551:30311712
vspre833:30321513
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscus158:30321503
pythonvsuse255:30340121
vscod805cf:30301675
pythonvspyt200:30340761
vscextlang:30333561
binariesv615:30325510
pythonvssor306cf:30341832
bridge0708:30335490

#128771 and #127826 also reported this bug.
I found another similar issue in July 2021 milestone, but I can't find it now.


text:
Active/Live Remote Kernel instance is not selected after it is started

While testing https://github.com/microsoft/vscode-jupyter/issues/9768, I was quite confused by the kernel picker UI.

I select "Python 3" unstarted (the only kernel at the start)
I run a cell
The kernel picker says the unstarted kernel is the currently selected kernel
There is a new entry that is the newly started kernel which is truly the currently selected kernel

Perhaps there is a solution in the proxy/lazy kernel work.

Closing this as not planned for now.

authors: DonJayamanne sbatten


text:
Experimental MRU setting from core

It's bad code smell that we are reading this setting in dozens of files, indicating we might need to see how to decouple them a bit. With that said, this PR doesn't try to solve this but only introducing a global place for checking if we are using the new kernel picker.

[x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[x] Title summarizes what is changing.
[ ] Has a news entry file (remember to thank yourself!).
[ ] Appropriate comments and documentation strings in the code.
[ ] Has sufficient logging.
[ ] Has telemetry for feature-requests.
[ ] Unit tests & system/integration tests are added/updated.
[ ] Test plan is updated as appropriate.
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).

Codecov Report

Merging #12025 (c586dfd) into main (147c8d8) will increase coverage by 0%.
The diff coverage is 67%.

@@           Coverage Diff           @@
##            main   #12025    +/-   ##
=======================================
  Coverage     62%      62%
=======================================
  Files        500      500
  Lines      35762    35785    +23
  Branches    5793     5795     +2
=======================================
+ Hits       22288    22429   +141
+ Misses     11373    11250   -123
- Partials    2101     2106     +5

Impacted Files
Coverage Δ

...ollers/commands/pickDocumentKernelSourceCommand.ts
33% <20%> (ø)

...lPythonAndRelatedNonPythonKernelSpecFinder.node.ts
64% <30%> (+<1%)
:arrow_up:

src/kernels/jupyter/serverSelector.ts
39% <50%> (-1%)
:arrow_down:

...rc/notebooks/controllers/controllerRegistration.ts
86% <50%> (+<1%)
:arrow_up:

...els/jupyter/finder/remoteKernelFinderController.ts
62% <66%> (ø)

src/notebooks/controllers/serviceRegistry.node.ts
93% <66%> (ø)

src/notebooks/serviceRegistry.node.ts
97% <66%> (ø)

src/standalone/serviceRegistry.node.ts
95% <66%> (ø)

src/platform/common/featureManager.ts
49% <82%> (ø)

src/extension.node.ts
76% <100%> (ø)

... and 32 more

source: gharchive/pull-request

authors: codecov-commenter rebornix


text:
Expanding PR from All Open section does nothing

Extension version: Prerelease v0.63.2023040609
VSCode Version:
Version: 1.78.0-insider (user setup)
Commit: 3e0b354932b8ddeb099c68ed3b7dfac25350dde2
Date: 2023-04-06T05:20:25.265Z
Electron: 22.4.3
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.25330
Sandboxed: Yes
OS: Windows 11

Steps to Reproduce:

Open GitHub view in activity bar
In the All Open section, click on the > carat next to a PR
The carat opens but doesn't show anything:

It's been a bit since I've tried this interaction, so maybe I'm forgetting an additional action to take or what the expected outcome is when clicking on > next to a PR in this section.
When I try expanding one of the local PRs, I do see additional info:

I know a rate limit was introduced last iteration (https://github.com/microsoft/vscode-pull-request-github/issues/4646), and I tried refreshing a bunch in this view to see if I'd hit the limit and get the warning. I never got the warning, but I wanted to mention this in case that's impacting anything.

@bamurtaugh I had to revert the rate limit right before release. Can you share the output from "GitHub Pull Request"?

repo: microsoft/vscode-pull-request-github


text:
Cannot "Run in Terminal" due to & (Git Bash)

Issue: Using Git Bash on a Windows Machine, the terminal will always begin with & and get a "syntax error". This happened on several different Windows machines today trying to set up their coding environment.
Environment data

VS Code version: 1.56.1
Extension version (available under the Extensions sidebar): v2021.5.829140558
OS and version:  Windows_NT x 64 10.0.19042
Python version (& distribution if applicable, e.g. Anaconda): 3.8.2
~Type of virtual environment used (N/A | venv | virtualenv | conda | ...): XXX~
~Relevant/affected Python packages and their versions: XXX~
~Relevant/affected Python-related VS Code extensions and their versions: XXX~
~Value of the python.languageServer setting: XXX~

Expected behaviour
Python program to run with syntax error related to bash
Actual behaviour
If you run a python script with the default terminal being "Git Bash", you get the following in the terminal:
& <python_path> <python_script_path>
The terminal then outputs
bash: syntax error near unexpected token `&'

Steps to reproduce:

Run Visual Studio Code with "Python Extension"
For any Python File, when you right-click and select "Run Python File in Terminal" while your default profile is on Git Bash
You will get & <python_path> <python_script_path> in the Git Bash Terminal
Output: bash: syntax error near unexpected token &'`

Additional Notes
Similar issue was reported here (2 years ago in the comments): https://github.com/microsoft/vscode-python/issues/5916
If I need to edit or clarify, let me know. I do not do issues often.
Was also happening on 10+ computers that had just installed VSCode and the Python Extension about 1:30 P.M. ET

Duplicate of #16175

authors: gateslm karthiknadig

repo: microsoft/vscode-python


text:
Rename symbol not working

Issue Type: Bug
Rename of class variable doesn't work. References to class variables are updated on after renaming.
Extension version: 2019.6.22090
VS Code version: Code 1.36.0 (0f3794b38477eea13fb47fbe15a42798e6129338, 2019-07-03T13:25:46.372Z)
OS version: Windows_NT x64 10.0.14393

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz (4 x 2496)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwareoop_rasterization: disabled_offprotected_video_decode: unavailable_offrasterization: enabledskia_deferred_display_list: disabled_offskia_renderer: disabled_offsurface_synchronization: enabled_onvideo_decode: enabledviz_display_compositor: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
7.90GB (3.16GB free)

Process Argv
--folder-uri file:///c%3A/develop/py/pts_py

Screen Reader
no

VM
0%

I'm closing this in favour of #52.
I'm assuming you are not using the language server, hence this would be a dup of #52. If you would like to use the new language server please check #3977 as this has better refactoring capabilities.

authors: DonJayamanne ankugarg


text:
python debug报错

f5调试 直接报错
Traceback (most recent call last):
File "c:\Users\Administrator.vscode\extensions\ms-python.python-2019.9.34911\pythonFiles\lib\python\ptvsd_vendored\pydevd_pydevd_bundle\pydevd_trace_dispatch_regular.py", line 440, in call
file_type = py_db.get_file_type(frame, abs_path_real_path_and_base)  # we don't want to debug threading or anything related to pydevd
File "c:\Users\Administrator.vscode\extensions\ms-python.python-2019.9.34911\pythonFiles\lib\python\ptvsd_vendored\pydevd\pydevd.py", line 705, in get_file_type
if self.dont_trace_external_files(abs_real_path_and_basename[0]):
File "c:\Users\Administrator.vscode\extensions\ms-python.python-2019.9.34911\pythonFiles\lib\python\ptvsd_vendored\pydevd_pydevd_bundle\pydevd_api.py", line 758, in custom_dont_trace_external_files
return abs_path.startswith(start_patterns) or abs_path.endswith(end_patterns)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xd6 in position 10: ordinal not in range(128)

Issue moved to microsoft/ptvsd #1777 via ZenHub


text:
Pylint not working

Environment data

VS Code version: 1.40.2
Extension version (available under the Extensions sidebar): 2019.11.50794
OS and version: MacOS and also Windows 7
Python version (& distribution if applicable, e.g. Anaconda): conda python version 3.6.9
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Relevant/affected Python packages and their versions: pylint 2.4.4
Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): no

Expected behaviour
Since pylint is enabled it should find errors when I call "run linting" or save the .py file.
{
    "python.pythonPath": "/usr/local/miniconda3/envs/tf2/bin/python",
    "python.linting.pylintEnabled": true,
    "python.linting.enabled": true
}

Actual behaviour
It does not find anything when I save or call "run linting".
Logs
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
nothing here...

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)
[Extension Host] Info Python Extension: 2019-12-04 21:13:15: Cached data exists getEnvironmentVariables, /Users/mike/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/jedi/third_party/typeshed/stdlib/2and3/builtins.pyi
console.ts:137 [Extension Host] Info Python Extension: 2019-12-04 21:13:15: > /usr/local/miniconda3/envs/tf2/bin/python -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/jedi/third_party/typeshed/stdlib/2and3/builtins.pyi
console.ts:137 [Extension Host] Info Python Extension: 2019-12-04 21:13:15: cwd: ~/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/jedi/third_party/typeshed/stdlib/2and3
console.ts:137 [Extension Host] Info Python Extension: 2019-12-04 21:13:15: > /usr/local/miniconda3/envs/tf2/bin/python -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text ~/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/jedi/third_party/typeshed/stdlib/2and3/builtins.pyi
console.ts:137 [Extension Host] Info Python Extension: 2019-12-04 21:13:15: cwd: ~/.vscode/extensions/ms-python.python-2019.11.50794/pythonFiles/lib/python/jedi/third_party/typeshed/stdlib/2and3

@PhilipMay, this isn't functionality related to the Python extension.  That said, from what I can tell pylint does give you the option.

@PhilipMay, in the "Python" output panel you should find the command that the extension is running to run pylint.  What happens when you run that command manually at the terminal?

Hi @ericsnowcurrently this here is the output when I run it from terminal:
It seems like pylint is called with wrong parameters.
(tf2) C:\Users\phmay\develop\git\mltb>c:\Users\phmay\AppData\Local\Continuum\miniconda3\envs\tf2\python.exe -m pylint --disable=all --enable=F,unreachable,duplicate-key,unnecessary-semicolon,global-variable-not-assigned,unused-variable,unused-wildcard-import,binary-op-exception,bad-format-string,anomalous-backslash-in-string,bad-open-mode,E0001,E0011,E0012,E0100,E0101,E0102,E0103,E0104,E0105,E0107,E0108,E0110,E0111,E0112,E0113,E0114,E0115,E0116,E0117,E0118,E0202,E0203,E0211,E0213,E0236,E0237,E0238,E0239,E0240,E0241,E0301,E0302,E0303,E0401,E0402,E0601,E0602,E0603,E0604,E0611,E0632,E0633,E0701,E0702,E0703,E0704,E0710,E0711,E0712,E1003,E1101,E1102,E1111,E1120,E1121,E1123,E1124,E1125,E1126,E1127,E1128,E1129,E1130,E1131,E1132,E1133,E1134,E1135,E1136,E1137,E1138,E1139,E1200,E1201,E1205,E1206,E1300,E1301,E1302,E1303,E1304,E1305,E1306,E1310,E1700,E1701 --msg-template='{line},{column},{category},{symbol}:{msg}' --reports=n --output-format=text
Usage:  pylint [options] modules_or_packages

  Check that module(s) satisfy a coding standard (and more !).

    pylint --help

  Display this help message and exit.

    pylint --help-msg <msg-id>[,<msg-id>]

  Display help messages about given message identifiers and exit.

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --long-help           more verbose help.
[...]

Looks like no files or directories were provided.  When I enable pylint, save my file, and check the "Python" output panel, I get the same command as you, but with the current file at the end of the command.  Is that current file not showing up for you in the output panel?  What happens if you run that command but with the path to the file added on?  Also, is this in a workspace?
FWIW, it's also possible that the commandline was truncated (at 912 characters), but that seems unlikely.

Well, somehow it works now. Thanks.
I will close this. Thanks for your support.

Glad to help!

authors: PhilipMay ericsnowcurrently


text:
Fix to return env variables of interpreter that is not current interpreter

For #10250

Codecov Report

Merging #10251 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master   #10251      +/-   ##
==========================================
+ Coverage   61.22%   61.24%   +0.01%
==========================================
  Files         567      567
  Lines       30868    30885      +17
  Branches     4433     4434       +1
==========================================
+ Hits        18900    18914      +14
- Misses      10985    10987       +2
- Partials      983      984       +1

Impacted Files
Coverage Δ

src/client/interpreter/activation/service.ts
90% <100%> (+5.06%)
:arrow_up:

src/client/common/logger.ts
80.86% <100%> (ø)
:arrow_up:

src/client/common/utils/platform.ts
64.7% <0%> (-11.77%)
:arrow_down:

src/client/linters/pydocstyle.ts
86.66% <0%> (-2.23%)
:arrow_down:

src/client/datascience/debugLocationTracker.ts
76.56% <0%> (-1.57%)
:arrow_down:

src/client/common/process/proc.ts
14.49% <0%> (-0.73%)
:arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2a8c475...eb10608. Read the comment docs.

authors: DonJayamanne codecov-io


text:
双击文件会重新自动编译

点开未展开的文件夹，双击下面的vue文件。vue项目会自动编译。我以为是webpack的问题。但我换到idea时，不会发生这样的情况

Closing issue since needed information was not provided.

authors: dbaeumer junMoXiaozzz

repo: microsoft/vscode


text:
File associations do not accept extensionless files

When defining the associated language to a file it is impossible to define a default language or a language to be used for files not which the extension is not given. For example if a file is called "CONFIG_H" I cannot tell VS code to treat it as C code because the file has no extension.
Why didn't I add an extension? Because it's a professional project hance I can't choose. Also, just get a full glob support in the first place

@CedT83 your issue can be solved by literally saying
"files.associations": {
  "CONFIG_H": "c"
}

I do the same for other types of files. The keys in "files.associations" are just basic glob patterns.


text:
Mouse wheel first scroll is ignored in VSCode editor

Indepenently on system settings, when scrolling code up and down using mouse scroll wheel after a longer pause in user input, the first scroll rib move is being ignored by VSCode and text does not scroll anywhere.
This seems to be be associated with some kind of timeout that may be designed to prevent accidental mousewheel scolling - as when mouse is scrolled again within a 5-10 seconds interval from the first scroll that "unlocks" scrolling, mouse reacts properly and always scrolls at every wheel slightest move.
Tried all possible mouse settings available in VCCode - nothing this problem.
Can mouse be please made sensitive and react to every input action properly without any artificial accidental mouse wheel scroll protection as this is a really annoying feature and makes the editor unusable.
Kind regards.

@botekp We react to all the mousewheel events coming in from Chromium / the OS. We have not implemented any such ignoring of mouse wheel events. What OS are you using?
VS Code is built with Electron, which is built with Chromium. Could you please try to open https://vscode-web-test-playground.azurewebsites.net/ in Chrome and see if you have this scroll problem there as well?

Hello Alex,
Thanks for a quick response. I tested the above https://vscode-web-test-playground.azurewebsites.net/ in Chrome and it yields the same result.
My system is Mint 19.3 x64 Cinnamon.
I tested scrolling in a text viewer called KRViewer and it does not demonstrate this problem at all. So I assume this may be specific to VS Code.
Is there any other tests I can do?
Cheers

@botekp Could you please also try https://vscode-web-test-playground.azurewebsites.net/ in Firefox?

authors: alexdima botekp


text:
Editor: links leak

Steps to Reproduce:

open a large JSON file (https://github.com/json-iterator/test-data/blob/master/large-file.json)
close the file
run a snapshot

=> 🐛 links.activeLinksList has thousands of entries still
https://github.com/microsoft/vscode/blob/7506b2ba5ae3ee1052bff44d2f5129a61312b37b/src/vs/editor/contrib/links/links.ts#L118-L118

I see that about 40 MB of retained size is only attributed to the links contribution. Removing it, I am down to 60 MB for that file and I see no retainers anymore after closing the editor that are of large size.

Nice catch!

Well, this isn't really a leak because this only holds on the last element, it doesn't accumulate over time

authors: alexdima bpasero jrieken


text:
Blocklist for intellisense suggestions

The Storybook project has recently started exporting hook functions from its @storybook/addons modules that shadow the names of the core hook functions exported by React project.
The result of this is that VSCode intellisense often suggests importing these hook functions instead of the ones from React, which is almost never what you want:

This is a real nightmare when coding, as often you'll end up importing the wrong one without even noticing, resulting in a error when you run the app.
It would be good if VSCode could provide a mechanism to block particular suggestions, based on their name and source.

The IntelliSense feature is powered by the TypeScript project. Please file a feature request upstream with an example of where this would be useful

authors: jonrimmer mjbvz


text:
vscode freezen

Issue Type: Bug
vscode is installed in the host windows 10 pc.   It is freezed when i login from guest machine by remote desktop,  It also keep the same state when i logout from guest pc.   It return to normal state after I restart vscode.
                                                                                Thanks.

VS Code version: Code 1.50.1 (d2e414d9e4239a252d1ab117bd7067f125afd80a, 2020-10-13T15:06:15.712Z)
OS version: Windows_NT x64 10.0.19041

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-4790 CPU @ 3.60GHz (8 x 3592)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.87GB (11.04GB free)

Process Argv
--crash-reporter-id 30670e9d-165b-4916-b579-797c5456f706

Screen Reader
no

VM
33%

Extensions (17)

Extension
Author (truncated)
Version

leek-fund
gis
1.6.4

gitignore
mic
1.0.1

vscode-docker
ms-
1.6.0

vscode-language-pack-zh-hans
MS-
1.50.2

vscode-kubernetes-tools
ms-
1.2.1

python
ms-
2020.9.114305

vscode-pylance
ms-
2020.10.1

remote-containers
ms-
0.145.0

remote-ssh
ms-
0.55.0

remote-wsl
ms-
0.50.0

vscode-remote-extensionpack
ms-
0.20.0

cmake-tools
ms-
1.4.2

cpptools
ms-
1.0.1

vetur
oct
0.28.0

erlang
pgo
0.6.5

vscode-yaml
red
0.11.1

cmake
twx
0.0.17

Could you attach a screenshot of the frozen VS Code window?

Can you check if the issue happens with our exploration builds

authors: chrmarti deepak1556 ycj


text:
TS Server fatal error:  Debug Failure.

Issue Type: Bug
❗❗❗ Please fill in the sections below to help us diagnose the issue ❗❗❗
TypeScript Version: 4.1.2
Steps to reproduce crash
1.
2.
3.
TS Server Log
❗Server logging disabled. To help us fix crashes like this, please enable logging by setting:
"typescript.tsserver.log": "verbose"

After enabling this setting, future crash reports will include the server log.
TS Server Error Stack
Server: semantic
Error: Debug Failure.
    at actualResolveModuleNamesWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:105102:161)
    at resolveModuleNamesWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:105340:26)
    at resolveModuleNamesReusingOldState (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:105530:19)
    at processImportedModules (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106941:35)
    at findSourceFileWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106713:17)
    at findSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106575:26)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:85
    at getSourceFileFromReferenceWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106499:34)
    at processSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:13)
    at processRootFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106342:13)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106911:21
    at Object.forEach (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:188:30)
    at processLibReferenceDirectives (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106906:16)
    at findSourceFileWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106710:21)
    at findSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106575:26)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:85
    at getSourceFileFromReferenceWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106499:34)
    at processSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:13)
    at processRootFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106342:13)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106911:21
    at Object.forEach (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:188:30)
    at processLibReferenceDirectives (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106906:16)
    at findSourceFileWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106710:21)
    at findSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106575:26)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:85
    at getSourceFileFromReferenceWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106499:34)
    at processSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:13)
    at processRootFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106342:13)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106911:21
    at Object.forEach (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:188:30)
    at processLibReferenceDirectives (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106906:16)
    at findSourceFileWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106710:21)
    at findSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106575:26)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:85
    at getSourceFileFromReferenceWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106499:34)
    at processSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:13)
    at processRootFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106342:13)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106911:21
    at Object.forEach (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:188:30)
    at processLibReferenceDirectives (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106906:16)
    at findSourceFileWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106710:21)
    at findSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106575:26)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:85
    at getSourceFileFromReferenceWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106499:34)
    at processSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:13)
    at processRootFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106342:13)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106911:21
    at Object.forEach (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:188:30)
    at processLibReferenceDirectives (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106906:16)
    at findSourceFileWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106710:21)
    at findSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106575:26)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:85
    at getSourceFileFromReferenceWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106499:34)
    at processSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:13)
    at processRootFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106342:13)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106911:21
    at Object.forEach (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:188:30)
    at processLibReferenceDirectives (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106906:16)
    at findSourceFileWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106710:21)
    at findSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106575:26)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:85
    at getSourceFileFromReferenceWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106499:34)
    at processSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:13)
    at processRootFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106342:13)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106911:21
    at Object.forEach (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:188:30)
    at processLibReferenceDirectives (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106906:16)
    at findSourceFileWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106710:21)
    at findSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106575:26)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:85
    at getSourceFileFromReferenceWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106499:34)
    at processSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:13)
    at processRootFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106342:13)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106911:21
    at Object.forEach (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:188:30)
    at processLibReferenceDirectives (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106906:16)
    at findSourceFileWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106710:21)
    at findSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106575:26)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:85
    at getSourceFileFromReferenceWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106499:34)
    at processSourceFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106532:13)
    at processRootFile (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:106342:13)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:105207:60
    at Object.forEach (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:188:30)
    at Object.createProgram (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:105207:16)
    at synchronizeHostData (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146570:26)
    at Proxy.getProgram (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:146662:13)
    at ConfiguredProject.Project.updateGraphWorker (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:151524:53)
    at ConfiguredProject.Project.updateGraph (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:151457:42)
    at ConfiguredProject.updateGraph (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:152412:63)
    at ProjectService.createLoadAndUpdateConfiguredProject (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:154141:25)
    at ProjectService.assignProjectToOpenedScriptInfo (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:155045:44)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:155385:97
    at Object.flatMap (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:513:25)
    at ProjectService.applyChangesInOpenFiles (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:155385:41)
    at Session.handlers.ts.Map.ts.getEntries._a.<computed> (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:156403:46)
    at c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158276:88
    at IOSession.Session.executeWithRequestId (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158267:28)
    at IOSession.Session.executeCommand (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158276:33)
    at IOSession.Session.onMessage (c:\Users\Ryzen\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\node_modules\typescript\lib\tsserver.js:158300:35)

VS Code version: Code 1.52.0 (940b5f4bb5fa47866a54529ed759d95d09ee80be, 2020-12-10T22:45:11.850Z)
OS version: Windows_NT x64 10.0.19042

System Info

Item
Value

CPUs
AMD Ryzen 3 2200G with Radeon Vega Graphics     (4 x 3493)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
14.95GB (7.66GB free)

Process Argv
--crash-reporter-id e5d69b3a-789d-4376-a1ec-58b0e5408e07

Screen Reader
no

VM
0%

Extensions (6)

Extension
Author (truncated)
Version

vscode-eslint
dba
2.1.14

vscode-deno
den
2.3.3

prettier-vscode
esb
5.8.0

python
ms-
2020.11.371526539

jupyter
ms-
2020.12.414227025

remote-wsl
ms-
0.52.0

A/B Experiments
vsliv368:30146709
vsreu685:30147344
openlogontheside:30221877
python763:30178808
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
python504:30227505
vswsl492:30211401
wsl2prompt:30224612
vstry914:30236575
unusedpromptcf:30224611
folderexplorercf:30224615
openfilemenucf:30224648
pythonvsded773:30236629

/needsMoreInfo

Also does this reproduce with all extensions disabled?

authors: mjbvz piotr-kwiatek


text:
console.log issues (urgent)

We have written the needed data into your clipboard because it was too large to send. Please paste.
Issue Type: Performance Issue
visual studio code will not let me console.log anything or fn f8 anything as well.
email is ragnarok769@gmail.com
VS Code version: Code 1.52.1 (ea3859d4ba2f3e577a159bc91e3074c5d85c0523, 2020-12-16T16:34:46.910Z)
OS version: Windows_NT x64 10.0.19041

System Info

Item
Value

CPUs
11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 2803)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: disabled_offopengl: enabled_onprotected_video_decode: enabledrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
11.80GB (6.40GB free)

Process Argv
--crash-reporter-id a6fd385c-6ced-4f13-9767-895a95663cec

Screen Reader
no

VM
0%

Process Info
CPU %	Mem MB	   PID	Process
    0	    74	  3408	code main
    1	    77	  3484	   window (Issue Reporter)
    0	    22	  6204	   crashpad-handler
    0	    36	 10304	   utility
    0	   156	 10404	   window (● loop - jsFundamentals - Visual Studio Code)
    0	    64	 17484	     searchService
    0	    91	 17772	     extensionHost
    0	    86	 17696	       "C:\Users\ragna\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\ragna\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\html-language-features\server\dist\node\htmlServerMain" --node-ipc --clientProcessId=17772
    0	    12	 18304	     watcherService
    0	    11	 18312	       console-window-host (Windows internal process)
    1	   201	 16564	   gpu-process
    0	    90	 18084	   shared-process

Workspace Info
|  Window (● loop - jsFundamentals - Visual Studio Code)
|    Folder (jsFundamentals): 35 files
|      File types: js(20) jpg(1) html(1) css(1)
|      Conf files:;

Extensions (5)

Extension
Author (truncated)
Version

git-project-manager
fel
1.7.1

csharp
ms-
1.23.8

python
ms-
2020.12.424452561

jupyter
ms-
2020.12.414227025

cpptools
ms-
1.1.3

A/B Experiments
vsliv368:30146709
vsreu685:30147344
openlogontheside:30221877
python763:30178808
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
python504:30227505
vswsl492:30211401
wsl2promptcf:30224613
vstry914:30236575
pythonvsdeb440cf:30237828
unusedprompt:30224610
folderexplorer:30224614
openfilemenu:30224647
pythonvsded773:30236629
vsjup459:30237187

Please provide reproducible steps.

Please provide reproducible steps.


text:
Webview does not paste clipboard text correctly by pressing Shift+Insert

VSCode Version: 1.52.1 and earlier
OS Version: Linux Ubuntu 20.04
OS Version: Windows 10

The problem can be observed with any Webview panel.
Steps to Reproduce:

Checkout Webview sample: vscode-extension-samples/webview-sample
In file src/extension.ts add these two lines

@@ -199,6 +199,8 @@ class CatCodingPanel {

0

+                               Input:
+                               <input type="text" id="input-text">

Start Debugging of the extension and in the new window open command "Cat Coding: Start cat coding session"
Focus on the "Input" text entry, type something and copy the text into the clipboard. In my case it is "123".
Paste the text by "Ctrl+V". Observe that the inserted text is correct
Paste the text by "Shift+Insert". Observe that the text is inserted twice. Expected - the text is inserted once

Does this issue occur when all extensions are disabled?: Yes

I have submitted a PR #114520 that fixes this issue

I have submitted a PR #114520 that fixes this issue