forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
getExecutionDetails().execCommand returns conda folder instead of executable path #22617
Labels
triage-needed
Needs assignment to the proper sub-team
Comments
github-actions
bot
added
the
triage-needed
Needs assignment to the proper sub-team
label
Dec 9, 2023
Looks like the import { PythonExtension } from '@vscode/python-extension';
let pythonExecutable = "python"; // DEFAULT_PYTHON
const pythonApi: PythonExtension = await PythonExtension.api();
const environmentPath = pythonApi.environments.getActiveEnvironmentPath();
const environment = await pythonApi.environments.resolveEnvironment(environmentPath);
if (environment != null) {
pythonExecutable environment.path;
} See https://github.com/microsoft/vscode-python/wiki/Python-Environment-APIs |
likely the same issue as #22618. |
This was referenced Dec 12, 2023
github-actions
bot
added
the
info-needed
Issue requires more information from poster
label
Dec 14, 2023
And btw, that API is indeed deprecated as you noted, so please switch to using the new API soon. |
@karrtikr already switched, but thanks for the quick fix! |
github-actions
bot
removed
the
info-needed
Issue requires more information from poster
label
Dec 15, 2023
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Type: Bug
Behaviour
In a custom extension that works with the Python extension, the behaviour of the extension API changed since the last version 1.85.0, Commit: af28b32d7e553898b2a91af498b1fb666fdebe0c
Expected vs. Actual
now returns
/opt/miniforge3/envs/cq
on a Silicon Mac instead of/opt/miniforge3/envs/cq/bin/python
Steps to reproduce:
see above
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2023.22.0
VS Code version: Code 1.85.0 (af28b32d7e553898b2a91af498b1fb666fdebe0c, 2023-12-06T18:17:50.719Z)
OS version: Darwin arm64 22.4.0
Modes:
System Info
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: