Folders in the project hierarchy do not reload properly
A free, portable, fast and simple C/C++ IDE
Brought to you by:
orwelldevcpp
Using Dev-C++ 5.7.1 Portable with TDM-GCC 4.8.1 on various Windows 7 SP1 machines:
If you create a folder within a project, then add source files in the folder to the project, and leave them open when you exit with the "Project Auto Open: Opened files at previous closing" setting set, Dev-C++ fails to reopen the files that are in the folder.
At least sometimes, it doesn't open up any of the files, but opening up one of the files in the folders also causes all the non-folder-nested files to display, as well. I assume they had already loaded, but did not display because the files in the folder failed to load.
I've done some more investigation into reproducibility of the bug. It appears that the first time opening the project on a given user session causes the open files to not be initially shown at all, but then appear (without the files left open from the subfolder) when a file is opened. Any subsequent loads of the project in the same session cause the project files not organized in subfolders to load and appear at project load-time. The project files left open from project subfolders still do not initially load.
The bug has to do with the piece of code that manages the visibility of the editor list. For some reason, in version 5.7.1 at least, while the correct files are loaded, the editors are not drawn/displayed until any other event (like opening another file) triggers a visibility change.
I've been looking for a fix for a year now (almost every version I ever published has this bug), but to no avail. :(
Fixed as of 5.8.0.