Skip to content

Conversation

nvie
Copy link
Contributor

@nvie nvie commented Sep 7, 2015

This avoids accessing the b:python_modified var, which under some circumstances won't be set, which results in the following error:

Error detected while processing function pymode#buffer_post_write:
line    2:
E121: Undefined variable: b:pymode_modified
E15: Invalid expression: b:pymode_modified && g:pymode_rope_regenerate_on_write

Note: this does not address the core issue with why b:pymode_modified is unset in the first place, but this avoids that being a problem if g:python_rope_regenerate_on_write is not wanted anyway.

nvie added 2 commits September 7, 2015 08:54
This avoids accessing the b:python_modified value, which under some
circumstances cannot be set, which results in the following error:

    Error detected while processing function pymode#buffer_post_write:
    line    2:
    E121: Undefined variable: b:pymode_modified
    E15: Invalid expression: b:pymode_modified && g:pymode_rope_regenerate_on_write

Note that this does not address the core issue with why pymode_modified
if unset in the first place, but this avoids that being a problem if
g:python_rope_regenerate_on_write is not wanted anyway.
nvie added a commit to nvie/vimrc that referenced this pull request Sep 7, 2015
This is done until issue python-mode/python-mode#596 is
resolved.
klen added a commit that referenced this pull request Sep 8, 2015
Fix `Undefined variable: b:pymode_modified` error when regeneration of rope project isn't wanted
@klen klen merged commit d7dcbd1 into python-mode:develop Sep 8, 2015
@klen
Copy link
Collaborator

klen commented Sep 8, 2015

Thank you!

adrianpk added a commit to adrianpk/vimrc that referenced this pull request May 31, 2024
This is done until issue python-mode/python-mode#596 is
resolved.
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.

2 participants