User forums > Using Code::Blocks

No member functions dropdown

(1/3) > >>

AZ:
hello,
 is there a way to get a dropdown with all memeber functions for string variable "string1" when i type a dot "."?


--- Code: ---const std::stringc = "Hello" ;
std::string string1(stringc.sizeof(),'*');


--- End code ---

oBFusCATed:
Yes, you need the Code completion plugin enabled and running.
Then it just works, if the parser doesn't fail to parse the code correctly.

AZ:

--- Quote from: oBFusCATed on April 15, 2016, 09:05:47 pm ---Yes, you need the Code completion plugin enabled and running.
Then it just works, if the parser doesn't fail to parse the code correctly.

--- End quote ---

yup, have it installed and enabled. but still no dropdown that shows all functions for type string. How do i check if plugin is working?

oBFusCATed:
Works perfectly fine for me. Opened a file typed

--- Code: (cpp) ---#include <string>
int main()
{
    string c;
    c.| // here I've got a list full of suggestions

--- End code ---

Do you need something else?
To get a proper list you need a code that compiles up to the point of the cursor.

AZ:

--- Quote from: oBFusCATed on April 16, 2016, 01:00:18 am ---Works perfectly fine for me. Opened a file typed

--- Code: (cpp) ---#include <string>
int main()
{
    string c;
    c.| // here I've got a list full of suggestions

--- End code ---

Do you need something else?
To get a proper list you need a code that compiles up to the point of the cursor.

--- End quote ---

that is _exactly_ what i need. And even after reinstall it is not working.
how do i check what can be wrong ?

P.S. here is the complete log.
I ran CB as root to eliminate any access issues .

this is what i see :

--- Code: ---Top Editor: /root/tmp/test/main.cpp
NativeParser::GetGCCCompilerDirs(): Cannot get compiler dirs due to invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]: /bin/bin/g++
NativeParser::GetGCCCompilerDirs(): Cannot get compiler dirs due to invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!]: /bin/bin/g++
NativeParser::DoFullParsing(): AddCompilerPredefinedMacros failed!
NativeParser::DoFullParsing(): AddProjectDefinedMacros failed!
NativeParser::DoFullParsing(): Adding cpp/c files to batch-parser
NativeParser::DoFullParsing(): Added 1 source file(s) for project 'test' to batch-parser...
ClassBrowser::UpdateClassBrowserView(): No active project available.
NativeParser::GetAllPathsByFilename(): Traversing '/root/tmp/test' for: main.*
NativeParser::GetAllPathsByFilename(): Found 1 files:
- /root/tmp/test/main.cpp


--- End code ---



Navigation

[0] Message Index

[#] Next page

Go to full version