microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.32k stars 1.18k forks source link

Python interpreter loading stuck #24324

Open ruihangdu opened 5 days ago

ruihangdu commented 5 days ago

Type: Bug

Behaviour

When I load a Python project in vscode, I would see a "Discovering Python Interpreters" spin wheel on the bottom left corner of the window indefinitely, and I cannot use any intellisense features on the python file, including finding references & function definitions. I saw a bunch of errors in the Python extension output log about not being able to find miniconda3 path (I do not have miniconda installed on the machine anymore) but not sure if those are red herrings.

I have tried the suggestions in https://github.com/microsoft/vscode-python/issues/23956 to change "Python Locator" from "native" to "js" but that didn't work, so reaching out for help. Thank you!

Diagnostic data

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

``` 2024-10-20 10:13:32.384 [info] Experiment 'pythonRecommendTensorboardExt' is active 2024-10-20 10:13:32.384 [info] Experiment 'pythonSurveyNotificationcf' is active 2024-10-20 10:13:32.384 [info] Experiment 'pythonTerminalEnvVarActivation' is active 2024-10-20 10:13:32.384 [info] Experiment 'pythonTestAdapter' is active 2024-10-20 10:13:32.384 [warning] Dir "/Users/ray/xxx/.pixi/envs" is not watchable (directory does not exist) 2024-10-20 10:13:32.384 [info] Default formatter is set to null for workspace /Users/ray/xxx 2024-10-20 10:13:32.384 [info] Starting Environment refresh 2024-10-20 10:13:32.384 [info] Searching for interpreters in posix paths locator 2024-10-20 10:13:32.384 [info] Searching for pyenv environments 2024-10-20 10:13:32.384 [info] Searching for conda environments 2024-10-20 10:13:32.384 [info] Searching for global virtual environments 2024-10-20 10:13:32.384 [info] Searching for custom virtual environments 2024-10-20 10:13:32.384 [info] pyenv is not installed 2024-10-20 10:13:32.384 [info] Finished searching for pyenv environments: 5 milliseconds 2024-10-20 10:13:32.384 [info] Finished searching for custom virtual envs: 6 milliseconds 2024-10-20 10:13:32.384 [info] > conda info --json 2024-10-20 10:13:32.384 [info] > pixi --version 2024-10-20 10:13:32.384 [info] > hatch env show --json 2024-10-20 10:13:32.384 [info] cwd: . 2024-10-20 10:13:32.384 [info] > pyenv which python 2024-10-20 10:13:32.384 [info] cwd: . 2024-10-20 10:13:32.386 [info] Found: /usr/bin/python3 --> /usr/bin/python3 2024-10-20 10:13:32.387 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 10:13:32.390 [info] > ~/miniconda3/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:32.391 [info] > /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:32.392 [info] Finished searching for global virtual envs: 26 milliseconds 2024-10-20 10:13:32.393 [info] Found: /usr/local/bin/python3 --> /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-20 10:13:32.393 [error] [Error: Command failed: /Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py /bin/sh: /Users/ray/miniconda3/bin/python: No such file or directory at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:423:12) at ChildProcess.emit (node:events:531:35) at maybeClose (node:internal/child_process:1105:16) at Socket. (node:internal/child_process:457:11) at Socket.emit (node:events:519:28) at Pipe. (node:net:339:12)] { code: 127, killed: false, signal: null, cmd: '/Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py' } 2024-10-20 10:13:32.395 [info] Found: /usr/local/bin/python3.10 --> /usr/local/Cellar/python@3.10/3.10.15/Frameworks/Python.framework/Versions/3.10/bin/python3.10 2024-10-20 10:13:32.395 [info] > ~/.local/share/virtualenvs/NovaHackers-VHEqYW1v/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:32.396 [info] Found: /usr/local/bin/python3.11 --> /usr/local/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/bin/python3.11 2024-10-20 10:13:32.396 [info] Found: /usr/local/bin/python3.12 --> /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-20 10:13:32.397 [info] Found: /usr/local/bin/python3.9 --> /usr/local/Cellar/python@3.9/3.9.20/Frameworks/Python.framework/Versions/3.9/bin/python3.9 2024-10-20 10:13:33.038 [info] > ./venv/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:33.039 [info] Python interpreter path: /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-20 10:13:33.176 [info] > /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:33.224 [info] Finished searching for interpreters in posix paths locator: 858 milliseconds 2024-10-20 10:13:33.228 [info] Environments refresh paths discovered (event): 863 milliseconds 2024-10-20 10:13:33.228 [info] Environments refresh paths discovered: 863 milliseconds 2024-10-20 10:13:33.493 [info] > /usr/local/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:33.546 [info] > /usr/local/bin/python3.10 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:34.653 [info] > /usr/local/bin/python3.11 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:35.814 [info] > /usr/local/bin/python3.9 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:37.024 [info] > ~/miniconda3/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:37.026 [error] [Error: Command failed: /Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py /bin/sh: /Users/ray/miniconda3/bin/python: No such file or directory at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:423:12) at ChildProcess.emit (node:events:531:35) at maybeClose (node:internal/child_process:1105:16) at Socket. (node:internal/child_process:457:11) at Socket.emit (node:events:519:28) at Pipe. (node:net:339:12)] { code: 127, killed: false, signal: null, cmd: '/Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py' } 2024-10-20 10:13:41.919 [info] Experiment 'pythonRecommendTensorboardExt' is active 2024-10-20 10:13:41.919 [info] Experiment 'pythonSurveyNotificationcf' is active 2024-10-20 10:13:41.919 [info] Experiment 'pythonTerminalEnvVarActivation' is active 2024-10-20 10:13:41.919 [info] Experiment 'pythonTestAdapter' is active 2024-10-20 10:13:41.919 [warning] Dir "/Users/ray/xxx/.pixi/envs" is not watchable (directory does not exist) 2024-10-20 10:13:41.919 [info] Default formatter is set to null for workspace /Users/ray/xxx 2024-10-20 10:13:41.919 [info] Starting Environment refresh 2024-10-20 10:13:41.919 [info] Searching for interpreters in posix paths locator 2024-10-20 10:13:41.919 [info] Searching for pyenv environments 2024-10-20 10:13:41.919 [info] Searching for conda environments 2024-10-20 10:13:41.919 [info] Searching for global virtual environments 2024-10-20 10:13:41.919 [info] Searching for custom virtual environments 2024-10-20 10:13:41.919 [info] pyenv is not installed 2024-10-20 10:13:41.919 [info] Finished searching for pyenv environments: 62 milliseconds 2024-10-20 10:13:41.919 [info] Finished searching for custom virtual envs: 62 milliseconds 2024-10-20 10:13:41.919 [info] > conda info --json 2024-10-20 10:13:41.919 [info] > pixi --version 2024-10-20 10:13:41.919 [info] > hatch env show --json 2024-10-20 10:13:41.919 [info] cwd: . 2024-10-20 10:13:41.919 [info] > pyenv which python 2024-10-20 10:13:41.919 [info] cwd: . 2024-10-20 10:13:42.012 [info] Found: /usr/bin/python3 --> /usr/bin/python3 2024-10-20 10:13:42.042 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 10:13:42.064 [info] Found: /usr/local/bin/python3 --> /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-20 10:13:42.070 [info] > ~/miniconda3/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:42.073 [info] > /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:42.157 [info] Python interpreter path: /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-20 10:13:42.159 [info] Found: /usr/local/bin/python3.10 --> /usr/local/Cellar/python@3.10/3.10.15/Frameworks/Python.framework/Versions/3.10/bin/python3.10 2024-10-20 10:13:42.179 [error] [Error: Command failed: /Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py /bin/sh: /Users/ray/miniconda3/bin/python: No such file or directory at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:423:12) at ChildProcess.emit (node:events:531:35) at maybeClose (node:internal/child_process:1105:16) at Socket. (node:internal/child_process:457:11) at Socket.emit (node:events:519:28) at Pipe. (node:net:339:12)] { code: 127, killed: false, signal: null, cmd: '/Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py' } 2024-10-20 10:13:42.191 [info] Found: /usr/local/bin/python3.11 --> /usr/local/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/bin/python3.11 2024-10-20 10:13:42.201 [info] Found: /usr/local/bin/python3.12 --> /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-20 10:13:42.204 [info] Found: /usr/local/bin/python3.9 --> /usr/local/Cellar/python@3.9/3.9.20/Frameworks/Python.framework/Versions/3.9/bin/python3.9 2024-10-20 10:13:42.205 [info] > ./venv/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:42.205 [info] Finished searching for global virtual envs: 639 milliseconds 2024-10-20 10:13:42.222 [info] > ~/.local/share/virtualenvs/NovaHackers-VHEqYW1v/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:42.275 [info] Finished searching for interpreters in posix paths locator: 710 milliseconds 2024-10-20 10:13:42.281 [info] Environments refresh paths discovered (event): 716 milliseconds 2024-10-20 10:13:42.281 [info] Environments refresh paths discovered: 716 milliseconds 2024-10-20 10:13:42.302 [info] > /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:42.534 [info] > /usr/local/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:42.613 [info] > /usr/local/bin/python3.10 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:42.667 [info] > /usr/local/bin/python3.11 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:42.734 [info] > /usr/local/bin/python3.9 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:44.185 [info] > ~/miniconda3/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 10:13:44.187 [error] [Error: Command failed: /Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py /bin/sh: /Users/ray/miniconda3/bin/python: No such file or directory at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:423:12) at ChildProcess.emit (node:events:531:35) at maybeClose (node:internal/child_process:1105:16) at Socket. (node:internal/child_process:457:11) at Socket.emit (node:events:519:28) at Pipe. (node:net:339:12)] { code: 127, killed: false, signal: null, cmd: '/Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py' } 2024-10-20 20:51:11.503 [info] Experiment 'pythonRecommendTensorboardExt' is active 2024-10-20 20:51:11.503 [info] Experiment 'pythonSurveyNotificationcf' is active 2024-10-20 20:51:11.503 [info] Experiment 'pythonTerminalEnvVarActivation' is active 2024-10-20 20:51:11.503 [info] Experiment 'pythonTestAdapter' is active 2024-10-20 20:51:11.503 [warning] Dir "/Users/ray/Development/active_workspace/python_example/.pixi/envs" is not watchable (directory does not exist) 2024-10-20 20:51:11.503 [info] Default formatter is set to null for workspace /Users/ray/Development/active_workspace/python_example 2024-10-20 20:51:11.503 [info] Starting Environment refresh 2024-10-20 20:51:11.503 [info] Searching for interpreters in posix paths locator 2024-10-20 20:51:11.503 [info] Searching for pyenv environments 2024-10-20 20:51:11.503 [info] Searching for conda environments 2024-10-20 20:51:11.503 [info] Searching for global virtual environments 2024-10-20 20:51:11.503 [info] Searching for custom virtual environments 2024-10-20 20:51:11.503 [info] pyenv is not installed 2024-10-20 20:51:11.503 [info] Finished searching for pyenv environments: 21 milliseconds 2024-10-20 20:51:11.503 [info] Finished searching for custom virtual envs: 22 milliseconds 2024-10-20 20:51:11.503 [info] > conda info --json 2024-10-20 20:51:11.503 [info] > pixi --version 2024-10-20 20:51:11.503 [info] > hatch env show --json 2024-10-20 20:51:11.503 [info] cwd: . 2024-10-20 20:51:11.503 [warning] Failed to check if /Users/ray/miniconda3/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/ray/miniconda3/bin/python'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/Users/ray/miniconda3/bin/python' } 2024-10-20 20:51:11.507 [warning] Failed to check if /Users/ray/miniconda3/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/ray/miniconda3/bin/python'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/Users/ray/miniconda3/bin/python' } 2024-10-20 20:51:11.510 [info] > pyenv which python 2024-10-20 20:51:11.510 [info] cwd: . 2024-10-20 20:51:11.513 [info] Found: /usr/bin/python3 --> /usr/bin/python3 2024-10-20 20:51:11.540 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 20:51:11.541 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 20:51:11.542 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 20:51:11.543 [info] Found: /usr/local/bin/python3 --> /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-20 20:51:11.545 [info] > ~/miniconda3/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 20:51:11.547 [info] Found: /usr/local/bin/python3.10 --> /usr/local/Cellar/python@3.10/3.10.15/Frameworks/Python.framework/Versions/3.10/bin/python3.10 2024-10-20 20:51:11.547 [info] Finished searching for global virtual envs: 339 milliseconds 2024-10-20 20:51:11.547 [info] Found: /usr/local/bin/python3.11 --> /usr/local/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/bin/python3.11 2024-10-20 20:51:11.547 [info] Found: /usr/local/bin/python3.12 --> /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-20 20:51:11.548 [info] Found: /usr/local/bin/python3.9 --> /usr/local/Cellar/python@3.9/3.9.20/Frameworks/Python.framework/Versions/3.9/bin/python3.9 2024-10-20 20:51:11.550 [info] > ~/.local/share/virtualenvs/NovaHackers-VHEqYW1v/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 20:51:11.559 [error] [Error: Command failed: /Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py /bin/sh: /Users/ray/miniconda3/bin/python: No such file or directory at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:423:12) at ChildProcess.emit (node:events:531:35) at maybeClose (node:internal/child_process:1105:16) at Socket. (node:internal/child_process:457:11) at Socket.emit (node:events:519:28) at Pipe. (node:net:339:12)] { code: 127, killed: false, signal: null, cmd: '/Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py' } 2024-10-20 20:51:11.567 [info] > /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 20:51:11.599 [info] Finished searching for interpreters in posix paths locator: 392 milliseconds 2024-10-20 20:51:11.605 [info] Environments refresh paths discovered (event): 397 milliseconds 2024-10-20 20:51:11.605 [info] Environments refresh paths discovered: 398 milliseconds 2024-10-20 20:51:11.869 [info] > /usr/local/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 20:51:13.341 [info] > /usr/local/bin/python3.10 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 20:51:14.340 [info] > /usr/local/bin/python3.11 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 20:51:15.559 [info] > /usr/local/bin/python3.9 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 20:51:16.723 [info] > ~/miniconda3/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-20 20:51:16.725 [error] [Error: Command failed: /Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py /bin/sh: /Users/ray/miniconda3/bin/python: No such file or directory at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:423:12) at ChildProcess.emit (node:events:531:35) at maybeClose (node:internal/child_process:1105:16) at Socket. (node:internal/child_process:457:11) at Socket.emit (node:events:519:28) at Pipe. (node:net:339:12)] { code: 127, killed: false, signal: null, cmd: '/Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py' } 2024-10-20 20:51:16.728 [warning] Failed to check if /Users/ray/miniconda3/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/ray/miniconda3/bin/python'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/Users/ray/miniconda3/bin/python' } 2024-10-20 20:51:16.728 [warning] Failed to check if /Users/ray/miniconda3/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/ray/miniconda3/bin/python'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/Users/ray/miniconda3/bin/python' } 2024-10-20 20:51:16.728 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 20:51:16.728 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 20:51:28.457 [warning] Failed to check if /Users/ray/miniconda3/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/ray/miniconda3/bin/python'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/Users/ray/miniconda3/bin/python' } 2024-10-20 20:51:28.457 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 20:51:28.458 [warning] Failed to check if /Users/ray/miniconda3/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/ray/miniconda3/bin/python'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/Users/ray/miniconda3/bin/python' } 2024-10-20 20:51:28.459 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 20:52:24.764 [warning] Failed to check if /Users/ray/miniconda3/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/ray/miniconda3/bin/python'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/Users/ray/miniconda3/bin/python' } 2024-10-20 20:52:24.764 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 20:52:35.225 [info] Python interpreter path: /usr/local/bin/python3 2024-10-20 20:53:28.870 [info] Discover tests for workspace name: python_example - uri: /Users/ray/Development/active_workspace/python_example/example.py 2024-10-20 20:54:16.996 [warning] Failed to check if /Users/ray/miniconda3/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/ray/miniconda3/bin/python'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/Users/ray/miniconda3/bin/python' } 2024-10-20 20:54:16.996 [warning] Failed to check if /Users/ray/miniconda3/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/ray/miniconda3/bin/python'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/Users/ray/miniconda3/bin/python' } 2024-10-20 20:54:16.996 [warning] Failed to check if /Users/ray/miniconda3/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/ray/miniconda3/bin/python'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/Users/ray/miniconda3/bin/python' } 2024-10-20 20:54:16.997 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 20:54:16.997 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 20:54:16.997 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-20 20:54:21.837 [warning] Failed to check if /Users/ray/miniconda3/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/ray/miniconda3/bin/python'] { errno: -2, code: 'ENOENT', syscall: 'lstat', path: '/Users/ray/miniconda3/bin/python' } 2024-10-20 20:54:21.837 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } ```

