Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: yvesdm3000 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
-
Can you please describe the steps with a bit more details?
What is this projects-tree?
Also can you paste the full backtrace?
-
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
-
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
-
I can reproduce this. Thank you. The screen shot is not helpful, but this doesn't matter.
-
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
-
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?
-
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.
-
Fixed in svn...