Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: Manolo on August 29, 2013, 12:28:11 am
-
Hello
When I reopen my project I see that some blocks of code are folded, while others are not. And it seems to me that those blocks were not the same I kept folded last time I used that project.
What I would like to know is when C:B saves the folding status (which blocks to fold) and if there's an option to save it by hand. Perhaps is it done when the file is saved? when the project is saved?
TIA
Manolo
-
I have the same issue, so i found this and some similar topics here, but none of them got any answer.
I wonder if there any logical explanation on how C::B decides which blocks to fold when it opens file.
Also it would be nice if C::B did it more obvious like when file saves or there was a way to save folding settings manually. How do I post a feature request?
-
This is the change that introduced this feature: https://github.com/obfuscated/codeblocks_sf/commit/6452d64e367676aa8b722010e68665ca25346402
In short:
1. there is an option to disable it in the settings
2. the state is saved in the layout file.
3. post exact steps to reproduce the problem of broken folding.
4. what do you mean by save settings manually?
-
1. I didn't understand to disable *what*? But I don't think I need to disable *it* anyway, more like I need it to work properly.
2. When does the layout file saves? I believe it happens when I *Save project* or at least when I *Save everything*, whatever "everything" is. Do I understand this right?
3.
1) Say I folded every function block in my source file like this: http://joxi.ru/HbN8UxjKTJAeTpfRCec
2) I click *Save everything* in File menu just to be sure.
3) I exit C::B.
4) I launch C::B and reopen my workspace and see that some random blocks are unfolded while others (it seems to be only few in the beginning of the file) remain folded: http://joxi.ru/V7V8UxjKTJAuTkC8auo
4. I meant since saving source or project or workspace or whatever seems to not affect saving folding settings maybe there is (should be?) some dedicated menu item like *Save folding settings*. Actually it would be much better if folding settings were saved when corresponding source file is saved. Which I believe you intended to implement but there seems to be a bug.
-
Does this happen with a new simple hello world type of project?
p.s. There is no option, I've been misled by the commit, so this fold saving is always enabled.
-
Yes, it does.
I tried to create a new project using the Console application template. Then i folded the main() function and closed C::B.
After restarting main() block was unfolded. I also tried adding some other (empty) function blocks, changed some project settings so that C::B would ask me if project needs to be saved (to be sure project saving occurs). Nothing helped, I actually haven't managed to get any block folded at the time project is reopened.
-
It seems that it fails during loading of the layout file. The saving works as expected, but the loading code files.
The problem happens in this file: Editor::FoldLine (deep in scintilla).
It would be very helpful if you can try to find which is the last working nightly build.
-
Sorry for the long silence, I couldn't find time and will to dig through nightlies for a while =)
But now when I did, there seems to be a problem: links to builds older than December 13 (which is current stable build afaik) are all outdated.
-
Here you can find all available night builds: http://developer.berlios.de/project/showfiles.php?group_id=5358 (scroll to the bottom)
-
Sorry again, maybe I'm late, but no, you can't. It redirects to the index page (http://www.berlios.de/)
-
Yes the berlios.de has closed.
You can check here https://sourceforge.net/projects/codeblocks/files/Binaries/Nightlies/
@dev: Can you add me as dev in the sf.net and also mark 13.12 as the latest release?
-
@dev: Can you add me as dev in the sf.net and also mark 13.12 as the latest release?
You are a dev since ages there, probably the name is wrong? What is your SF login?
And I don't see a way to flag (multiple) files or folders as release.
-
fuscated, but probably you're correct and probably I need admin rights to change stuff there.
Currently the default download button proposes a 12.11 release for me.
-
Well I see the 13.12 "no setup" version. Is this a probably cookie based "intelligent" voodoo SF stuff?
-
Well I see the 13.12 "no setup" version. Is this a probably cookie based "intelligent" voodoo SF stuff?
it seems so: I see 12.11-1_i386-debian-stab.... on my linux mint 15 machine
greetings
-
Well I see the 13.12 "no setup" version. Is this a probably cookie based "intelligent" voodoo SF stuff?
Some time in the past, I believe I told SF.net to show me Windows stuff.
I think we need to figure out how to see the Linux stuff.
Tim S.