Make :PymodeRun execute with the activated virtualenv interpreter#1200
Draft
Copilot wants to merge 4 commits into
Draft
Make :PymodeRun execute with the activated virtualenv interpreter#1200Copilot wants to merge 4 commits into
:PymodeRun execute with the activated virtualenv interpreter#1200Copilot wants to merge 4 commits into
Conversation
🧪 Test Results SummaryThis comment will be updated automatically as tests complete. Python linux-3.10 ✅
Python linux-3.11 ✅
Python linux-3.12 ✅
Python linux-3.13 ✅
Python linux-3.14 ✅
Python macos-3.10 ✅
Python macos-3.11 ✅
Python macos-3.12 ✅
Python macos-3.13 ✅
Python windows-3.10 ✅
Python windows-3.11 ✅
Python windows-3.12 ✅
Python windows-3.13 ✅
📊 Overall Summary
🎉 All tests passed across all Python versions! Generated automatically by CI/CD workflow |
Agent-Logs-Url: https://github.com/python-mode/python-mode/sessions/990a6238-68c1-475c-b384-5afbd8f07a7f Co-authored-by: diraol <192702+diraol@users.noreply.github.com>
Agent-Logs-Url: https://github.com/python-mode/python-mode/sessions/990a6238-68c1-475c-b384-5afbd8f07a7f Co-authored-by: diraol <192702+diraol@users.noreply.github.com>
Agent-Logs-Url: https://github.com/python-mode/python-mode/sessions/990a6238-68c1-475c-b384-5afbd8f07a7f Co-authored-by: diraol <192702+diraol@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix virtual environment activation issue in Pymode
Make Apr 21, 2026
:PymodeRun execute with the activated virtualenv interpreter
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.
Pymodecorrectly detected/activated virtualenvs, but:PymodeRunstill executed code with Vim’s embedded/system Python, causing version mismatch (e.g. active 3.13 venv, output from 3.14 system Python).This change aligns run behavior with virtualenv activation so executed code uses the selected environment interpreter.
Run-path correction for virtualenv-enabled sessions
pymode/run.pysorun_code()checksg:pymode_virtualenv_enabledand resolves the venv Python executable (bin/pythonon Unix,Scripts/python.exeon Windows).Regression coverage
tests/vader/commands.vaderthat::PymodeVirtualenv,:PymodeRun,__run__output includes the venv interpreter path.Docs update
doc/pymode.txtthat:PymodeRunuses the virtualenv Python executable when virtualenv is activated.