Author Topic: Annoying error: Searching the Project tree and press down arrow  (Read 5018 times)

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Annoying error: Searching the Project tree and press down arrow
« on: October 04, 2015, 12:39:07 pm »
It's a rather minor issue. With the SVN-version, I open up the CodeBlocks_unix workspace, I click in the Projects-tree on the root and type "config". And then I tap the down arrow, an assertion goes off saying

../src/generic/treectlg.cpp(1521): assert "IsVisible(item)" failed in GetNextVisible(): this item itself should be visible

I can still click 'continue' so it's more like an annoyance, but still a bug.

-Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Annoying error: Searching the Project tree and press down arrow
« Reply #1 on: October 04, 2015, 12:42:59 pm »
Can you please describe the steps with a bit more details?
What is this projects-tree?

Also can you paste the full backtrace?
(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 yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: Annoying error: Searching the Project tree and press down arrow
« Reply #2 on: October 04, 2015, 03:46:10 pm »
Hi,

I essentially want to search a file that has 'config' in its name in the workspace. I do that by focussing the Management -> "Projects" tab and click anything inside it.

Then I type 'config' and CB highlights any file that has the typed text inside its name. If I then tap the 'arrow down'-key, I get this assertion.

The dialog-box for the assertion that shows up doesn't seem to show any backtrace...
I played with it a little while and maybe the assertion is false. When I do the search, it seems to scroll down a little, making the first selection no longer visible. If there is an assertion that the selected item needs to be visible when pressing the down-arrow, maybe it should be made visible first ?

Version 10515

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: Annoying error: Searching the Project tree and press down arrow
« Reply #3 on: October 04, 2015, 04:10:59 pm »
Attachment shows backtrace. I can obviously set a breakpoint and make a backtrace from there, but I guess it's allready clear what happens ?

Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Annoying error: Searching the Project tree and press down arrow
« Reply #4 on: October 04, 2015, 04:15:44 pm »
I can reproduce this. Thank you. The screen shot is not helpful, but this doesn't matter.
(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 yvesdm3000

  • Almost regular
  • **
  • Posts: 225
Re: Annoying error: Searching the Project tree and press down arrow
« Reply #5 on: October 05, 2015, 08:08:44 am »
Just for info, if you select an item, then use the scrollbar to move the selection off-screen and then press the down-arrow causes the same assert go off.

I guess the assert  is simply wrong since the selection is allowed to be offscreen...

-Yves
Clang based code completion for Code::Blocks:   http://github.com/yvesdm3000/ClangLib

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9660
Re: Annoying error: Searching the Project tree and press down arrow
« Reply #6 on: October 05, 2015, 08:44:26 am »
I can reproduce this. Thank you. The screen shot is not helpful, but this doesn't matter.
I can't: Is this a Linux only thing? Works on Windows, but I don't see multiple selections. Is that (the multiple selections) just under Linux?
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Annoying error: Searching the Project tree and press down arrow
« Reply #7 on: October 05, 2015, 08:54:21 am »
Yes, it is wxgtk only. It seems that in the past the keyboard handling has not been implemented, so we've done it ourselves.
And this code seems buggy. The good thing is that it works if I just remove the code.
(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: 13438
    • Travis build status
Re: Annoying error: Searching the Project tree and press down arrow
« Reply #8 on: October 05, 2015, 08:00:54 pm »
Fixed in svn...
(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!]