Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: jarro_2783 on November 04, 2007, 11:15:09 am

Title: code completion tool bar bug
Post by: jarro_2783 on November 04, 2007, 11:15:09 am
When I have more than one file open, and I close one which isn't the active one using the mouse button middle click, all the functions are removed from the code completion drop down box. I can reproduce this 100% of the time.

The function names come back when I switch to another source file and back again.

I'm using svn revision 4580, wx 2.8.4 with fedora 7.
Title: Re: code completion tool bar bug
Post by: pauliusz on November 04, 2007, 05:04:41 pm
Fixed in "[ Patch #2227 ] fix CC toolbar cleared when closing not active editor (http://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=2227&group_id=5358)"
Title: Re: code completion tool bar bug
Post by: jarro_2783 on November 05, 2007, 08:57:45 am
awesomeness.

I love the fact that bugs are fixed so quickly. You wouldn't see that with proprietary software.

edit: I updated and it's not fixed. Just to make sure I've got the right version, it's 4596.
Title: Re: code completion tool bar bug
Post by: Ceniza on November 06, 2007, 05:24:33 am
http://svn.berlios.de/wsvn/codeblocks/?rev=4597&sc=1

Applied in revision 4597.
Title: Re: code completion tool bar bug
Post by: pauliusz on November 06, 2007, 08:47:38 am
edit: I updated and it's not fixed. Just to make sure I've got the right version, it's 4596.

It will be fixed in next nightlies.
Title: Re: code completion tool bar bug
Post by: thomas on November 06, 2007, 09:37:58 am
I never use that feature, and have it turned off at all times too... but... after reading this post and looking at both original and patched code, I am confused as to what is the purpose and the correct (expected) behaviour of that list?

Before, it was clearing the list every time some editor (no matter which) was closed. Now it clears the list when the last open editor is closed. If any editor (even if containing a file that belongs to a different project or no project at all) is open, it is not cleared.

Before the patch, it would clear the list at inappropriate times, which is not good. After the patch it (almost) never clears that list. That is somewhat better than having an empty list 80% of the time, but it is what is wanted? I imagine people want to see exactly the functions which are in the files they have open, not any other files. Is that correct?
Title: Re: code completion tool bar bug
Post by: killerbot on November 06, 2007, 11:24:44 am
the toolbar should show the methods of the *active* editor. When you switch to another editor ==> it updates. When you save the active editor ==> it updates : methods can have been added or removed or have grown or shrinked.
Title: Re: code completion tool bar bug
Post by: jarro_2783 on November 07, 2007, 01:25:02 pm
It looks fine to me. It's showing the functions in the active file all the time as far as I can tell.