Skip to content

Support vim compiled with +python3 (e.g. Ubuntu 17.04) #4

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

lieryan
Copy link

@lieryan lieryan commented Jun 1, 2017

Ubuntu 17.04 dropped all vim packages that are compiled with python2. This pull request adds support for vim compiled only with +python3, in a way that also allows setting breakpoints in python2 projects.

pudb uses different breakpoint files for different python versions. As currently implemented, the vim-pudb will set breakpoint for the python version that is installed when running python, so if python runs python2.7, vim-pudb will set breakpoint for pudb when running on python 2.7, but if python runs python3.5 from virtualenv, vim-pudb will set breakpoint for pudb when running on python 3.5.

Future improvements may be to have a setting to allow adding breakpoints to multiple versions at the same time (e.g. let g:pudb_python_versions=['python2.7', 'python3.5', '/home/me/virtualenv/pypy2.7']).

Lie Ryan and others added 5 commits June 1, 2017 17:46
This allows breakpoint to be set correctly when the python version that
vim is compiled into is not the same as the python version that pudb would
run as (e.g. when using virtualenv).
Drops support for vim with just +python
There was a race condition where set_breakpoint.py subprocess has not
finished saving breakpoint when UpdateBreakPoints() is called.
In some systems, only `python` is installed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant