bugGNU Octave - Bugs: bug #42569, Glitch in code folding

 
 

bug #42569: Glitch in code folding

Submitter:  Armin Müller <arm_in>
Submitted:  Mon 16 Jun 2014 12:43:13 PM UTC
   
 
Category:  GUI Severity:  2 - Minor
Priority:  3 - Low Item Group:  Other
Status:  Fixed Assigned to:  lostbard
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Thu 19 Jan 2017 02:23:39 PM UTC, comment #8: 

Pushed http://hg.octave.org/mxe-octave/rev/6e4a1de60e8b for mxe-octave

For non-mxe-octave distributions, fix will not be in effect until patch makes its way into the qscintilla release - outside of the control of octave.

Closing bug report as fixed as we have done everything we can do

John Donoghue <lostbard>
Group Member
Fri 25 Nov 2016 05:55:12 PM UTC, comment #7: 

Patch for scintilla has been committed - not it just has to find its way into qscintilla

John Donoghue <lostbard>
Group Member
Thu 17 Nov 2016 01:54:40 PM UTC, comment #6: 

And patch qscintilla for mxe-octave

(file #39002)

John Donoghue <lostbard>
Group Member
Tue 15 Nov 2016 08:43:52 PM UTC, comment #5: 

I need play around with it some more before sending to scintilla, but this appears to work when patched on the repo from scintilla:



(file #38976)

John Donoghue <lostbard>
Group Member
Sun 13 Nov 2016 09:20:54 PM UTC, comment #4: 

Still present in 4.2.0-rc4

(obviously, there has been no activity in the linked Scintilla ticket)

Armin Müller <arm_in>
Sat 07 Feb 2015 02:35:47 PM UTC, comment #3: 

Marking bug report as postponed but leaving open until Scintilla and QScintilla have the fix for this, then we can document here which version of the library is needed for this to work.

Mike Miller <mtmiller>
Group Member
Sat 07 Feb 2015 08:46:55 AM UTC, comment #2: 

This issue is present in Scintilla (tested with latest SciTE version 3.5.3). I have filed a bug report that can be found here: https://sourceforge.net/p/scintilla/bugs/1692/

Torsten Lilge <ttl>
Group Member
Sat 07 Feb 2015 06:13:39 AM UTC, comment #1: 

Confirmed.  The bug is still present on the development branch which will become 4.0.  This is very likely a Qscintilla bug which means we need upstream to fix it.  Has it been reported there?

Rik <rik5>
Group administrator
Mon 16 Jun 2014 12:43:13 PM UTC, original submission:  

Example code:


function code_folding_demo

for x = 1:5   % Code folding is working, but not indicated

  % ^^^ please remove empty line above *or* enter some white space ^^^

  a = b + c;
end

for x = 1:5   % OK
  a = b + c;
end


In line 3, there is no [-] code folding indicator visible in the folding ruler. Nevertheless, it is possible to click on the invisible indicator to open and close folding. It will work as expected.

Removing line 4 or entering some white space in line 4 will work around this glitch. Notepad++ is showing exactly the same behaviour, maybe it is inherited from Scintilla.

Example code and screenshot attached.

Armin Müller <arm_in>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #39002:  qscintilla-2-matlab-fold.patch added by lostbard (6KiB - application/octet-stream)
file #38976:  fold.patch added by lostbard (7KiB - application/octet-stream)
file #31566:  code_folding_demo.m added by arm_in (226B - application/octet-stream)
file #31567:  code_folding_demo.png added by arm_in (38KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by lostbard (Updated the item)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by arm_in (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 15 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-01-19 lostbard StatusPostponed Fixed
        Assigned toNone lostbard
        Open/ClosedOpen Closed
    2016-11-17 lostbard Attached File- Added qscintilla-2-matlab-fold.patch, #39002
    2016-11-15 lostbard Attached File- Added fold.patch, #38976
    2016-11-13 rik5 Carbon-CopyRemoved 72865 -
    2015-02-07 mtmiller Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        Item GroupNone Other
        StatusConfirmed Postponed
    2015-02-07 rik5 StatusNone Confirmed
        Release3.8.1 dev
        Operating SystemMicrosoft Windows Any
    2014-06-16 arm_in Attached File- Added code_folding_demo.m, #31566
        Attached File- Added code_folding_demo.png, #31567

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code