Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: just_some_random_name on February 21, 2020, 10:17:29 am

Title: Weird tabs behavior
Post by: just_some_random_name on February 21, 2020, 10:17:29 am
Hello,
I have issues with tabs behaviour in codeblocks (called notebooks I guess?).

The first issue is more of an annoyance, but I'll try my luck:
Whenever I close current tab it will skip over different tab to eventually skip to previously opened tab, see gif:

(https://i.imgur.com/3xvc8xc.gif)

The second issue:
Whenever I close not-currently-opened tab, my current tab is switched to some random one:
(https://i.imgur.com/6zGOTjj.gif)

This is especially annoying when I'm closing a lot of tabs and it just keep switching to random files.

Can it be configured somehow? Or is it bug?

Thanks!
Title: Re: Weird tabs behavior
Post by: oBFusCATed on February 21, 2020, 10:34:16 am
OS/C::B versions?
Title: Re: Weird tabs behavior
Post by: just_some_random_name on February 21, 2020, 10:48:43 am
Ah sorry, I cropped it from the gifs;
OS: 18.04 kubuntu
C::B: 17.12
Title: Re: Weird tabs behavior
Post by: oBFusCATed on February 21, 2020, 08:45:52 pm
And what is your wxGTK version? (Execute wx-config --list and paste the results from it)
Title: Re: Weird tabs behavior
Post by: just_some_random_name on February 24, 2020, 07:40:44 am
$ wx-config --list

   
Code
Default config is gtk2-unicode-3.0

  Default config will be used for output

  Alternate matches:
    base-unicode-3.0
Title: Re: Weird tabs behavior
Post by: oBFusCATed on February 24, 2020, 11:22:27 am
OK, I can reproduce this on Ubuntu 18.04, but not on my gentoo. Strange. Both are using wxgtk 3.0.4 + gtk2...
Title: Re: Weird tabs behavior
Post by: oBFusCATed on February 25, 2020, 12:53:56 am
In theory:
1. when you close a selected tab, the one before it should be selected
2. when you close non selected tab, the selected one should not change.

Currently on ubuntu the behaviour is strange...
Title: Re: Weird tabs behavior
Post by: just_some_random_name on February 25, 2020, 07:46:41 am
Thanks for trying out. If you have any suggestion for me to try, go ahead, I'll gladly help
Title: Re: Weird tabs behavior
Post by: oBFusCATed on February 25, 2020, 10:16:53 am
This behaviour is caused by the BrowseTracker plugin. If you don't use it you can disable it and it should stop doing it.
Title: Re: Weird tabs behavior
Post by: just_some_random_name on February 25, 2020, 12:02:02 pm
oooh yes, it feels so good to painlessly close tabs again.

Few observations:
When I tried to disable the plugin for the first time, several assertions were thrown, that caused CB to be unresponsive. Unfortunately, I haven't noted them.

After a restart of CB, the plugin was disabled and tabs could be closed without issue (yay).

Again I tried to enable the plugin (no problem), and tabs were still closing without the issue.

Next, I restarted CB, the plugin was enabled and issue with tabs was present again. However, this time disabling the plugin was without assertion errors and issue with tabs disappeared again.

So TL;DR
If you want to use BrowseTracker plugin, disable and enable it on every start of codeblocks. Otherwise, keep it disabled.
Title: Re: Weird tabs behavior
Post by: oBFusCATed on February 26, 2020, 09:01:45 pm
@pecan Would it be possible to look at these?
Title: Re: Weird tabs behavior
Post by: Pecan on February 27, 2020, 05:35:34 pm
@pecan Would it be possible to look at these?

Yes, I'll explore it.