Author Topic: Cannot fix watch window under the project tree  (Read 5484 times)

Offline smartes

  • Single posting newcomer
  • *
  • Posts: 7
Cannot fix watch window under the project tree
« on: November 02, 2021, 11:57:32 am »
I would like to have watches window under the project tree . However, it looks like separate window it doesnt become blue when I put it at the place, it goes down under the C::B window when I work with a code. Was it changed or any other issue? I use Ubuntu 21 with wayland if it may some point.

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Cannot fix watch window under the project tree
« Reply #1 on: November 02, 2021, 12:22:09 pm »
Can you please supply the info displayed as per the following process:
1. In C::B select the "Help" menu item
2. Select the "About" sub menu
3. In the about dialog select the "Information" tab
4. Copy the info displayed
5. Paste it as a response on this thread.

Can you also include what version of Ubuntu 21 you have installed.



Offline smartes

  • Single posting newcomer
  • *
  • Posts: 7
Re: Cannot fix watch window under the project tree
« Reply #2 on: November 02, 2021, 01:20:51 pm »
Name                   : Code::Blocks
Version                : svn-r12536
SDK Version            : 2.16.0
Scintilla Version      : 3.7.5
Author                 : The Code::Blocks Team
E-mail                 : info@codeblocks.org
Website                : http://www.codeblocks.org
OS                     : Linux 5.13.0-20-generic x86_64
Scaling factor         : 1.000000
Detected scaling factor: 1.000000
Display PPI            : 96x96
Display count          : 2
Display 0              : XY=[0,0]; Size=[2560,1440]; Primary
Display 1              : XY=[2560,0]; Size=[1920,1200];

wxWidgets Library (wxGTK port)
Version 3.1.5 (Unicode: wchar_t, debug level: 1),
compiled at Oct 15 2021 11:55:14

Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.25.

ubuntu 21.10 Gnome 40.4 Wayland

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Cannot fix watch window under the project tree
« Reply #3 on: November 02, 2021, 11:17:43 pm »
I have C::B installed on XUbuntu 20.04 and it is working okay. Looks like you are using your own local build from the C::B version & data and wxWidget version. I would suggest installing the latest nightly (svn-r12535) and see if it works for you or not.

My installed version info is:
Name                   : Code::Blocks
Version                : svn-r12535
SDK Version            : 2.16.0
Scintilla Version      : 3.7.5
Author                 : The Code::Blocks Team
E-mail                 : info@codeblocks.org
Website                : http://www.codeblocks.org
OS                     : Linux 5.14.11-051411-generic x86_64
Scaling factor         : 1.000000
Detected scaling factor: 0.989583
Display PPI            : 96x95
Display count          : 1
Display 0              : XY=[0,0]; Size=[1920,975]; Primary

wxWidgets Library (wxGTK port)
Version 3.0.5 (Unicode: wchar_t, debug level: 1),
Runtime version of toolkit used is 3.24.
Compile-time GTK+ version is 3.24.20.


Offline smartes

  • Single posting newcomer
  • *
  • Posts: 7
Re: Cannot fix watch window under the project tree
« Reply #4 on: November 03, 2021, 10:15:10 am »
As you can see my version is even 12536.

Offline smartes

  • Single posting newcomer
  • *
  • Posts: 7
Re: Cannot fix watch window under the project tree
« Reply #5 on: November 03, 2021, 12:02:44 pm »
I found how to solve the issue. I add to ~/.config/codeblocks/default.conf the following:
name=WatchesPane;caption=Watches;state=2099196;dir=4;layer=1;row=0;pos=1;prop=100000;bestw=150;besth=100;minw=50;minh=50;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=100;floath=150
to corresponding layouts. And now it works. However, if I wish to resize watches window with mouse i got:

ASSERT INFO:
../src/common/wincmn.cpp(3345): assert "!wxMouseCapture::IsInCaptureStack(this)" failed in CaptureMouse(): Recapturing the mouse in the same window?

BACKTRACE:
[1] wxWindowBase::CaptureMouse()
[2] wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&)
[3] wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*)
[4] wxEvtHandler::TryHereOnly(wxEvent&)
[5] wxEvtHandler::DoTryChain(wxEvent&)
[6] wxEvtHandler::ProcessEvent(wxEvent&)
[7] wxEvtHandler::SafelyProcessEvent(wxEvent&)
[8] g_closure_invoke
[9] g_signal_emit_valist
[10] g_signal_emit
[11] gtk_main_do_event
[12] g_main_context_dispatch
[13] g_main_loop_run
[14] gtk_main
[15] wxGUIEventLoop::DoRun()
[16] wxEventLoopBase::Run()
[17] wxAppConsoleBase::MainLoop()
[18] wxEntry(int&, wchar_t**)
[19] __libc_start_main

Offline AndrewCot

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 678
Re: Cannot fix watch window under the project tree
« Reply #6 on: November 03, 2021, 11:25:37 pm »
Go back to the latest nightly and try it. If it works then it has something to do with your build or environment.

I am NOT using the same version as you as my local build has a number of patches in it and is build against a different version of wxWidget.