Skip to content

Find a folding bug, isn't it ? #839

Closed

Description

@nineKnight

-------------------------------------------------------------------------------
pymode debug msg 1: Starting debug on: 2018-01-25 10:44:24 with file /tmp/pymode_debug_file.txt
-------------------------------------------------------------------------------
pymode debug msg 2: Operating system: Linux
-------------------------------------------------------------------------------
pymode debug msg 3: Scriptnames:
  1: ~/.vim/bundle/python-mode/debugvimrc.vim
  2: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
  3: /usr/share/vim/vim80/plugin/gzip.vim
  4: /usr/share/vim/vim80/plugin/logiPat.vim
  5: /usr/share/vim/vim80/plugin/manpager.vim
  6: /usr/share/vim/vim80/plugin/matchparen.vim
  7: /usr/share/vim/vim80/plugin/netrwPlugin.vim
  8: /usr/share/vim/vim80/plugin/rrhelper.vim
  9: /usr/share/vim/vim80/plugin/spellfile.vim
 10: /usr/share/vim/vim80/plugin/tarPlugin.vim
 11: /usr/share/vim/vim80/plugin/tohtml.vim
 12: /usr/share/vim/vim80/plugin/vimballPlugin.vim
 13: /usr/share/vim/vim80/plugin/zipPlugin.vim
 14: ~/.vim/bundle/python-mode/plugin/pymode.vim
 15: ~/.vim/bundle/python-mode/autoload/pymode.vim
 16: /usr/share/vim/vim80/filetype.vim
 17: /usr/share/vim/vim80/ftplugin.vim
 18: /usr/share/vim/vim80/ftplugin/python.vim
 19: ~/.vim/bundle/python-mode/ftplugin/python/pymode.vim
 20: ~/.vim/bundle/python-mode/autoload/pymode/virtualenv.vim
 21: ~/.vim/bundle/python-mode/autoload/pymode/breakpoint.vim
 22: ~/.vim/bundle/python-mode/autoload/pymode/debug.vim
-------------------------------------------------------------------------------
pymode debug msg 4: Pymode variables:
pymode                #1
pymode_breakpoint     #1
pymode_breakpoint_bind  <leader>b
pymode_breakpoint_cmd  
pymode_debug          #1
pymode_debug_counter  #3
pymode_debug_tempfile  /tmp/pymode_debug_file.txt
pymode_doc            #1
pymode_doc_bind        K
pymode_doc_vertical   #0
pymode_folding        #1
pymode_folding_nest_limit #1000
pymode_folding_regex   ^\s*\%(class\|def\|async\s\+def\) .\+\(:\s\+\w\)\@!
pymode_indent         #1
pymode_init           #1
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: 
ce506795bfcae293c531a25e0208833124787d58
-------------------------------------------------------------------------------
pymode debug msg 6: End of pymode#debug#sysinfo
pymode debug msg 7: line 1 has folding: >1 with foldcase function declaration
Error detected while processing function pymode#trim_whitespaces:
line    3:
Interrupted

  1 def debug():
-------------------------------------------------------------------------------
pymode debug msg 8: Session history:
      #  cmd history
      1  w debug.py
>     2  q!

