Fix conda copy interpreter path to use actual Python executable instead of conda run command#721
Merged
eleanorjboyd merged 3 commits intomainfrom Aug 14, 2025
Merged
Fix conda copy interpreter path to use actual Python executable instead of conda run command#721eleanorjboyd merged 3 commits intomainfrom
eleanorjboyd merged 3 commits intomainfrom
Conversation
…conda run command Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] conda: copy interpreter path button incorrect
Fix conda copy interpreter path to use actual Python executable instead of conda run command
Aug 14, 2025
DonJayamanne
approved these changes
Aug 14, 2025
eleanorjboyd
approved these changes
Aug 14, 2025
NguyenCuong1989
referenced
this pull request
in NguyenCuong1989/vscode-python-environments
Oct 23, 2025
…ad of conda run command (#721) When clicking the "Copy Environment Path" button on conda environments, the extension was incorrectly copying the conda run command instead of the actual Python interpreter path. ``` # What was being copied (incorrect): conda run --name base python # What users expected (correct): /opt/conda/envs/base/bin/python ``` ## Solution Modified the `copyPathToClipboard` function to use `run.executable` directly, which provides the actual Python interpreter path instead of constructing a command from `activatedRun Fixes #720. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: eleanorjboyd <26030610+eleanorjboyd@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When clicking the "Copy Environment Path" button on conda environments, the extension was incorrectly copying the conda run command instead of the actual Python interpreter path.
Solution
Modified the
copyPathToClipboardfunction to userun.executabledirectly, which provides the actual Python interpreter path instead of constructing a command from `activatedRunFixes #720.