Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: sparkiyo on April 04, 2010, 11:34:12 am

Title: Code Complete not completing declared variables.
Post by: sparkiyo on April 04, 2010, 11:34:12 am
Hi when I first began using C::B the code complete plugin happily auto completed my custom declared variables, but it recently stopped doing so and I have no idea why.

For example, before the problem, when I did this:

Code
   int hyphenated;
 
   hyph
it will then show the auto complete list with the variable I just declared on it, and all I needed to do was to press tab and it will be completed.

but now nothing shows when I type it.

I've looked at the plugin settings and nothing seems to be helping.
Does anyone else have this problem?

OS: Windows 7 Ultimate
Version: C::B 8.02
Code Complete Plugin Version: 0.7


Cheers.
Title: Re: Code Complete not completing declared variables.
Post by: oBFusCATed on April 05, 2010, 08:06:49 pm
OS, CB's versions, please?
We are not magicians here....  :lol: :roll: :wink:
Title: Re: Code Complete not completing declared variables.
Post by: sparkiyo on April 06, 2010, 03:46:09 pm
Thank you for your help, I've added the information in my original post.
Title: Re: Code Complete not completing declared variables.
Post by: oBFusCATed on April 06, 2010, 04:00:26 pm
Can you try a recent nightly, the code completion was vastly improved lately.
If the problems is still there it will be best to provide a simple test project and steps to reproduce.
Title: Re: Code Complete not completing declared variables.
Post by: sparkiyo on April 07, 2010, 05:04:21 am
Hi, I am now using nightly build 6181 (The latest).
The Code Complete is still 0.7 however.

I've included a simple project that shows how the declared variable does not appear to be auto complete by the code complete.

Thanks


[attachment deleted by admin]
Title: Re: Code Complete not completing declared variables.
Post by: ollydbg on April 07, 2010, 05:19:47 am
@sparkiyo (http://forums.codeblocks.org/index.php?action=profile;u=14873)
I have do the test:

Code
int hyphenated;
hyphe
works!!

Code
int main() {
   //Declaring the variable
   int hyphenation = 1;


   //printing the variable, notice how it doesn't auto complete
   printf("Hello World! %d", hyphena ); //Left it incomplete intentionally

}
failed. So, it seems the codecompletion in the function argument( between the parentheses ) has some minor bug.
I think this can be fixed :D, but I'm pretty busy these days.

Title: Re: Code Complete not completing declared variables.
Post by: sparkiyo on April 07, 2010, 06:00:26 am
@sparkiyo (http://forums.codeblocks.org/index.php?action=profile;u=14873)
I have do the test:

Code
int hyphenated;
hyphe
works!!



Thank you for the feedback!
but even that does not work for me, Here's the settings for my Code Complete:
(http://i131.photobucket.com/albums/p300/greekwariorx/CodeCompleteSettings.jpg)

Cheers