Page 1 of 1

Editor procedure folding - Not working.

Posted: Sunday 5th February 2023 1:13am
by Quincunxian
Installed Gambas on a newly built machine. (Mint 20.3 - Gambas teams PPA )
Everything works but editor 'folding'

The folding underlying process is 'working', as if I go to Preferences-Editor-Procedure Folding and turn it off.
Any folded pages in a current project are unfolded.

Turning it back on and trying to click on the + or - in the editor simply won't do anything.

I have had this before on previous rebuilds but "it just went away" after a short time which was not helpful.

I've toggled locking the Form code and no change.

Any ideas ?

Re: Editor procedure folding - Not working.

Posted: Sunday 5th February 2023 3:10am
by Quincunxian
Now it's working :roll:

Working on my current project and the editor froze. Unable to edit anything but was able to scroll, open new form or class code.
Again, I've had this before and the simple solution is to restart Gambas.
Once I restarted, the editor was unfrozen and annoyingly, the code folding was working again.
(I have opened and closed Gambas several times in the last 2 days and the code folding was not working each time)
What I was doing before the editor froze, was opened the browse function for identifying an image for a button control. That's it.
On returning to the editor , it had frozen.

Unless this is very coincidental, I feel that the two conditions are related.



Gremlins !

Re: Editor procedure folding - Not working.

Posted: Sunday 5th February 2023 10:19am
by cogier
On your new installation, can you easily edit the Group property? I am using Mint 21 and I have to hack the .form file to add Group details as the new ComboBox does not work.

Re: Editor procedure folding - Not working.

Posted: Sunday 12th February 2023 2:39pm
by BruceSteers
Quincunxian wrote: Sunday 5th February 2023 3:10am Now it's working :roll:

Working on my current project and the editor froze. Unable to edit anything but was able to scroll, open new form or class code.
Again, I've had this before and the simple solution is to restart Gambas.
Once I restarted, the editor was unfrozen and annoyingly, the code folding was working again.
(I have opened and closed Gambas several times in the last 2 days and the code folding was not working each time)
What I was doing before the editor froze, was opened the browse function for identifying an image for a button control. That's it.
On returning to the editor , it had frozen.

Unless this is very coincidental, I feel that the two conditions are related.



Gremlins !
Yep i think i've found the same thing.
After debugging or something, suddenly i cannot edit text and have to reload the project.
something is not being un-locked after it's been locked.

I'll make a bug report

Re: Editor procedure folding - Not working.

Posted: Friday 17th February 2023 10:44pm
by Quincunxian
Thanks Bruce.
I feel a little 'less' crazy.
Sometimes I think some of the weird stuff that Gambas does (occasionally to very occasionally) is a tribe of gremlins nesting in my code.

I've also lost faith in the global search and replace 'Replace All' - Its screwed up my code way too many times.

Thankfully, the one where you copy some code in the same file (reposition it) and it adds the same code after the last procedure in the file seems to have stopped for now.
Haven't seen that one for quite some time.

off to feed the gremlins...