Hi,
running 20.03 (packaged by my distro, arch linux).
Editor colors were weird so went into Settings-Editor-Syntax highlighting. See screenshot : the "active line" never gets highlighted with the shown yellow color.
If I press the 'D' button to reset the background color, I get an assertion failure in wxColour::Blue() , then Green(), then Red() !
Backtrace:
ASSERT INFO:
./src/gtk/colour.cpp(207): assert "IsOk()" failed in Blue(): invalid colour
BACKTRACE:
[1] wxColour::Blue() const
[2] wxScintilla::SetCaretLineBackground(wxColour const&)
[3] EditorColourSet::Apply(wxString, cbStyledTextCtrl*, bool, bool)
[4] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[5] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
...
I tried deleting .config/codeblocks/default.conf ; same problem.
Sounded a bit like this old thread http://forums.codeblocks.org/index.php?topic=22607.0
but the proposed fix there isn't applicable, there's no property anywhere.
Ideas ?
It's identical to what I posted with 20.03 :
ASSERT INFO:
./src/gtk/colour.cpp(207): assert "IsOk()" failed in Blue(): invalid colour
BACKTRACE:
[1] wxColour::Blue() const
[2] wxScintilla::SetCaretLineBackground(wxColour const&)
[3] EditorColourSet::Apply(wxString, cbStyledTextCtrl*, bool, bool)
[4] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[5] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[6] wxEvtHandler::TryHereOnly(wxEvent&)
[7] wxEvtHandler::ProcessEventLocally(wxEvent&)
[8] wxEvtHandler::ProcessEvent(wxEvent&)
[9] wxWindowBase::TryAfter(wxEvent&)
[10] wxWindowBase::TryAfter(wxEvent&)
[11] wxWindowBase::TryAfter(wxEvent&)
[12] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[13] g_closure_invoke
[14] g_signal_emit_valist
[15] g_signal_emit
[16] g_closure_invoke
[17] g_signal_emit_valist
[18] g_signal_emit
[19] g_closure_invoke
[20] g_signal_emit_valist
[21] g_signal_emit
[22] gtk_propagate_event
[23] gtk_main_do_event
[24] g_main_context_dispatch
[25] g_main_loop_run
[26] gtk_main
[27] wxGUIEventLoop::DoRun()
[28] wxEventLoopBase::Run()
[29] wxDialog::ShowModal()
[30] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[31] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[32] wxEvtHandler::TryHereOnly(wxEvent&)
[33] wxEvtHandler::DoTryChain(wxEvent&)
[34] wxEvtHandler::ProcessEvent(wxEvent&)
[35] wxWindowBase::TryAfter(wxEvent&)
[36] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[37] wxMenuBase::SendEvent(int, int)
[38] g_closure_invoke
[39] g_signal_emit_valist
[40] g_signal_emit
[41] gtk_widget_activate
[42] gtk_menu_shell_activate_item
[43] g_closure_invoke
[44] g_signal_emit_valist
[45] g_signal_emit
[46] gtk_propagate_event
[47] gtk_main_do_event
[48] g_main_context_dispatch
[49] g_main_loop_run
[50] gtk_main
[51] wxGUIEventLoop::DoRun()
[52] wxEventLoopBase::Run()
[53] wxAppConsoleBase::MainLoop()
[54] wxEntry(int&, wchar_t**)
[55] __libc_start_main
Please post the info in the about dialog (Help->About->Information), you have not provided it, yet!
Oops I misread !
Name : Code::Blocks
Version : svn-r12293
SDK Version : 2.6.0
Scintilla Version: 3.7.5
Author : The Code::Blocks Team
E-mail : info@codeblocks.org
Website : http://www.codeblocks.org
wxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
compiled at Jan 11 2021 22:50:13
Runtime version of toolkit used is 2.24.
Compile-time GTK+ version is 2.24.33.