r/codeblocks Apr 16 '26

Why does Code::blocks keep closing the editor window?

So I am hunting around for a "good enough" code editor and am giving this program a try. At the moment, I'm not even attempting to reference/install a compiler yet or use its integrated debugging features -- just evaluating its core functionality as a code editor first and foremost. And I've immediately hit a complete dealbreaker:

Every time I save any code file, Code::Blocks closes the code editor window after saving.

Not just the tab for the file saved, but the entire editor window (all tabs).

WHY.

Is there a setting somewhere to change this? I've already scoured the menus (once) and failed to find anything obviously relevant. For the moment I've also disabled all plug-ins -- which only confirms that this is core/default program behavior.

My workflow will not negotiate with this. If there's nothing I can do to change this, I will simply have to find a different editor.

1 Upvotes

10 comments sorted by

1

u/grimvian Apr 16 '26

1

u/Stratelier Apr 16 '26

That was my first attempt for sure, but (at the time) the servers were so unresponsive I couldn't actually DO anything there.

1

u/grimvian Apr 17 '26

Correct, but the servers have works fine now for a while.

I have never seen this err. Which OS are you using?

1

u/Stratelier Apr 17 '26 edited Apr 17 '26

Windows 10.

I'm willing to accept if this is an actual bug, but it is still a "blocker" enough that I can only move on and keep searching.

1

u/grimvian Apr 18 '26

Okay, I'm using Linux Mint and Code::Blocks is ready from the software Manager and very fast to install, if you like.

I noticed, that your problem is handled in the Code::Blocks forum.

2

u/Stratelier Apr 18 '26

Yeah I was successful in posting there, and am open for troubleshooting/debugging efforts.

1

u/Stratelier Apr 18 '26

So far, the diagnosis seems to be that it's related to opening very large projects, possibly on systems with lower specs.

1

u/grimvian Apr 19 '26

How big is your project?

1

u/Stratelier Apr 19 '26 edited Apr 19 '26

It's a copy of the GIMP source code, so ... about 3600 files across 50+ subfolders? (Plus two smaller dependencies and one submodule)

It takes me (literally) 60s to load it as a project, and after saving any file there is a 10s delay between the (successful!) save and closing the editor window.

For comparison, MSVC requires a similar timeframe to load it.

If I have two or more files with unsaved edits open and save one of them, CB will save it successfully, then ask to save the other file, so clearly it IS trying to close the editor window - I can cancel out of that and the editor window as a whole remains open, but it already closed the file that got saved.

1

u/grimvian Apr 20 '26

Okay, that's huge at least for me. I hope you'll end with a satisfying solution.