Folding

Hi there,

I have been using Glider with joy for some time, but I have a first world problem. While I can fold most of my code, some entries cannot be folded. Some of my functions can be folded, however some cannot. That goes the same with if statements. Any ideas?

Thank you
[import]uid: 99031 topic_id: 34628 reply_id: 334628[/import]

Hello MrLama,

If possible please post a screenshot of your problem.

Regards,
M.Y. Developers
[import]uid: 55057 topic_id: 34628 reply_id: 137670[/import]

I’ve found that if I save and re-open a file folding will detect code and fold it properly. [import]uid: 13784 topic_id: 34628 reply_id: 137730[/import]

Hello MrLama,

If possible please post a screenshot of your problem.

Regards,
M.Y. Developers
[import]uid: 55057 topic_id: 34628 reply_id: 137670[/import]

I’ve found that if I save and re-open a file folding will detect code and fold it properly. [import]uid: 13784 topic_id: 34628 reply_id: 137730[/import]

I have noticed the folding problem for a while also, and it is annoying. It seems to have something to do with closing some folds, and using copy and paste, but I can’t get it to repeat.

I did get a screen shot of it while trying to demonstrate it, but I cant repeat it doing the same actions in a new file.

In the pic, I added a comment and hit return to show that the folding does not appear after editing the code

http://oi48.tinypic.com/2u9tt08.jpg

http://oi48.tinypic.com/2u9tt08.jpg

(the img tag doesn’t seem to work in the forum preview, but you can go to that link if it doesn’t show up when I post this.) [import]uid: 173551 topic_id: 34628 reply_id: 144642[/import]

[edit for clarity]
Maybe this will be of some help. The last thing I did in glider was the pic I posted above, so on a hunch I looked in the IDE log. I remember that when I had this problem and started looking for solutions, I was cleaning up my code and deleted some stub functions. When I made the posted pic I also deleted functions and pasted them back, sometimes pasting the same function several times. Based on the messages in the log, it seems to be causing problems in the Fold manager.

Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <12,30>, desc=’{…}’, hash=0xd45375, [13, 29] {13, 29}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <12,30>, desc=’{…}’, hash=0x182b239, [13, 29] {13, 29}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <74,92>, desc=’{…}’, hash=0x83c219, [75, 91] {75, 91}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <74,92>, desc=’{…}’, hash=0x14e8aa2, [75, 91] {75, 91}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 142,148 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 62 ms.
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 0 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 31 ms.
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0x706dae, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0xf3824d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] C0 <123,141>, desc=’{…}’, hash=0xf3824d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0x15e35d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 41,652 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 47 ms.
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 258,227 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 47 ms.
[import]uid: 173551 topic_id: 34628 reply_id: 144643[/import]

I have noticed the folding problem for a while also, and it is annoying. It seems to have something to do with closing some folds, and using copy and paste, but I can’t get it to repeat.

I did get a screen shot of it while trying to demonstrate it, but I cant repeat it doing the same actions in a new file.

In the pic, I added a comment and hit return to show that the folding does not appear after editing the code

http://oi48.tinypic.com/2u9tt08.jpg

http://oi48.tinypic.com/2u9tt08.jpg

(the img tag doesn’t seem to work in the forum preview, but you can go to that link if it doesn’t show up when I post this.) [import]uid: 173551 topic_id: 34628 reply_id: 144642[/import]

[edit for clarity]
Maybe this will be of some help. The last thing I did in glider was the pic I posted above, so on a hunch I looked in the IDE log. I remember that when I had this problem and started looking for solutions, I was cleaning up my code and deleted some stub functions. When I made the posted pic I also deleted functions and pasted them back, sometimes pasting the same function several times. Based on the messages in the log, it seems to be causing problems in the Fold manager.

Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <12,30>, desc=’{…}’, hash=0xd45375, [13, 29] {13, 29}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <12,30>, desc=’{…}’, hash=0x182b239, [13, 29] {13, 29}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <74,92>, desc=’{…}’, hash=0x83c219, [75, 91] {75, 91}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <74,92>, desc=’{…}’, hash=0x14e8aa2, [75, 91] {75, 91}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 142,148 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 62 ms.
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 0 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 31 ms.
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0x706dae, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0xf3824d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] C0 <123,141>, desc=’{…}’, hash=0xf3824d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0x15e35d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 41,652 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 47 ms.
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 258,227 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 47 ms.
[import]uid: 173551 topic_id: 34628 reply_id: 144643[/import]

