Skip to content

Add support for neovim, newest pudb and atomize python code #5

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 2 commits into
base: master
Choose a base branch
from

Conversation

Elkasitu
Copy link

@Elkasitu Elkasitu commented Sep 13, 2017

Neovim v0.2.0 support added (tested), shouldn't break vim support (not tested)

Newest pudb requires that bp objects contain a cond attribute, if they don't the program breaks and you get a traceback, solution for now is to assign None to self.cond during BP init, which works but is not ideal if anyone wants to actually add a BP condition.

Python code is now within their own files for easier modification/readability.

Not mentioned in any of the commits but I added a check to see if (neo)vim was compiled with python3, so that if it was compiled with it, it wouldn't break because it didn't have +python but +python3, since the python code should be py2 and py3 compatible.

PS: Should probably check if neovim is being used instead of vim with has('nvim') and passing it as an arg to the python scripts

Adrian Torres added 2 commits September 13, 2017 08:57
Fix rel path issue

Fix rel path issue part 2

if !has("python")
echo "Error: Required vim compiled with +python"
if !has("python") && !has("python3")
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Program will now execute correctly if (neo)vim has either +python or +python3 compilation flags

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