Extension version: 2024.16.1 VS Code version: Code 1.94.2 (Universal) (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z) OS version: Darwin arm64 22.6.0 Modes:

User Settings

``` languageServer: "Pylance" ```

Installed Extensions |Extension Name|Extension Id|Version| |---|---|---| |autopep8|ms-python.autopep8|2024.0.0| |Bookmarks|alefragnani.Bookmarks|13.5.0| |C/C++|ms-vscode.cpptools|1.22.9| |Cline (prev. Claude Dev)|saoudrizwan.claude-dev|2.0.15| |Continue - Codestral, Claude, and more|Continue.continue|0.8.54| |Create Files & Folders : On The Go|ritwickdey.create-file-folder|0.0.5| |Docker|ms-azuretools.vscode-docker|1.29.3| |Go|golang.go|0.42.1| |JavaScript Debugger|ms-vscode.js-debug|1.94.0| |JavaScript Debugger Companion Extension|ms-vscode.js-debug-companion|1.1.3| |Jupyter|ms-toolsai.jupyter|2024.9.1| |Jupyter Cell Tags|ms-toolsai.vscode-jupyter-cell-tags|0.1.9| |Jupyter Keymap|ms-toolsai.jupyter-keymap|1.1.2| |Jupyter Notebook Renderers|ms-toolsai.jupyter-renderers|1.0.19| |Jupyter Slide Show|ms-toolsai.vscode-jupyter-slideshow|0.1.6| |Live Share|ms-vsliveshare.vsliveshare|1.0.5941| |Markdown Preview Enhanced|shd101wyy.markdown-preview-enhanced|0.8.14| |Pylance|ms-python.vscode-pylance|2024.10.1| |Python|ms-python.python|2024.16.1| |Python Debugger|ms-python.debugpy|2024.12.0| |Table Visualizer for JavaScript Profiles|ms-vscode.vscode-js-profile-table|1.0.10| |Vim|vscodevim.vim|1.28.1|
System Info |Item|Value| |---|---| |CPUs|Apple M2 (8 x 2400)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off| |Load (avg)|6, 5, 5| |Memory (System)|24.00GB (0.12GB free)| |Process Argv|--crash-reporter-id 5e80e263-c5cd-4946-9f22-ec09cf61380e| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 binariesv615:30325510 vsaa593:30376534 py29gd2263:31024239 vscaac:30438847 c4g48928:30535728 azure-dev_surveyone:30548225 962ge761:30959799 pythongtdpath:30769146 pythonnoceb:30805159 asynctok:30898717 pythonmypyd1:30879173 h48ei257:31000450 pythontbext0:30879054 accentitlementst:30995554 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 dsvsc021:30996838 f3je6385:31013174 dvdeprecation:31068756 dwnewjupytercf:31046870 newcmakeconfigv2:31071590 impr_priority:31102340 nativerepl1:31139838 refactort:31108082 pythonrstrctxt:31112756 wkspc-onlycs-t:31132770 nativeloc1:31134641 wkspc-ranged-t:31151552 cf971741:31144450 autoexpandse:31146404 iacca1:31156133 notype1:31157159 5fd0e150:31155592 dwcopilot:31162478 iconenabled:31158251 ```
karthiknadig commented 4 days ago

@ruihangdu Can you try running "Python: Clear Cache and Reload"? You can clear any changes you did to python.locator.

ruihangdu commented 3 days ago

Ok I'm now seeing some different errors:

Python Output

``` 2024-10-22 00:21:29.058 [info] Experiment 'pythonRecommendTensorboardExt' is active 2024-10-22 00:21:29.058 [info] Experiment 'pythonSurveyNotificationcf' is active 2024-10-22 00:21:29.058 [info] Experiment 'pythonTerminalEnvVarActivation' is active 2024-10-22 00:21:29.058 [info] Experiment 'pythonTestAdapter' is active 2024-10-22 00:21:29.058 [warning] Dir "/Users/ray/Development/active_workspace/python_example/.pixi/envs" is not watchable (directory does not exist) 2024-10-22 00:21:29.058 [info] Default formatter is set to null for workspace /Users/ray/Development/active_workspace/python_example 2024-10-22 00:21:29.058 [info] Starting Environment refresh 2024-10-22 00:21:29.058 [info] Searching for interpreters in posix paths locator 2024-10-22 00:21:29.058 [info] Searching for pyenv environments 2024-10-22 00:21:29.058 [info] Searching for conda environments 2024-10-22 00:21:29.058 [info] Searching for global virtual environments 2024-10-22 00:21:29.058 [info] Searching for custom virtual environments 2024-10-22 00:21:29.058 [info] pyenv is not installed 2024-10-22 00:21:29.058 [info] Finished searching for pyenv environments: 35 milliseconds 2024-10-22 00:21:29.058 [info] Finished searching for custom virtual envs: 35 milliseconds 2024-10-22 00:21:29.058 [info] > conda info --json 2024-10-22 00:21:29.058 [info] > pixi --version 2024-10-22 00:21:29.058 [info] > hatch env show --json 2024-10-22 00:21:29.058 [info] cwd: . 2024-10-22 00:21:29.058 [info] > pyenv which python 2024-10-22 00:21:29.058 [info] cwd: . 2024-10-22 00:21:29.060 [info] Found: /usr/bin/python3 --> /usr/bin/python3 2024-10-22 00:21:29.119 [warning] Identifier for virt-virtualenv failed to identify /Users/ray/miniconda3/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/ray/miniconda3/bin'] { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/Users/ray/miniconda3/bin' } 2024-10-22 00:21:29.152 [info] Found: /usr/local/bin/python3 --> /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-22 00:21:29.154 [info] > ~/miniconda3/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:29.156 [info] Finished searching for global virtual envs: 356 milliseconds 2024-10-22 00:21:29.156 [info] Found: /usr/local/bin/python3.10 --> /usr/local/Cellar/python@3.10/3.10.15/Frameworks/Python.framework/Versions/3.10/bin/python3.10 2024-10-22 00:21:29.158 [info] Found: /usr/local/bin/python3.11 --> /usr/local/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/bin/python3.11 2024-10-22 00:21:29.158 [error] [Error: Command failed: /Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py /bin/sh: /Users/ray/miniconda3/bin/python: No such file or directory at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:423:12) at ChildProcess.emit (node:events:531:35) at maybeClose (node:internal/child_process:1105:16) at Socket. (node:internal/child_process:457:11) at Socket.emit (node:events:519:28) at Pipe. (node:net:339:12)] { code: 127, killed: false, signal: null, cmd: '/Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py' } 2024-10-22 00:21:29.158 [info] > /usr/local/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:29.158 [info] Found: /usr/local/bin/python3.12 --> /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-22 00:21:29.159 [info] Found: /usr/local/bin/python3.9 --> /usr/local/Cellar/python@3.9/3.9.20/Frameworks/Python.framework/Versions/3.9/bin/python3.9 2024-10-22 00:21:29.162 [info] > ~/.local/share/virtualenvs/NovaHackers-VHEqYW1v/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:29.819 [info] Finished searching for interpreters in posix paths locator: 1019 milliseconds 2024-10-22 00:21:29.822 [info] Environments refresh paths discovered (event): 1023 milliseconds 2024-10-22 00:21:29.823 [info] Environments refresh paths discovered: 1024 milliseconds 2024-10-22 00:21:30.669 [info] > /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:30.671 [info] Python interpreter path: /usr/local/bin/python3 2024-10-22 00:21:30.913 [info] > /usr/local/bin/python3.10 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:31.813 [info] > /usr/local/bin/python3.11 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:32.966 [info] > /usr/local/bin/python3.9 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:34.022 [info] > ~/miniconda3/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:34.025 [error] [Error: Command failed: /Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py /bin/sh: /Users/ray/miniconda3/bin/python: No such file or directory at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:423:12) at ChildProcess.emit (node:events:531:35) at maybeClose (node:internal/child_process:1105:16) at Socket. (node:internal/child_process:457:11) at Socket.emit (node:events:519:28) at Pipe. (node:net:339:12)] { code: 127, killed: false, signal: null, cmd: '/Users/ray/miniconda3/bin/python -I /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py /Users/ray/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py' } 2024-10-22 00:21:45.632 [info] Experiment 'pythonRecommendTensorboardExt' is active 2024-10-22 00:21:45.632 [info] Experiment 'pythonSurveyNotificationcf' is active 2024-10-22 00:21:45.632 [info] Experiment 'pythonTerminalEnvVarActivation' is active 2024-10-22 00:21:45.632 [info] Experiment 'pythonTestAdapter' is active 2024-10-22 00:21:45.640 [warning] Dir "/Users/ray/Development/active_workspace/python_example/.pixi/envs" is not watchable (directory does not exist) 2024-10-22 00:21:45.656 [info] Default formatter is set to null for workspace /Users/ray/Development/active_workspace/python_example 2024-10-22 00:21:45.660 [info] Starting Environment refresh 2024-10-22 00:21:45.660 [info] Searching for interpreters in posix paths locator 2024-10-22 00:21:45.661 [info] Searching for pyenv environments 2024-10-22 00:21:45.662 [info] Searching for conda environments 2024-10-22 00:21:45.662 [info] Searching for global virtual environments 2024-10-22 00:21:45.662 [info] Searching for custom virtual environments 2024-10-22 00:21:45.669 [info] pyenv is not installed 2024-10-22 00:21:45.669 [info] Finished searching for pyenv environments: 9 milliseconds 2024-10-22 00:21:45.669 [info] Finished searching for custom virtual envs: 9 milliseconds 2024-10-22 00:21:45.671 [info] > conda info --json 2024-10-22 00:21:45.673 [info] > pixi --version 2024-10-22 00:21:45.674 [info] > hatch env show --json 2024-10-22 00:21:45.674 [info] cwd: . 2024-10-22 00:21:45.679 [info] > pyenv which python 2024-10-22 00:21:45.679 [info] cwd: . 2024-10-22 00:21:45.916 [info] Found: /usr/bin/python3 --> /usr/bin/python3 2024-10-22 00:21:45.930 [info] > pyenv which python 2024-10-22 00:21:45.930 [info] cwd: . 2024-10-22 00:21:45.948 [info] Finished searching for global virtual envs: 288 milliseconds 2024-10-22 00:21:45.981 [info] Found: /usr/local/bin/python3 --> /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-22 00:21:46.010 [info] Found: /usr/local/bin/python3.10 --> /usr/local/Cellar/python@3.10/3.10.15/Frameworks/Python.framework/Versions/3.10/bin/python3.10 2024-10-22 00:21:46.011 [info] Found: /usr/local/bin/python3.11 --> /usr/local/Cellar/python@3.11/3.11.10/Frameworks/Python.framework/Versions/3.11/bin/python3.11 2024-10-22 00:21:46.013 [info] Found: /usr/local/bin/python3.12 --> /usr/local/Cellar/python@3.12/3.12.7/Frameworks/Python.framework/Versions/3.12/bin/python3.12 2024-10-22 00:21:46.015 [info] > ~/.local/share/virtualenvs/NovaHackers-VHEqYW1v/bin/python -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:46.016 [info] Found: /usr/local/bin/python3.9 --> /usr/local/Cellar/python@3.9/3.9.20/Frameworks/Python.framework/Versions/3.9/bin/python3.9 2024-10-22 00:21:46.037 [info] > /usr/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:46.661 [info] > /usr/local/bin/python3 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:46.695 [info] Finished searching for interpreters in posix paths locator: 1036 milliseconds 2024-10-22 00:21:46.700 [info] Environments refresh paths discovered (event): 1041 milliseconds 2024-10-22 00:21:46.700 [info] Environments refresh paths discovered: 1041 milliseconds 2024-10-22 00:21:46.723 [info] > /usr/local/bin/python3.10 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:46.766 [info] > /usr/local/bin/python3.11 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:21:46.810 [info] > /usr/local/bin/python3.9 -I ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.16.1-darwin-arm64/python_files/interpreterInfo.py 2024-10-22 00:22:35.672 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2024-10-22 00:22:35.673 [info] > python -c "import sys;print(sys.executable)" 2024-10-22 00:22:35.676 [error] [Error: Command failed: python -c "import sys;print(sys.executable)" /bin/sh: python: command not found at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:423:12) at ChildProcess.emit (node:events:531:35) at maybeClose (node:internal/child_process:1105:16) at Socket. (node:internal/child_process:457:11) at Socket.emit (node:events:519:28) at Pipe. (node:net:339:12)] { code: 127, killed: false, signal: null, cmd: 'python -c "import sys;print(sys.executable)"' } 2024-10-22 00:22:35.932 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2024-10-22 00:23:02.446 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2024-10-22 00:23:12.450 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2024-10-22 00:23:15.769 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2024-10-22 00:23:20.625 [info] Discover tests for workspace name: undefined - uri: /Users/ray/Library/Application Support/Code/User/settings.json 2024-10-22 00:23:23.738 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2024-10-22 00:23:25.681 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2024-10-22 00:23:25.940 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2024-10-22 00:23:38.990 [info] Experiment 'pythonRecommendTensorboardExt' is active 2024-10-22 00:23:38.990 [info] Experiment 'pythonSurveyNotificationcf' is active 2024-10-22 00:23:38.990 [info] Experiment 'pythonTerminalEnvVarActivation' is active 2024-10-22 00:23:38.990 [info] Experiment 'pythonTestAdapter' is active 2024-10-22 00:23:38.994 [info] Native locator: Refresh started 2024-10-22 00:23:39.010 [info] Default formatter is set to null for workspace /Users/ray/Development/active_workspace/python_example 2024-10-22 00:23:39.013 [info] Native locator: Refresh started 2024-10-22 00:23:39.025 [info] > pyenv which python 2024-10-22 00:23:39.025 [info] cwd: . 2024-10-22 00:23:39.274 [info] > pyenv which python 2024-10-22 00:23:39.274 [info] cwd: . 2024-10-22 00:23:39.286 [info] > conda info --json 2024-10-22 00:24:29.027 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2024-10-22 00:24:29.032 [info] > pixi --version 2024-10-22 00:24:29.036 [info] > python -c "import sys;print(sys.executable)" 2024-10-22 00:24:29.043 [error] [Error: Command failed: python -c "import sys;print(sys.executable)" /bin/sh: python: command not found at genericNodeError (node:internal/errors:984:15) at wrappedFn (node:internal/errors:538:14) at ChildProcess.exithandler (node:child_process:423:12) at ChildProcess.emit (node:events:531:35) at maybeClose (node:internal/child_process:1105:16) at Socket. (node:internal/child_process:457:11) at Socket.emit (node:events:519:28) at Pipe. (node:net:339:12)] { code: 127, killed: false, signal: null, cmd: 'python -c "import sys;print(sys.executable)"' } 2024-10-22 00:24:29.268 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2024-10-22 00:25:19.048 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. 2024-10-22 00:25:19.273 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. ```

karthiknadig commented 3 days ago

@ruihangdu Can you try the pre-release version of the extension? Can you also check your settings and see if there is anything there that points to a non-existing environment?

ruihangdu commented 3 days ago

Can you also check your settings and see if there is anything there that points to a non-existing environment?

I did check my settings, but didn't see anything standing out. Is there any specific part of the setting I should take a deeper look at?

karthiknadig commented 3 days ago

Check condaPath, pythonPath, defaultInterpreterPath. Did you try the insider's version of the python extension?

ruihangdu commented 3 days ago

In my VSCode settings, condaPath is empty, I didn't quite find pythonPath, and I updated to defaultInterpreterPath to python3, which points to

▶ which python3
/usr/local/bin/python3

I installed the pre-release version and I saw the following log:

2024-10-22 21:29:45.997 [info] Experiment 'pythonRecommendTensorboardExt' is active
2024-10-22 21:29:45.997 [info] Experiment 'pythonSurveyNotificationcf' is active
2024-10-22 21:29:45.997 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2024-10-22 21:29:45.997 [info] Experiment 'pythonTestAdapter' is active
2024-10-22 21:29:45.997 [info] Native locator: Refresh started
2024-10-22 21:29:45.997 [info] Native locator: Refresh started
2024-10-22 21:29:45.997 [info] > pyenv which python
2024-10-22 21:29:45.997 [info] cwd: .
2024-10-22 21:29:46.040 [info] > conda info --json
2024-10-22 21:29:46.082 [info] Python interpreter path: /usr/local/bin/python3

But I still don't see any log line that indicates Pylance has been loaded, and intellisense is still not working.

karthiknadig commented 3 days ago

Tis is strange. What do you see in Output > Python Locator? Also, open Help > Toggle Developer Tools and share any errors you see there.