Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two instances of Python extension running #3683

Closed
cmditch opened this issue Nov 27, 2022 · 6 comments
Closed

Two instances of Python extension running #3683

cmditch opened this issue Nov 27, 2022 · 6 comments

Comments

@cmditch
Copy link

cmditch commented Nov 27, 2022

Type: Bug

It almost seems as if the Python extension is running two daemons.

I get duplicate intellisense code completion suggestions (e.g. same function(s) will always appear twice); two function type inlay suggestions (e.g., "def thing() -> None -> None"); when renaming a file it says something along the lines of "2 extensions want to apply changes if you rename this file...". If I restart the editor the error can sometimes go away briefly, but it very often comes back.

Extension version: 2022.18.2
VS Code version: Code 1.73.1 (Universal) (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T02:08:38.961Z)
OS version: Darwin arm64 21.5.0
Modes:
Sandboxed: No
Remote OS version: Linux x64 5.4.0-1094-azure

System Info
Item Value
CPUs Apple M1 (8 x 24)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) 3, 3, 2
Memory (System) 16.00GB (0.09GB free)
Process Argv . --crash-reporter-id 508b0cbf-2a4d-4409-a2bd-ffb8926b9fea
Screen Reader no
VM 0%
Item Value
Remote Codespaces
OS Linux x64 5.4.0-1094-azure
CPUs Intel(R) Xeon(R) Platinum 8370C CPU @ 2.80GHz (2 x 2793)
Memory (System) 3.84GB (2.26GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdf:30486550
c4g48928:30535728
dsvsc012cf:30540253
azure-dev_surveyone:30548225
pyindex848cf:30577861
nodejswelcome1:30587005
3biah626:30602489
gswce1:30612156
iaj6b796:30613358
dbltrim-noruby:30604474
f6dab269:30613381

image

image

@brettcannon brettcannon transferred this issue from microsoft/vscode-python Nov 28, 2022
@rchiodo
Copy link
Contributor

rchiodo commented Nov 28, 2022

@cmditch are you opening any jupyter notebooks? This sounds like this bug here:
#3027 (comment)

@cmditch
Copy link
Author

cmditch commented Nov 28, 2022

Ahh @rchiodo, good catch. That explains the intermittent nature of the issue. Indeed, it seems to start happening whenever I open a notebook, and sticks around even after closing the notebook.

@rchiodo
Copy link
Contributor

rchiodo commented Nov 28, 2022

Did you try updating the jupyter extension to the prerelease version to see if the problem goes away?

@cmditch
Copy link
Author

cmditch commented Nov 28, 2022

I just tried the pre-release of the Jupyter extension v2022.11.1003301027.
image

Getting this error in the console [Extension Host] extension activation failed TypeError: s.notebooks.createNotebookControllerDetectionTask is not a function

Fwiw, setting "python.pylanceLspNotebooksEnabled": true has fixed the issue for me for the time being.

@rchiodo
Copy link
Contributor

rchiodo commented Nov 28, 2022

Oh that probably means the jupyter extension requires a newer VS code to run.

@rchiodo
Copy link
Contributor

rchiodo commented Nov 28, 2022

But the setting being true means it's the same issue. Thanks.

@rchiodo rchiodo closed this as completed Nov 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants