User forums > Help

Bug encountered while opening a Code::blocks project ?? [ Resolved ]

(1/2) > >>

Ghostwhowalks:
I'm not sure if this bug has been reported. I have created a Code-blocks project with three files:  main1.h, main2.h and main.cpp. The project compiles and I can run a console application built with those files. I have saved the project and exited Codeblocks. Now, when I reopen the project , The IDE/editor loads only main.cpp and I have to open the other files manually even though all those files belonged to one project. I wanted to know if it is possible to see/open all source files related to a project when a user opens a project file. If this is a bug, can you please fix it in your next Codeblocks release?

Thanks,
AM

MortenMacFly:

--- Quote from: Ghostwhowalks on January 29, 2010, 06:20:19 am ---I wanted to know if it is possible to see/open all source files related to a project when a user opens a project file. If this is a bug, can you please fix it in your next Codeblocks release?

--- End quote ---
This is surely not a bug. Code::Blocks opens the files as layout in the last session if you have enabled the option accordingly:
Settings -> Environment -> General settings -> Group "On project load" -> "Open all project files" OR "Open last open files".

Make sure you choose the right options. If e.g. working with a big project (Linux kernel sources) the first option will lead to the fact that you can grab a coffee while the IDE opens several 10000 files for you. Not sure if this would work at all. So be careful.

Jenna:

--- Quote from: Ghostwhowalks on January 29, 2010, 06:20:19 am ---I'm not sure if this bug has been reported. I have created a Code-blocks project with three files:  main1.h, main2.h and main.cpp. The project compiles and I can run a console application built with those files. I have saved the project and exited Codeblocks. Now, when I reopen the project , The IDE/editor loads only main.cpp and I have to open the other files manually even though all those files belonged to one project. I wanted to know if it is possible to see/open all source files related to a project when a user opens a project file. If this is a bug, can you please fix it in your next Codeblocks release?

Thanks,
AM

--- End quote ---

Please have a look at "Settings -> Environment -> General settings -> On project load:".

By the way, you forgot to tell us which version of C::B and which OS (and version) you use. This might be needed.

Jenna:

--- Quote from: MortenMacFly on January 29, 2010, 07:02:57 am ---Make sure you choose the right options. If e.g. working with a big project (Linux kernel sources) the first option will lead to the fact that you can grab a coffee while the IDE opens several 10000 files for you. Not sure if this would work at all. So be careful.

--- End quote ---

It works, I use the kernel-sources to test opening very much files in C::B.  :D

MortenMacFly:

--- Quote from: jens on January 29, 2010, 07:10:53 am ---It works, I use the kernel-sources to test opening very much files in C::B.  :D

--- End quote ---
So... just for the record: How long does it take (for how many files)?

Navigation

[0] Message Index

[#] Next page

Go to full version