Closed djbrown closed 1 year ago
Can you please provide the debug Python logs? Thanks!
Developer: Set log level
commandPython
-> Select Trace
Developer: Reload Window
commandProvide the output:
Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
``` XXX ```
2023-08-24 21:37:45.835 [info] Experiment 'pythonPromptNewFormatterExt' is active
2023-08-24 21:37:45.835 [info] Experiment 'pythonPromptNewToolsExt' is active
2023-08-24 21:37:45.835 [info] Experiment 'pythonTestAdapter' is active
2023-08-24 21:37:46.172 [info] Test server listening.
2023-08-24 21:37:46.212 [info] Python interpreter path: ~/.pyenv/versions/3.11.4/bin/python
2023-08-24 21:37:49.162 [info] Starting Pylance language server.
2023-08-24 21:38:04.638 [info] > conda info --json
2023-08-24 21:38:04.651 [info] > poetry env list --full-path
2023-08-24 21:38:04.651 [info] cwd: .
2023-08-24 21:38:04.666 [info] Found: /usr/bin/python --> /usr/bin/python2.7
2023-08-24 21:38:04.674 [info] > ~/.pyenv/versions/3.10.0/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:04.675 [info] Found: /usr/bin/python2 --> /usr/bin/python2.7
2023-08-24 21:38:04.676 [info] Found: /usr/bin/python2.7 --> /usr/bin/python2.7
2023-08-24 21:38:04.678 [info] Found: /usr/bin/python3 --> /usr/bin/python3.6
2023-08-24 21:38:04.679 [info] Found: /usr/bin/python3.6 --> /usr/bin/python3.6
2023-08-24 21:38:04.679 [info] Found: /usr/bin/python3.7 --> /usr/bin/python3.7
2023-08-24 21:38:04.688 [info] > ~/.pyenv/versions/3.10.6/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:04.871 [info] Found: /usr/include/python3.6 --> /usr/include/python3.6m
2023-08-24 21:38:04.871 [info] Found: /usr/include/python3.7 --> /usr/include/python3.7m
2023-08-24 21:38:05.404 [error] [Error: Command failed: poetry env list --full-path
Traceback (most recent call last):
File "/home/djbrown/.poetry/bin/poetry", line 16, in <module>
from poetry.console import main
File "/home/djbrown/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/home/djbrown/.poetry/lib/poetry/console/application.py", line 3, in <module>
from cleo import Application as BaseApplication
ImportError: cannot import name 'Application' from 'cleo' (/home/djbrown/.pyenv/versions/3.11.4/lib/python3.11/site-packages/cleo/__init__.py)
at ChildProcess.exithandler (node:child_process:400:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1093:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)] {
code: 1,
killed: false,
signal: null,
cmd: 'poetry env list --full-path'
}
2023-08-24 21:38:06.989 [info] > ~/.pyenv/versions/3.11.4/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:07.001 [info] > ~/.pyenv/versions/3.7.10/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:07.034 [info] > ~/.pyenv/versions/3.7.12/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:08.184 [info] > ~/.pyenv/versions/3.7.9/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:08.218 [info] > ~/.pyenv/versions/3.8.6/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:09.884 [info] > ~/.pyenv/versions/3.9.1/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:09.926 [info] > ~/.pyenv/versions/3.9.2/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.048 [info] > ~/.pyenv/versions/3.9.7/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.058 [info] > ~/.local/share/virtualenvs/hbscorez-oG-TYuOt/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.329 [info] > ~/.local/share/virtualenvs/ycs-mfD08Ma2/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.495 [info] > /usr/bin/python -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.801 [info] > /usr/bin/python3 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:11.804 [warning] [Error: Command failed: /usr/bin/python -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
Unknown option: -I
usage: /usr/bin/python [option] ... [-c cmd | -m mod | file | -] [arg] ...
Try `python -h' for more information.
at ChildProcess.exithandler (node:child_process:400:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1093:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:513:28)
at Pipe.<anonymous> (node:net:757:14)] {
code: 2,
killed: false,
signal: null,
cmd: '/usr/bin/python -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py'
}
2023-08-24 21:38:11.804 [error] Support for Python 2.7 has been dropped by the Python extension so certain features may not work, upgrade to using Python 3.
2023-08-24 21:38:11.811 [info] > /usr/bin/python ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:13.825 [info] > /usr/bin/python3.7 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:14.781 [info] > /usr/include/python3.6 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:14.810 [info] > /usr/include/python3.7 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:14.812 [error] [Error: Command failed: /usr/include/python3.6 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.6: Permission denied
at ChildProcess.exithandler (node:child_process:400:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1093:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:513:28)
at Pipe.<anonymous> (node:net:757:14)] {
code: 126,
killed: false,
signal: null,
cmd: '/usr/include/python3.6 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py'
}
2023-08-24 21:38:14.814 [error] [Error: Command failed: /usr/include/python3.7 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.7: Permission denied
at ChildProcess.exithandler (node:child_process:400:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1093:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:513:28)
at Pipe.<anonymous> (node:net:757:14)] {
code: 126,
killed: false,
signal: null,
cmd: '/usr/include/python3.7 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py'
}
2023-08-24 21:38:16.820 [info] > /usr/include/python3.6 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:16.827 [info] > /usr/include/python3.7 -I ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py ~/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
2023-08-24 21:38:16.829 [error] [Error: Command failed: /usr/include/python3.6 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.6: Permission denied
at ChildProcess.exithandler (node:child_process:400:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1093:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:513:28)
at Pipe.<anonymous> (node:net:757:14)] {
code: 126,
killed: false,
signal: null,
cmd: '/usr/include/python3.6 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py'
}
2023-08-24 21:38:16.833 [error] [Error: Command failed: /usr/include/python3.7 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py
/bin/sh: 1: /usr/include/python3.7: Permission denied
at ChildProcess.exithandler (node:child_process:400:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1093:16)
at Socket.<anonymous> (node:internal/child_process:451:11)
at Socket.emit (node:events:513:28)
at Pipe.<anonymous> (node:net:757:14)] {
code: 126,
killed: false,
signal: null,
cmd: '/usr/include/python3.7 -I /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/get_output_via_markers.py /home/djbrown/.vscode-server/extensions/ms-python.python-2023.15.12301911/pythonFiles/interpreterInfo.py'
}
2023-08-24 21:38:23.745 [info] Send text to terminal: pyenv shell 3.11.4
Seems like the relevant bits are:
2023-08-24 21:38:04.651 [info] > poetry env list --full-path
...
2023-08-24 21:38:05.404 [error] [Error: Command failed: poetry env list --full-path
Traceback (most recent call last):
File "/home/djbrown/.poetry/bin/poetry", line 16, in <module>
from poetry.console import main
File "/home/djbrown/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/home/djbrown/.poetry/lib/poetry/console/application.py", line 3, in <module>
from cleo import Application as BaseApplication
ImportError: cannot import name 'Application' from 'cleo' (/home/djbrown/.pyenv/versions/3.11.4/lib/python3.11/site-packages/cleo/__init__.py)
at ChildProcess.exithandler (node:child_process:400:12)
at ChildProcess.emit (node:events:513:28)
at maybeClose (node:internal/child_process:1093:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)] {
code: 1,
killed: false,
signal: null,
cmd: 'poetry env list --full-path'
}
But when I run poetry env list --full-path
it successfully prints out:
/home/djbrown/.cache/pypoetry/virtualenvs/locator-test-pPeCarZq-py3.11 (Activated)
But when I run poetry env list --full-path it successfully prints out: /home/djbrown/.cache/pypoetry/virtualenvs/locator-test-pPeCarZq-py3.11 (Activated)
~/.bashrc
is also run when using terminal, which maybe causing the difference. Try the following:
code .
after cd'ing to the desired workspace folder.Python: Select Interpreter
and provide the logs in case envs are still not discovered.This way we ensure that VS Code also has the context of ~/.bashrc
when we run the command internally.
I just found out that setting the log level only applies to the current vscode launch/execution.
So here are the full trace logs:
I also noticed, that the error (and tracelogs) don't show in ouput when I rerun the command or refresh the list: rerun-discovery.log So the discovery is only run once for any given vscode launch/execution. Running "Clear Workspace Interpreter Settings" command doesn't change that.
@djbrown , thanks for the info. This seems to be the relevant bit:
Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
``` [info] > poetry env list --full-path [info] cwd: . [debug] Shell Exec: poetry env list --full-path with options: { "cwd": "/home/djbrown/projects/locator-test", "throwOnStdErr": true, "timeout": 50000, "encoding": "utf8", "env": { "USER": "djbrown", "VSCODE_WSL_EXT_LOCATION": "/mnt/c/Users/danie/.vscode/extensions/ms-vscode-remote.remote-wsl-0.81.0", "SHLVL": "2", "HOME": "/home/djbrown", "WSL_DISTRO_NAME": "Ubuntu", "WAYLAND_DISPLAY": "wayland-0", "LOGNAME": "djbrown", "PULSE_SERVER": "unix:/mnt/wslg/PulseServer", "WSL_INTEROP": "/run/WSL/24174_interop", "NAME": "DESKTOP-65P6D75", "_": "/home/djbrown/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/node", "TERM": "xterm-256color", "XDG_RUNTIME_DIR": "/mnt/wslg/runtime-dir", "DISPLAY": ":0", "LANG": "en_US.UTF-8", "SHELL": "/bin/bash", "PWD": "/mnt/c/Users/danie/AppData/Local/Programs/Microsoft VS Code", "HOSTTYPE": "x86_64", "WSL2_GUI_APPS_ENABLED": "1", "WSLENV": "VSCODE_WSL_EXT_LOCATION/up", "VSCODE_HANDLES_SIGPIPE": "true", "NVM_DIR": "/home/djbrown/.nvm", "LS_COLORS": "rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:", "PHPBREW_HOME": "/home/djbrown/.phpbrew", "LESSCLOSE": "/usr/bin/lesspipe %s %s", "ANDROID_HOME": "/home/djbrown/.android/sdk", "PYENV_ROOT": "/home/djbrown/.pyenv", "SDKMAN_CANDIDATES_API": "https://api.sdkman.io/2", "GPG_TTY": "not a tty", "NVM_CD_FLAGS": "", "PYENV_VIRTUALENV_INIT": "1", "JAVA_HOME": "/home/djbrown/.sdkman/candidates/java/current", "PHPBREW_RC_ENABLE": "1", "S_COLORS": "auto", "XDG_DATA_DIRS": "/usr/local/share:/usr/share:/var/lib/snapd/desktop", "SDKMAN_DIR": "/home/djbrown/.sdkman", "NVM_BIN": "/home/djbrown/.nvm/versions/node/v16.20.0/bin", "SDKMAN_CANDIDATES_DIR": "/home/djbrown/.sdkman/candidates", "PYENV_SHELL": "bash", "PHPBREW_ROOT": "/home/djbrown/.phpbrew", "SDKMAN_VERSION": "5.16.0", "NVM_INC": "/home/djbrown/.nvm/versions/node/v16.20.0/include/node", "SDKMAN_PLATFORM": "linuxx64", "LESSOPEN": "| /usr/bin/lesspipe %s", "VSCODE_AMD_ENTRYPOINT": "vs/workbench/api/node/extensionHostProcess", "VSCODE_HANDLES_UNCAUGHT_ERRORS": "true", "VSCODE_NLS_CONFIG": "{\"locale\":\"en\",\"osLocale\":\"en\",\"availableLanguages\":{}}", "VSCODE_CWD": "/mnt/c/Users/danie/AppData/Local/Programs/Microsoft VS Code", "ELECTRON_RUN_AS_NODE": "1", "VSCODE_IPC_HOOK_CLI": "/mnt/wslg/runtime-dir/vscode-ipc-8cc6fb74-83e0-4816-b4f3-f92db9430c0e.sock", "PATH": "/home/djbrown/.vscode-server/bin/6c3e3dba23e8fadc360aed75ce363ba185c49794/bin/remote-cli:/home/djbrown/.poetry/bin:/home/djbrown/.pyenv/shims:/home/djbrown/.local/bin:/home/djbrown/.sdkman/candidates/java/current/bin:/home/djbrown/.pyenv/plugins/pyenv-virtualenv/shims:/home/djbrown/.pyenv/bin:/home/djbrown/.nvm/versions/node/v16.20.0/bin:/home/djbrown/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/Common Files/Intel/WirelessCommon/:/mnt/c/Program Files/Intel/iCLS Client/:/mnt/c/Program Files/Intel/IntelSGXPSW/bin/win32/Release/:/mnt/c/Program Files/Intel/IntelSGXPSW/bin/x64/Release/:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program Files/Intel/WiFi/bin/:/mnt/c/Program Files (x86)/Intel/iCLS Client/:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/DAL:/mnt/c/Program Files (x86)/Intel/Intel(R) Management Engine Components/IPT:/mnt/c/Program Files (x86)/Windows Live/Shared:/mnt/c/windows:/mnt/c/windows/system32:/mnt/c/windows/System32/Wbem:/mnt/c/windows/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS:/mnt/c/Program Files/OpenSSH/bin:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files Custom:/mnt/c/Program Files (x86)/Mozilla Firefox:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/Program Files Custom/curl/bin:/mnt/c/Program Files/Docker/Docker/resources/bin:/mnt/c/ProgramData/DockerDesktop/version-bin:/mnt/c/Program Files/usbipd-win/:/mnt/c/Program Files/dotnet/:/mnt/c/Users/danie/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/danie/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/danie/AppData/Local/Programs/Git/cmd:/mnt/c/Users/danie/AppData/Local/Google/Cloud SDK/google-cloud-sdk/bin:/snap/bin:/home/djbrown/.android/sdk/tools:/home/djbrown/.android/sdk/tools/bin:/home/djbrown/.android/sdk/platform-tools", "PYTHONUNBUFFERED": "1", "PYTHONIOENCODING": "utf-8" } } ```
We're basically trying to investigate why executing in terminal (which passes from you) is different from executing here. Two options:
printenv
in terminal and see which environment variables are different from the execution above, try to set these vars in logs in the terminal and see if we can repro the issue.python.poetryPath
to the full path to the poetry binary in our system.Btw, we investigate issues in order based on priority and severity, which includes the impact it has on your ability to use the extension to do productive work, and the number of people affected. If other users come forward and leave a comment demonstrating they are seeing/reproducing the problem then we will raise this issue's priority. Thanks for understanding and the patience!
Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on, then we will be happy to re-open this issue to pick up where we left off.
Happy Coding!
Type: Bug
Behaviour
Expected vs. Actual
In the docs (here and here) it states that the python extension can automatically locate (related) environments created by poetry, when in fact it doesn't. Environments from pipenv or pyenv are located successfully though - even unrelated one to my project.
Following files, issues and pull requests might be related to this:
Steps to reproduce:
poetry new locator-test
code locator-test
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)``` XXX ```
User Settings
``` languageServer: "Pylance" ```
Extension version: 2023.14.0 VS Code version: Code 1.81.1 (6c3e3dba23e8fadc360aed75ce363ba185c49794, 2023-08-09T22:22:42.175Z) OS version: Windows_NT x64 10.0.19045 Modes: Connection to 'wsl+ubuntu' could not be established Remote OS version: Linux x64 5.15.90.1-microsoft-standard-WSL2
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)| |GPU Status|2d_canvas: enabledcanvas_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.84GB (4.75GB free)| |Process Argv|--crash-reporter-id 6a947b0b-2920-480a-98a0-5c6d6b7ebd8c| |Screen Reader|no| |VM|0%| Connection to 'wsl+ubuntu' could not be established |Item|Value| |---|---| |Remote|WSL: Ubuntu| |OS|Linux x64 5.15.90.1-microsoft-standard-WSL2| |CPUs|Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2591)| |Memory (System)|7.76GB (6.07GB free)| |VM|0%|
A/B Experiments
``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 vscoreces:30445986 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 pythonvs932:30410667 py29gd2263cf:30792227 vsclangdc:30486549 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30695312 azure-dev_surveyone:30548225 vscccc:30803845 3biah626:30602489 f6dab269:30613381 vscrpc:30673769 showlangstatbar:30737416 03d35959:30757346 7ij38806:30736111 pythonfmttext:30731395 pythoncmv:30756943 fixshowwlkth:30771522 showindicator:30805244 pythongtdpath:30769146 i26e3531:30792625 gsofb:30804716 pythonnosmt12:30797651 pythonidxpt:30805730 pythonnoceb:30805159 dsvsc013:30795093 dsvsc014:30804076 diffeditorv1:30812748 ```