Activity

  1. nineKnight commented on Jan 25, 2018

    @nineKnight
    Author

    I get into the trouble when I edit like this:

    def debug():
        print("Hello world.")

    and then try to save the file.

    It only turns up when I edit the very first line with def and then input Enter to the second line. I can't edit any more until I press <C-c>. But when I can edit finally, problem comes again and then I press <C-c> again to make vim show what I've input.
    Now, it makes me to disable pymode_folding to get out of it. Jesus!!!

    Attention: Only when the first line is a def thing, the problem turns up.

  2. nineKnight commented on Jan 25, 2018

    @nineKnight
    Author
    
    -------------------------------------------------------------------------------
    pymode debug msg 1: Starting debug on: 2018-01-25 10:54:06 with file /tmp/pymode_debug_file.txt
    -------------------------------------------------------------------------------
    pymode debug msg 2: Operating system: Linux
    -------------------------------------------------------------------------------
    pymode debug msg 3: Scriptnames:
      1: ~/.vim/bundle/python-mode/debugvimrc.vim
      2: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
      3: /usr/share/vim/vim80/plugin/gzip.vim
      4: /usr/share/vim/vim80/plugin/logiPat.vim
      5: /usr/share/vim/vim80/plugin/manpager.vim
      6: /usr/share/vim/vim80/plugin/matchparen.vim
      7: /usr/share/vim/vim80/plugin/netrwPlugin.vim
      8: /usr/share/vim/vim80/plugin/rrhelper.vim
      9: /usr/share/vim/vim80/plugin/spellfile.vim
     10: /usr/share/vim/vim80/plugin/tarPlugin.vim
     11: /usr/share/vim/vim80/plugin/tohtml.vim
     12: /usr/share/vim/vim80/plugin/vimballPlugin.vim
     13: /usr/share/vim/vim80/plugin/zipPlugin.vim
     14: ~/.vim/bundle/python-mode/plugin/pymode.vim
     15: ~/.vim/bundle/python-mode/autoload/pymode.vim
     16: /usr/share/vim/vim80/filetype.vim
     17: /usr/share/vim/vim80/ftplugin.vim
     18: /usr/share/vim/vim80/ftplugin/python.vim
     19: ~/.vim/bundle/python-mode/ftplugin/python/pymode.vim
     20: ~/.vim/bundle/python-mode/autoload/pymode/virtualenv.vim
     21: ~/.vim/bundle/python-mode/autoload/pymode/breakpoint.vim
     22: ~/.vim/bundle/python-mode/autoload/pymode/debug.vim
    -------------------------------------------------------------------------------
    pymode debug msg 4: Pymode variables:
    pymode                #1
    pymode_breakpoint     #1
    pymode_breakpoint_bind  <leader>b
    pymode_breakpoint_cmd  
    pymode_debug          #1
    pymode_debug_counter  #3
    pymode_debug_tempfile  /tmp/pymode_debug_file.txt
    pymode_doc            #1
    pymode_doc_bind        K
    pymode_doc_vertical   #0
    pymode_folding        #1
    pymode_folding_nest_limit #1000
    pymode_folding_regex   ^\s*\%(class\|def\|async\s\+def\) .\+\(:\s\+\w\)\@!
    pymode_indent         #1
    pymode_init           #1
    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
    Error detected while processing /root/.vim/bundle/python-mode/ftplugin/python/pymode.vim:
    line  248:
    Interrupted
    pymode debug msg 5: line 1 has folding: 0 with foldcase general
    
    
    
    -------------------------------------------------------------------------------
    pymode debug msg 1: Starting debug on: 2018-01-25 10:54:26 with file /tmp/pymode_debug_file.txt
    -------------------------------------------------------------------------------
    pymode debug msg 2: Operating system: Linux
    -------------------------------------------------------------------------------
    pymode debug msg 3: Scriptnames:
      1: ~/.vim/bundle/python-mode/debugvimrc.vim
      2: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
      3: /usr/share/vim/vim80/plugin/gzip.vim
      4: /usr/share/vim/vim80/plugin/logiPat.vim
      5: /usr/share/vim/vim80/plugin/manpager.vim
      6: /usr/share/vim/vim80/plugin/matchparen.vim
      7: /usr/share/vim/vim80/plugin/netrwPlugin.vim
      8: /usr/share/vim/vim80/plugin/rrhelper.vim
      9: /usr/share/vim/vim80/plugin/spellfile.vim
     10: /usr/share/vim/vim80/plugin/tarPlugin.vim
     11: /usr/share/vim/vim80/plugin/tohtml.vim
     12: /usr/share/vim/vim80/plugin/vimballPlugin.vim
     13: /usr/share/vim/vim80/plugin/zipPlugin.vim
     14: ~/.vim/bundle/python-mode/plugin/pymode.vim
     15: ~/.vim/bundle/python-mode/autoload/pymode.vim
     16: /usr/share/vim/vim80/filetype.vim
     17: /usr/share/vim/vim80/ftplugin.vim
     18: /usr/share/vim/vim80/ftplugin/python.vim
     19: ~/.vim/bundle/python-mode/ftplugin/python/pymode.vim
     20: ~/.vim/bundle/python-mode/autoload/pymode/virtualenv.vim
     21: ~/.vim/bundle/python-mode/autoload/pymode/breakpoint.vim
     22: ~/.vim/bundle/python-mode/autoload/pymode/debug.vim
    -------------------------------------------------------------------------------
    pymode debug msg 4: Pymode variables:
    pymode                #1
    pymode_breakpoint     #1
    pymode_breakpoint_bind  <leader>b
    pymode_breakpoint_cmd  
    pymode_debug          #1
    pymode_debug_counter  #3
    pymode_debug_tempfile  /tmp/pymode_debug_file.txt
    pymode_doc            #1
    pymode_doc_bind        K
    pymode_doc_vertical   #0
    pymode_folding        #1
    pymode_folding_nest_limit #1000
    pymode_folding_regex   ^\s*\%(class\|def\|async\s\+def\) .\+\(:\s\+\w\)\@!
    pymode_indent         #1
    pymode_init           #1
    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: 
    ce506795bfcae293c531a25e0208833124787d58
    -------------------------------------------------------------------------------
    pymode debug msg 6: End of pymode#debug#sysinfo
    pymode debug msg 7: line 1 has folding: 0 with foldcase general
    "debug.py" 
    "debug.py" [New] 0L, 0C written-- INSERT --
    pymode debug msg 8: line 1 has folding: = wit...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 9: line 1 has folding: = wit...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 10: line 1 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 11: line 1 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 12: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 13: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 14: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 15: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 16: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 17: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 18: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 19: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 20: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 21: line 2 has folding: = with foldcase blank line after non blank line-- INSERT --
    pymode debug msg 22: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 23: line 2 has folding: = with foldcase blank line after non blank line-- INSERT --
    pymode debug msg 24: line 1 has folding: >1 with foldcase function declaration
    
    
    E37: No write since last change (add ! to override)
    
      1 def debug():
    -------------------------------------------------------------------------------
    pymode debug msg 25: Session history:
          #  cmd history
          1  w debug.py
          2  q
    >     3  q!
    
    
  3. nineKnight commented on Jan 25, 2018

    @nineKnight
    Author

    Another test !!!
    This time I save the file first, then edit it like this:

    def debug():
        

    Problem occurs when I'm inserting <Space> in the second line.

    PS: My python version is 3.6.4.

  4. nineKnight commented on Jan 25, 2018

    @nineKnight
    Author

    I found it similar to #808 , a little different from #825 . Help and debug plz.

  5. fmv1992 commented on Jan 25, 2018

    @fmv1992
    Contributor

    Problem fix on its way.

  6. fmv1992 commented on Jan 25, 2018

    @fmv1992
    Contributor

    Problem is fixed in version dadf48a84b2c02d3d92f807315a2c24b69d86c4b. Let me know if the problem persists.

  7. nineKnight commented on Jan 26, 2018

    @nineKnight
    Author

    @fmv1992 It works, and thx :)
    Now I'm looking into how to highlight my own func out of def thing. Would you show me any idea?

  8. fmv1992 commented on Jan 28, 2018

    @fmv1992
    Contributor

    hey @nineKnight,

    you mean highlighting myfunc in case you have the following in your code:

        def myfunc(x):
            # whatever
            pass
    

    ?

    If that's the case I strongly recommend you not to pursue this endeavor. Possibly your code will be excessively highlighted and the implementation would be hard.
    However if you do want to do that I would recommend an asynchronous call to a function which parses your source code for function definitions and execute vim's commands, enabling highlights for your functions. I wouldn't know how would you delete those in case you have deleted your functions nor do I know how would you make those affect the correct buffers.

  9. diraol commented on Jan 28, 2018

    @diraol
    Contributor

    Nice job @fmv1992 ! =)

    If I may suggest, I think we can close this issue. If @nineKnight needs help on this new "feature" (highlight the function name), I think a new issue may be open for that purpose.

  10. nineKnight commented on Jan 29, 2018

    @nineKnight
    Author

    @fmv1992 I just wanna highlight function names in whatever case, and @diraol is right. I'm closing this issue.

  11. nineKnight commented on Jan 30, 2018

    @nineKnight
    Author

    Hi, @fmv1992 I have to reopen this issue because I found the similar problem when I typed like this:

    def add(a, b):
        print(f"ADDING {a} + {b}")
        return a + b
    
    def subtract(a, b):
        

    Debug file content

    
    -------------------------------------------------------------------------------
    pymode debug msg 1: Starting debug on: 2018-0...19:24:05 with file /tmp/pymode_debug_file.txt
    -------------------------------------------------------------------------------
    pymode debug msg 2: Operating system: Linux
    -------------------------------------------------------------------------------
    pymode debug msg 3: Scriptnames:
      1: ~/.vim/bundle/python-mode/debugvimrc.vim
      2: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
      3: /usr/share/vim/vim80/plugin/gzip.vim
      4: /usr/share/vim/vim80/plugin/logiPat.vim
      5: /usr/share/vim/vim80/plugin/manpager.vim
      6: /usr/share/vim/vim80/plugin/matchparen.vim
      7: /usr/share/vim/vim80/plugin/netrwPlugin.vim
      8: /usr/share/vim/vim80/plugin/rrhelper.vim
      9: /usr/share/vim/vim80/plugin/spellfile.vim
     10: /usr/share/vim/vim80/plugin/tarPlugin.vim
     11: /usr/share/vim/vim80/plugin/tohtml.vim
     12: /usr/share/vim/vim80/plugin/vimballPlugin.vim
     13: /usr/share/vim/vim80/plugin/zipPlugin.vim
     14: ~/.vim/bundle/python-mode/plugin/pymode.vim
     15: ~/.vim/bundle/python-mode/autoload/pymode.vim
     16: /usr/share/vim/vim80/filetype.vim
     17: /usr/share/vim/vim80/ftplugin.vim
     18: /usr/share/vim/vim80/ftplugin/python.vim
     19: ~/.vim/bundle/python-mode/ftplugin/python/pymode.vim
     20: ~/.vim/bundle/python-mode/autoload/pymode/virtualenv.vim
     21: ~/.vim/bundle/python-mode/autoload/pymode/breakpoint.vim
     22: ~/.vim/bundle/python-mode/autoload/pymode/debug.vim
    -------------------------------------------------------------------------------
    pymode debug msg 4: Pymode variables:
    pymode                #1
    pymode_breakpoint     #1
    pymode_breakpoint_bind  <leader>b
    pymode_breakpoint_cmd  
    pymode_debug          #1
    pymode_debug_counter  #3
    pymode_debug_tempfile  /tmp/pymode_debug_file.txt
    pymode_doc            #1
    pymode_doc_bind        K
    pymode_doc_vertical   #0
    pymode_folding        #1
    pymode_folding_nest_limit #1000
    pymode_folding_regex   ^\s*\%(class\|def\|async\s\+def\) .\+\(:\s\+\w\)\@!
    pymode_indent         #1
    pymode_init           #1
    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: 
    dadf48a84b2c02d3d92f807315a2c24b69d86c4b
    -------------------------------------------------------------------------------
    pymode debug msg 6: End of pymode#debug#sysinfo
    pymode debug msg 7: line 1 has folding: 0 with foldcase general-- INSERT --
    pymode debug msg 8: line 1 has folding: = wit...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 9: line 1 has folding: = wit...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 10: line 1 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 11: line 1 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 12: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 13: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 14: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 15: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 16: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 17: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 18: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 19: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 20: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 21: line 1 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 22: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 23: line 2 has folding: = with foldcase blank line after non blank line-- INSERT --
    pymode debug msg 24: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 25: line 2 has folding: = with foldcase blank line after non blank line
    pymode debug msg 26: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 27: line 2 has folding: = with foldcase blank line after non blank line
    pymode debug msg 28: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 29: line 2 has folding: = with foldcase blank line after non blank line
    pymode debug msg 30: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 31: line 2 has folding: = with foldcase blank line after non blank line-- INSERT --
    pymode debug msg 32: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 33: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 34: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 35: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 36: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 37: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 38: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 39: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 40: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 41: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 42: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 43: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 44: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 45: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 46: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 47: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 48: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 49: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 50: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 51: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 52: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 53: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 54: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 55: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 56: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 57: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 58: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 59: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 60: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 61: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 62: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 63: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 64: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 65: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 66: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 67: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 68: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 69: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 70: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 71: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 72: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 73: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 74: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 75: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 76: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 77: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 78: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 79: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 80: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 81: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 82: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 83: line 2 has folding: = wi...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 84: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 85: line 2 has folding: = wi...blank line; first line of block or part of it
    pymode debug msg 86: line 3 has folding: = with foldcase blank line after non blank line-- INSERT --
    pymode debug msg 87: line 2 has folding: = wi...blank line; first line of block or part of it
    pymode debug msg 88: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 89: line 2 has folding: = wi...blank line; first line of block or part of it
    pymode debug msg 90: line 3 has folding: = with foldcase blank line after non blank line
    pymode debug msg 91: line 2 has folding: = wi...blank line; first line of block or part of it
    pymode debug msg 92: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 93: line 2 has folding: = wi...blank line; first line of block or part of it
    pymode debug msg 94: line 3 has folding: = with foldcase blank line after non blank line
    pymode debug msg 95: line 2 has folding: = wi...blank line; first line of block or part of it
    pymode debug msg 96: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 97: line 2 has folding: = wi...blank line; first line of block or part of it
    pymode debug msg 98: line 3 has folding: = with foldcase blank line after non blank line
    pymode debug msg 99: line 2 has folding: = wi...blank line; first line of block or part of it
    pymode debug msg 100: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 101: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 102: line 3 has folding: = with foldcase blank line after non blank line-- INSERT --
    pymode debug msg 103: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 104: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 105: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 106: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 107: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 108: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 109: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 110: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 111: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 112: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 113: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 114: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 115: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 116: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 117: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 118: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 119: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 120: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 121: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 122: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 123: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 124: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 125: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 126: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 127: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 128: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 129: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 130: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 131: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 132: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 133: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 134: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 135: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 136: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 137: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 138: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 139: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 140: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 141: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 142: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 143: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 144: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 145: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 146: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 147: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 148: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 149: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 150: line 3 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 151: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 152: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 153: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 154: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 155: line 4 has folding: = with foldcase blank line after non blank line-- INSERT --
    pymode debug msg 156: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 157: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 158: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 159: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 160: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 161: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 162: line 5 has folding: 0 with foldcase general-- INSERT --
    pymode debug msg 163: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 164: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 165: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 166: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 167: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 168: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 169: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 170: line 5 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 171: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 172: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 173: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 174: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 175: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 176: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 177: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 178: line 5 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 179: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 180: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 181: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 182: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 183: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 184: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 185: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 186: line 5 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 187: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 188: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 189: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 190: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 191: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 192: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 193: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 194: line 5 has folding: = w...blank line; first line of block or part of it-- INSERT --
    pymode debug msg 195: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 196: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 197: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 198: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 199: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 200: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 201: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 202: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 203: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 204: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 205: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 206: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 207: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 208: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 209: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 210: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 211: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 212: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 213: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 214: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 215: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 216: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 217: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 218: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 219: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 220: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 221: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 222: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 223: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 224: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 225: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 226: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 227: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 228: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 229: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 230: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 231: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 232: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 233: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 234: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 235: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 236: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 237: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 238: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 239: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 240: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 241: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 242: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 243: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 244: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 245: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 246: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 247: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 248: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 249: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 250: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 251: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 252: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 253: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 254: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 255: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 256: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 257: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 258: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 259: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 260: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 261: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 262: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 263: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 264: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 265: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 266: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 267: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 268: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 269: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 270: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 271: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 272: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 273: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 274: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 275: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 276: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 277: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 278: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 279: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 280: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 281: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 282: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 283: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 284: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 285: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 286: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 287: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 288: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 289: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 290: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 291: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 292: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 293: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 294: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 295: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 296: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 297: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 298: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 299: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 300: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 301: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 302: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 303: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 304: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 305: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 306: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 307: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 308: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 309: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 310: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 311: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 312: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 313: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 314: line 5 has folding: >1 with foldcase function declaration-- INSERT --
    pymode debug msg 315: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 316: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 317: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 318: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 319: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 320: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 321: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 322: line 5 has folding: >1 with foldcase function declaration
    pymode debug msg 323: line 6 has folding: = with foldcase blank line after non blank line-- INSERT --
    pymode debug msg 324: line 5 has folding: >1 with foldcase function declaration
    pymode debug msg 325: line 6 has folding: = with foldcase blank line after non blank line
    pymode debug msg 326: line 5 has folding: >1 with foldcase function declaration
    pymode debug msg 327: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 328: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 329: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 330: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 331: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 332: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 333: line 5 has folding: >1 with foldcase function declaration
    pymode debug msg 334: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 335: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 336: line 1 has folding: >1 with foldcase function declaration
    pymode debug msg 337: line 2 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 338: line 3 has folding: = w...blank line; first line of block or part of it
    pymode debug msg 339: line 4 has folding: = with foldcase blank line after non blank line
    pymode debug msg 340: line 5 has folding: >1 with foldcase function declaration
    
    
      4  
    -------------------------------------------------------------------------------
    pymode debug msg 341: Session history:
          #  cmd history
    >     1  q!
    
    
  12. fmv1992 commented on Feb 6, 2018

    @fmv1992
    Contributor

    Confirmed... Folding strikes again....

  13. diraol commented on Feb 10, 2018

    @diraol
    Contributor

    About Folding,

    maybe this PR would help at some point (specially regarding its performance):
    #602

    Should we open one or two Issues for folding problems and try to link all folding related issues there, closing them?

    I can see 2 main problems:

      1. Perfomance.
      1. Folding errors (usually on the beginning of files)
  14. fmv1992 commented on Feb 12, 2018

    @fmv1992
    Contributor

    To be honest this folding issue has been very demanding and yet very unstable.

    I'm not happy suggesting this but we should disable it by default, put it as an unstable feature and move on then come back in the future. This may hinder us from doing development on more important features...

    :/

  15. nineKnight commented on Feb 27, 2018

    @nineKnight
    Author

    I've turned to tmhedberg/SimpylFold for the Python folding.

  16. diraol commented on Apr 9, 2018

    @diraol
    Contributor

    Since this thread have lot's of info about the folding problems, I'm adding one more example that seems to break the folding algorithm (my vim simply does not start while opening a file with this content):

    import logging                                                                                                                                                                                                                               
    import os                                                                                                                                                                                                                                    
                                                                                                                                                                                                                                                   
    __all__ = ('log',)                                                                                                                                                                                                                           
                                                                                                                                                                                                                                                   
    log = logging.getLogger()  # noqa                                                                                                                                                                                                            
                                                                                                                                                                                                                                                 
    try:                                                                                                                                                                                                                                         
        log.setLevel(getattr(logging, os.getenv('LOG_LEVEL', 'INFO')))                                                                                                                                                                           
    except AttributeError:                                                                                                                                                                                                                       
        log.setLevel(logging.INFO)                                                                                                                                                                                                               
  17. fmv1992 commented on Apr 29, 2018

    @fmv1992
    Contributor

    Let's pile up every break on our folding here.

    Meanwhile I have turned it off by default c64c71f.

  18. added a commit that references this issue on May 10, 2018
  19. stale commented on Sep 26, 2018

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  20. diraol commented on Sep 28, 2018

    @diraol
    Contributor

    Just commenting here to avoid closing the issue, since it is an important one.

  21. diraol commented on Feb 17, 2019

    @diraol
    Contributor

    Guys, I've tested all codes from this issue and it seems to be working.
    I'll close it for now ok? If anyone faces issues with folding and do not want to use other folding features, reopen the issue with new info ok? Thanks! =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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