The 'Auto-hide message pane' function still does not work (under windows) - in both directions:
1) The message pane doesn't come up on compiling etc. if it is hidden.
2) If it is called with 'View-Logs' it never disapears as expected.
and in deb too this mean linux too :( !!!
Patch to make "Auto-hide message pane" work again:
--- codeblocks-1.0svn.orig/src/src/main.cpp 2007-11-30 07:00:03.000000000 +0100
+++ codeblocks-1.0svn.work/src/src/main.cpp 2007-12-03 11:43:16.000000000 +0100
@@ -676,7 +676,7 @@
void MainFrame::SetupGUILogging()
{
- m_AutoHideLogs = Manager::Get()->GetConfigManager(_T("app"))->ReadBool(_T("/auto_hide"), false);
+ m_AutoHideLogs = Manager::Get()->GetConfigManager(_T("message_manager"))->ReadBool(_T("/auto_hide"), false);
int bottomH = Manager::Get()->GetConfigManager(_T("app"))->ReadInt(_T("/main_frame/layout/bottom_block_height"), 150);
wxSize clientsize = GetClientSize();
See thread http://forums.codeblocks.org/index.php/topic,7415.0.html
for more details.
NON PCH header patch for Linux, untested by me.
But, tested by bgolding.
Index: src/plugins/compilergcc/advancedcompileroptionsdlg.cpp
===================================================================
--- src/plugins/compilergcc/advancedcompileroptionsdlg.cpp (revision 4699)
+++ src/plugins/compilergcc/advancedcompileroptionsdlg.cpp (working copy)
@@ -1,6 +1,7 @@
#include "sdk.h"
#ifndef CB_PRECOMP
#include <wx/checkbox.h>
+#include <wx/choice.h>
#include <wx/combobox.h>
#include <wx/intl.h>
#include <wx/listbox.h>
Also a patch to 'bootstrap', remove the $ from regexp to correctly detect automake 1.6.3 (which doesn't work to build C::B). Otherwise it will try to proceed and fail later (not in an obvious way).
Not sure why 'svn' diff' has made this look like a bigger change than it is...
Index: bootstrap
===================================================================
--- bootstrap (revision 4703)
+++ bootstrap (working copy)
@@ -42,7 +42,7 @@
exit 1;
fi
-if test -n "`$AUTOMAKE --version 2>&1|head -n 1|egrep '1\.[0-6]$'`"; then
+if test -n "`$AUTOMAKE --version 2>&1|head -n 1|egrep '1\.[0-6]'`"; then
echo "Automake 1.7 or above is required. Aborting build...";
exit 1;
fi
Only, the crashes on close workspace are still there, but OK, I can reopen C::B when it happens.
wobien
I get crashes, if I close a workspace and then create a new project. After some debugging (with kdbg :(, because I still don't know how to debug C::B from within C::B ), I figured out a problem with the debugger-plugin's RemoteDebuggingMap.
After disabling the plugin, the crashes went away.
Perhaps I have enough time to do a little more debugging this weekend.
The RemoteDebuggingMap was not cleared, when closing a project.
Here is a patch that fixes the problem (and a typo in a comment):
--- codeblocks-1.0svn.orig/src/plugins/debuggergdb/debuggergdb.cpp 2007-12-07 20:03:07.000000000 +0100
+++ codeblocks-1.0svn.work/src/plugins/debuggergdb/debuggergdb.cpp 2007-12-08 23:55:25.000000000 +0100
@@ -2463,10 +2463,13 @@
// allow others to catch this
event.Skip();
- // remove all search dirs sotred for this project so we don't have conflicts
+ // remove all search dirs stored for this project so we don't have conflicts
// if a newly opened project happens to use the same memory address
GetSearchDirs(event.GetProject()).clear();
+ // clear the RemoteDebuggingMap for this project
+ m_RemoteDebugging.clear();
+
// remove all breakpoints belonging to the closed project
m_State.RemoveAllProjectBreakpoints(event.GetProject());
if (m_pBreakpointsWindow)