Skip to content

Pymode seems to freeze on opening a very simple file and trying to source folding.vim #826

@kevinkjt2000

Description

@kevinkjt2000

Most of the output from nvim -i NONE -u ~/.config/nvim/bundle/python-mode/debugvimrc.vim has possibly sensitive path names, so here is the tail end of it:

pymode_lint           #1
pymode_lint_async     #1
pymode_lint_async_updatetime #1000
pymode_lint_checkers  ['pyflakes', 'pep8', 'mccabe']
pymode_lint_comment_symbol  CC
pymode_lint_cwindow   #1
pymode_lint_docs_symbol  DD
pymode_lint_error_symbol  EE
pymode_lint_ignore    []
pymode_lint_info_symbol  II
pymode_lint_message   #1
pymode_lint_on_fly    #0
pymode_lint_on_write  #1
pymode_lint_options_mccabe {'complexity': 12}
pymode_lint_options_pep257 {}
pymode_lint_options_pep8 {'max_line_length': 79}
pymode_lint_options_pyflakes {'builtins': '_'}
pymode_lint_options_pylint {'max-line-length': 79}
pymode_lint_pyflakes_symbol  FF
pymode_lint_select    []
pymode_lint_signs     #1
pymode_lint_sort      []
pymode_lint_todo_symbol  WW
pymode_lint_unmodified #0
pymode_lint_visual_symbol  RR
pymode_motion         #1
pymode_options        #1
pymode_options_colorcolumn #1
pymode_options_max_line_length #79
pymode_paths          []
pymode_python          python3
pymode_quickfix_maxheight #6
pymode_quickfix_minheight #3
pymode_rope           #0
pymode_run            #1
pymode_run_bind        <leader>r
pymode_trim_whitespaces #1
pymode_version         0.9.4
pymode_virtualenv     #1
pymode_virtualenv_enabled
pymode_virtualenv_path
pymode_warning        #1
-------------------------------------------------------------------------------
pymode debug msg 5: Git commit:
39d9ab803c8a7538581050841910af66ae5b03d8
-------------------------------------------------------------------------------
pymode debug msg 6: End of pymode#debug#sysinfo
pymode debug msg 7: line 1 has folding: >1 with foldcase function declaration
pymode debug msg 8: line 2 has folding: = with foldcase non blank line; first line of block
 or part of it
pymode debug msg 9: line 3 has folding: = with foldcase blank line after non blank line
pymode debug msg 10: line 4 has folding: 0 with foldcase general
pymode debug msg 11: line 5 has folding: >1 with foldcase function declaration

The file that I was trying to load:

def spam():
    pass

def eggs():
    pass

What I expected is that vim would not freeze when loading this simple of a python file. I did notice that if I add a newline above the spam function, the file opens and does not freeze vim. Vim also does not freeze if I remove python-mode from my list of plugins https://github.com/kevinkjt2000/dot-vim/blob/c8eccb09ccc8f71697ba3a4a81049abd5820ec10/plugins.vim#L25

(And by vim, I mean neovim's nvim)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions