В частности, выходные данные выглядят следующим образом:
Код: Выделить всё
2025-01-14 10:38:06.310 [info] Finished searching for custom virtual envs: 111 milliseconds
2025-01-14 10:38:06.313 [info] > conda info --json
2025-01-14 10:38:06.317 [info] > pixi --version
2025-01-14 10:38:06.319 [info] > hatch env show --json
2025-01-14 10:38:06.319 [info] cwd: .
2025-01-14 10:38:06.320 [warning] Failed to check if /Users/hericks/Documents/some-outdated-project/.venv/bin/python is an executable [Error: ENOENT: no such file or directory, lstat '/Users/hericks/Documents/some-outdated-project/.venv/bin/python'] {
errno: -2,
code: 'ENOENT',
syscall: 'lstat',
path: '/Users/hericks/Documents/some-outdated-project/.venv/bin/python'
}
2025-01-14 10:38:06.616 [info] > ~/.pyenv/bin/pyenv which python
2025-01-14 10:38:06.621 [info] cwd: .
2025-01-14 10:38:06.622 [info] Finished searching for global virtual envs: 423 milliseconds
2025-01-14 10:38:06.666 [info] > hatch env find default
2025-01-14 10:38:06.666 [info] cwd: .
2025-01-14 10:38:06.666 [info] > hatch env find hatch-build
2025-01-14 10:38:06.666 [info] cwd: .
2025-01-14 10:38:06.666 [info] > hatch env find hatch-static-analysis
2025-01-14 10:38:06.666 [info] cwd: .
2025-01-14 10:38:06.666 [info] > hatch env find hatch-test.py3.13
2025-01-14 10:38:06.666 [info] cwd: .
2025-01-14 10:38:06.666 [info] > hatch env find hatch-test.py3.12
2025-01-14 10:38:06.666 [info] cwd: .
2025-01-14 10:38:06.666 [info] > hatch env find hatch-test.py3.11
2025-01-14 10:38:06.666 [info] cwd: .
2025-01-14 10:38:06.666 [info] > hatch env find hatch-test.py3.10
2025-01-14 10:38:06.666 [info] cwd: .
2025-01-14 10:38:06.666 [info] > hatch env find hatch-test.py3.9
2025-01-14 10:38:06.666 [info] cwd: .
2025-01-14 10:38:06.666 [info] > hatch env find hatch-test.py3.8
2025-01-14 10:38:06.666 [info] cwd: .
2025-01-14 10:38:06.666 [info] > hatch env find hatch-uv
2025-01-14 10:38:06.666 [info] cwd: .
2025-01-14 10:38:07.066 [info] Found: /usr/bin/python3 --> /usr/bin/python3
2025-01-14 10:38:07.441 [warning] Identifier for virt-virtualenv failed to identify /Users/hericks/Documents/some-outdated-project/.venv/bin/python [Error: ENOENT: no such file or directory, scandir '/Users/hericks/Documents/some-outdated-project/.venv/bin'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/Users/hericks/Documents/some-outdated-project/.venv/bin'
}
2025-01-14 10:38:07.506 [info] > ~/.pyenv/versions/3.10.10/bin/python -I ~/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/interpreterInfo.py
2025-01-14 10:38:07.517 [info] > ~/Documents/some-outdated-project/.venv/bin/python -I ~/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/interpreterInfo.py
2025-01-14 10:38:07.523 [info] Found: /opt/homebrew/bin/python3 --> /opt/homebrew/Cellar/[email protected]/3.13.0_1/Frameworks/Python.framework/Versions/3.13/bin/python3.13
2025-01-14 10:38:07.524 [info] Found: /opt/homebrew/bin/python3.13 --> /opt/homebrew/Cellar/[email protected]/3.13.0_1/Frameworks/Python.framework/Versions/3.13/bin/python3.13
2025-01-14 10:38:07.535 [info] Finished searching for interpreters in posix paths locator: 1337 milliseconds
2025-01-14 10:38:07.579 [info] Finished searching for pyenv environments: 1381 milliseconds
2025-01-14 10:38:07.583 [info] > ~/.pyenv/versions/3.11.2/bin/python -I ~/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/interpreterInfo.py
2025-01-14 10:38:07.585 [error] Error: Command failed: /Users/hericks/Documents/some-outdated-project/.venv/bin/python -I /Users/hericks/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/get_output_via_markers.py /Users/hericks/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/interpreterInfo.py
/bin/sh: /Users/hericks/Documents/some-outdated-project/.venv/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 ChildProcess.emit (node:domain:488:12)
at maybeClose (node:internal/child_process:1105:16)
at Socket. (node:internal/child_process:457:11)
at Socket.emit (node:events:519:28)
at Socket.emit (node:domain:488:12)
at Pipe. (node:net:338:12) {
code: 127,
killed: false,
signal: null,
cmd: '/Users/hericks/Documents/some-outdated-project/.venv/bin/python -I /Users/hericks/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/get_output_via_markers.py /Users/hericks/.vscode/extensions/ms-python.python-2024.14.1-darwin-arm64/python_files/interpreterInfo.py'
}
2025-01-14 10:38:07.586 [info] Environments refresh paths discovered (event): 1388 milliseconds
2025-01-14 10:38:07.586 [info] Environments refresh paths discovered: 1388 milliseconds
Код: Выделить всё
/Users/hericks/Documents/some-outdated-project/.venv/bin/python
- настройках VS Code по умолчанию,
- пользовательских настройках VS Code,< /li>
Настройки рабочей области VS Code - глобально на моем Mac (просто с помощью Finder).
Подробнее здесь: https://stackoverflow.com/questions/793 ... nvironment