I have noticed the folding problem for a while also, and it is annoying. It seems to have something to do with closing some folds, and using copy and paste, but I can’t get it to repeat.

I did get a screen shot of it while trying to demonstrate it, but I cant repeat it doing the same actions in a new file.

In the pic, I added a comment and hit return to show that the folding does not appear after editing the code

http://oi48.tinypic.com/2u9tt08.jpg

http://oi48.tinypic.com/2u9tt08.jpg

(the img tag doesn’t seem to work in the forum preview, but you can go to that link if it doesn’t show up when I post this.) [import]uid: 173551 topic_id: 34628 reply_id: 144642[/import]

[edit for clarity]
Maybe this will be of some help. The last thing I did in glider was the pic I posted above, so on a hunch I looked in the IDE log. I remember that when I had this problem and started looking for solutions, I was cleaning up my code and deleted some stub functions. When I made the posted pic I also deleted functions and pasted them back, sometimes pasting the same function several times. Based on the messages in the log, it seems to be causing problems in the Fold manager.

Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <12,30>, desc=’{…}’, hash=0xd45375, [13, 29] {13, 29}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <12,30>, desc=’{…}’, hash=0x182b239, [13, 29] {13, 29}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <74,92>, desc=’{…}’, hash=0x83c219, [75, 91] {75, 91}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <74,92>, desc=’{…}’, hash=0x14e8aa2, [75, 91] {75, 91}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 142,148 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 62 ms.
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 0 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 31 ms.
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0x706dae, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0xf3824d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] C0 <123,141>, desc=’{…}’, hash=0xf3824d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0x15e35d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 41,652 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 47 ms.
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 258,227 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 47 ms.
[import]uid: 173551 topic_id: 34628 reply_id: 144643[/import]

I have noticed the folding problem for a while also, and it is annoying. It seems to have something to do with closing some folds, and using copy and paste, but I can’t get it to repeat.

I did get a screen shot of it while trying to demonstrate it, but I cant repeat it doing the same actions in a new file.

In the pic, I added a comment and hit return to show that the folding does not appear after editing the code

http://oi48.tinypic.com/2u9tt08.jpg

http://oi48.tinypic.com/2u9tt08.jpg

(the img tag doesn’t seem to work in the forum preview, but you can go to that link if it doesn’t show up when I post this.) [import]uid: 173551 topic_id: 34628 reply_id: 144642[/import]

[edit for clarity]
Maybe this will be of some help. The last thing I did in glider was the pic I posted above, so on a hunch I looked in the IDE log. I remember that when I had this problem and started looking for solutions, I was cleaning up my code and deleted some stub functions. When I made the posted pic I also deleted functions and pasted them back, sometimes pasting the same function several times. Based on the messages in the log, it seems to be causing problems in the Fold manager.

Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <12,30>, desc=’{…}’, hash=0xd45375, [13, 29] {13, 29}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <12,30>, desc=’{…}’, hash=0x182b239, [13, 29] {13, 29}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <74,92>, desc=’{…}’, hash=0x83c219, [75, 91] {75, 91}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <74,92>, desc=’{…}’, hash=0x14e8aa2, [75, 91] {75, 91}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 142,148 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 62 ms.
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 0 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 31 ms.
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0x706dae, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0xf3824d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
Adding a fold that is identical with another previously added fold from the same FoldManager is not allowed.
Existing fold: [code-block] C0 <123,141>, desc=’{…}’, hash=0xf3824d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
New fold: [code-block] E0 <123,141>, desc=’{…}’, hash=0x15e35d, [124, 140] {124, 140}; FoldManager: org.netbeans.modules.csl.editor.fold.GsfFoldManager@15888e2
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 41,652 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 47 ms.
INFO [org.netbeans.ui.indexing]: Indexing started, time from last indexing 258,227 ms.
INFO [org.netbeans.ui.indexing]: Indexing finished, indexing took 47 ms.
[import]uid: 173551 topic_id: 34628 reply_id: 144643[/import]