News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Workspace fails to load from "Recent Projects" list (+partial Patch)

Started by MortenMacFly, November 20, 2005, 04:31:56 PM

Previous topic - Next topic

MortenMacFly

Dear all,

I have a currently strange problem with the CVS version of C::B: I cannot recall/load workspaces from the "File" -> "Recent projects" menu. In the C::B log the line "Importing [...].workspace" shows up with no status. I've looked through the code and I assume I have located the problem in cbproject.cpp:
When the project is recalled there is the statement: if (ft == ftCodeBlocksProject) (...) else (...). In the else-tree other than C::B projects are opened. If that fails, no error is printed in the log. I've attached a patch that corrects this.
But: I've also tried to change the if(...) statement to include C::B workspace files which unfortunately doesn't work... Why? Could someone try to reproduce this behaviour?

With regards,

Morten.


[attachment deleted by admin]
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

MortenMacFly

Quote from: MortenMacFly on November 20, 2005, 04:31:56 PM
I have a currently strange problem with the CVS version of C::B: I cannot recall/load workspaces from the "File" -> "Recent projects" menu. [...]
This issue has obvioulsy disappeared with the current CVS-HEAD version... :D
However: I still believe that the patch makes sense anyway for the log message shown to be finished...?!

With best regards,

Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]