Menu

syntax folding broken in 5.x?

ondras
2008-07-29
2012-11-13
  • ondras

    ondras - 2008-07-29

    Hi,

    I found a strange behavior in 5.0 and 5.0.2 versions: Fold all (alt+0) works badly, folding only part of whole code. I experimented with this, my current result:

    - when cursor is located at the end of file, all gets folded correctly;

    - when cursor is located elsewhere, only partial folding happens: all levels are collapsed, but only in the currently visible part of the document.

    Is someone else experiencing the same behavior?

     
    • Harry

      Harry - 2008-08-15

      The problem seems to be that not the entire file is lexed and so folding is not available. If I have some time ill look into it

       
    • Anonymous

      Anonymous - 2008-07-30

      I have seen the same problem in 5.0.2. As well as regular files it nativly supports, I am using a file that uses a colour/cold folding scheme that I have defined.

       
    • Don HO

      Don HO - 2008-08-06

      I can not reproduce the bug in v5.0.3.
      Could you provide the instructions to reproduce it?

      Don

       
    • Anonymous

      Anonymous - 2008-08-08

      I load in a python script (or any file for that matter) and it gets colour coded as usual. Press Alt+0 and it only folds what is seen on the screen. Set this file style to normal text, then back to Python. Now fold again using Alt+0 and all the file gets folded as it should. I've tried Python, VB/VBA (bas, frm and cls files), Matlab, C, my own derivatives; all have the same problem.

      This was a clean install of NPP 5.0.3, previous install completely deleted, all data settings were saved to program files so nothing is saved to %APPDATA%, all plugins removed.

       
    • joe shmoe

      joe shmoe - 2008-08-13

      I have been having the same problem since 5.0, and I thought there was a glitch in the install. I tried reinstalling, with the same results.

      There are two problems, folding and unfolding. Though, as long as you first scroll to the bottom, everything works. :-*

      I am using mainly PHP.

      How do you contact the developer? Or is there a bug-reporting page?

       
    • joe shmoe

      joe shmoe - 2008-08-13

      I have been having the same problem since 5.0, and I thought there was a glitch in the installion. I tried reinstalling, with the same results.

      There are two problems, folding and unfolding. Though, as long as you first scroll to the bottom, everything works. :-*

      I am using mainly PHP.

      How do you contact the developer? Or is there a bug-reporting page?