Author Topic: Workspace fails to load from "Recent Projects" list (+partial Patch)  (Read 5629 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Workspace fails to load from "Recent Projects" list (+partial Patch)
« Reply #1 on: November 21, 2005, 11:00:27 am »
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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