Author Topic: Weird tabs behavior  (Read 3543 times)

Offline just_some_random_name

  • Multiple posting newcomer
  • *
  • Posts: 11
Weird tabs behavior
« 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:



The second issue:
Whenever I close not-currently-opened tab, my current tab is switched to some random one:


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!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Weird tabs behavior
« Reply #1 on: February 21, 2020, 10:34:16 am »
OS/C::B versions?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline just_some_random_name

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Weird tabs behavior
« Reply #2 on: February 21, 2020, 10:48:43 am »
Ah sorry, I cropped it from the gifs;
OS: 18.04 kubuntu
C::B: 17.12

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Weird tabs behavior
« Reply #3 on: February 21, 2020, 08:45:52 pm »
And what is your wxGTK version? (Execute wx-config --list and paste the results from it)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline just_some_random_name

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Weird tabs behavior
« Reply #4 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Weird tabs behavior
« Reply #5 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...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Weird tabs behavior
« Reply #6 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...
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline just_some_random_name

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Weird tabs behavior
« Reply #7 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Weird tabs behavior
« Reply #8 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline just_some_random_name

  • Multiple posting newcomer
  • *
  • Posts: 11
Re: Weird tabs behavior
« Reply #9 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Weird tabs behavior
« Reply #10 on: February 26, 2020, 09:01:45 pm »
@pecan Would it be possible to look at these?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2777
Re: Weird tabs behavior
« Reply #11 on: February 27, 2020, 05:35:34 pm »
@pecan Would it be possible to look at these?

Yes, I'll explore it.