vscode-python: Discovering python interpreters never finishes due to presence of symbolic link loop

Type: Bug

Vscode Version: Visual Studio Code Insiders Extensions: Copilot Nightly, Copilot chat, Python, Pylance (Only these)

I’ve reviewed the former similar issues, but they can’t solve my problem(sad). I tried to set python.logging.level to “debug”, but it says this setting is deprecated. So the following is the only information I got.

output -> python: 2023-05-27 15:19:22.087 [info] Experiment ‘pythonPromptNewFormatterExt’ is active 2023-05-27 15:19:22.088 [info] Experiment ‘pythonPromptNewToolsExt’ is active 2023-05-27 15:19:22.088 [info] Test server listening. 2023-05-27 15:19:22.088 [info] > conda info --json 2023-05-27 15:20:11.876 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2023-05-27 15:20:11.898 [info] > python -c “import sys;print(sys.executable)” 2023-05-27 15:20:12.000 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.

Extension version: 2023.9.11461009 VS Code version: Code - Insiders 1.79.0-insider (2dfb838f494f035099e999f0cd0eff5f1f488a30, 2023-05-26T05:22:45.569Z) OS version: Windows_NT x64 10.0.22621 Modes: Unsupported Remote OS version: Linux x64 5.19.0-41-generic

System Info
Item Value
CPUs 12th Gen Intel® Core™ i5-12500H (16 x 3110)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 15.64GB (6.49GB free)
Process Argv –crash-reporter-id 19921559-5588-4c15-90c1-006c63d2772a --crash-reporter-id 19921559-5588-4c15-90c1-006c63d2772a
Screen Reader no
VM 0%
Item Value
Remote SSH: DstGPU
OS Linux x64 5.19.0-41-generic
CPUs Intel® Xeon® CPU E5-2650 v4 @ 2.20GHz (48 x 1200)
Memory (System) 251.78GB (214.46GB free)
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492cf:30256198
vslsvsres303:30308271
pythontb:30258533
vsc_aacf:30263846
pythonptprofiler:30281269
vshan820:30294714
vscod805:30301674
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593cf:30376535
pythonvs932:30404738
cppdebug:30492333
vsclangdf:30492506
c4g48928:30535728
dsvsc012:30540252
pynewext54:30618038
pylantcb52:30590116
pyind779:30611226
pythonsymbol12:30651887
2i9eh265:30646982
showlangstatbar:30737417
pythonms35:30671666
03d35959:30680466
ecj1e332:30687743
pythonfmttext:30716741
pythoncmvfstr:30726892
fixshowwlkth:30724385
showsbindicator:30724477
pythongtdpath:30726887

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 39

Commits related to this issue

Most upvoted comments

got it to repro in stable, and not in insiders 👍

@LachlanGreen Fix should be out, let me know if that helps.

@LachlanGreen Thanks. Based on the logs for some reason extension gets stuck when resolving:

Attempting to resolve symbolic link: /usr/local/bin/python3

Can you try deleting /usr/local/bin/python3 or moving/renaming it?

+1