News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

just a question about code completion

Started by mrpringle, August 18, 2006, 02:41:46 AM

Previous topic - Next topic

mrpringle

Hi,
I'm just wondering whether code completion will ever be able to work with wxwidgets, and the includes from mingw, or whether it is too difficult to implement.

Thanks

MortenMacFly

Quote from: mrpringle on August 18, 2006, 02:41:46 AM
I'm just wondering whether code completion will ever be able to work with wxwidgets, [...]
Well, it does already, see here:

What version (OS, C::B, wxWidets) are you using? (Please always include this information in your posts!)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

mandrav

Quote from: mrpringle on August 18, 2006, 02:41:46 AM
Hi,
I'm just wondering whether code completion will ever be able to work with wxwidgets, and the includes from mingw, or whether it is too difficult to implement.

Thanks

Have you enabled parsing of all include dirs?
Go to "Settings->Editor->Code-completion & symbols browser", switch to the "Parser" tab and make sure you have checked all three options.
Be patient!
This bug will be fixed soon...

tiwag

i think we need hotkeys for "local" and "global" mode in order to switch fast without usage of the Settings dialogs (horror)

mandrav

Quote from: tiwag on August 18, 2006, 09:07:14 AM
i think we need hotkeys for "local" and "global" mode in order to switch fast without usage of the Settings dialogs (horror)

I don't think so. It's a setting that you set and never touch it again.
Either you want full symbols parsing (happy with code-completion) or local symbols only (not so happy ;)).

Anyway, we 're going to change the defaults to "enabled" for all three settings.
The defaults are the way they are because, back then, the parser didn't even run in a thread. Globals parsing was a big slowdown at the time. That's not the case anymore though ;).
Be patient!
This bug will be fixed soon...

takeshimiya

Quote from: mandrav on August 18, 2006, 10:20:36 AM
Anyway, we 're going to change the defaults to "enabled" for all three settings.
The defaults are the way they are because, back then, the parser didn't even run in a thread. Globals parsing was a big slowdown at the time. That's not the case anymore though ;).

Now we'll hear a lot of people saying "hey, CodeCompletion works, for the first time!" :lol:

mandrav

Quote from: Takeshi Miya on August 18, 2006, 10:33:21 AM
Now we'll hear a lot of people saying "hey, CodeCompletion works, for the first time!" :lol:

That's exactly the point for changing the defaults, Takeshi :)
Be patient!
This bug will be fixed soon...

takeshimiya

Quote from: mandrav on August 18, 2006, 10:41:38 AM
Quote from: Takeshi Miya on August 18, 2006, 10:33:21 AM
Now we'll hear a lot of people saying "hey, CodeCompletion works, for the first time!" :lol:

That's exactly the point for changing the defaults, Takeshi :)

Just J/K. :mrgreen:

mandrav

Done: default options changed for everyone.
Be patient!
This bug will be fixed soon...

mdelfede

Quote from: mandrav on August 18, 2006, 11:03:58 AM
Done: default options changed for everyone.

Another (big) question : does it work for local variables ?
For example, I have this code :


  bool Database_Impl::ReplaceObject(GatoCad::DbObject& Old, GatoCad::DbObject& New)
  {
    // first checks if old object belongs to the given database
    if(Old.   <--- Here should pop-up with members of Old variable


In my build it doesn't pop up. Do I miss something ?

Ciao

Max

mandrav

Quote from: mdelfede on August 18, 2006, 11:09:57 AM
Another (big) question : does it work for local variables ?

Read this reply I posted in another topic...
Be patient!
This bug will be fixed soon...

mdelfede

Quote from: mandrav on August 18, 2006, 11:21:52 AM
Quote from: mdelfede on August 18, 2006, 11:09:57 AM
Another (big) question : does it work for local variables ?

Read this reply I posted in another topic...

Ok, if I've well understood, the local stuff is on the way... Am I right ?
Anyway it's really impressive for now.

If I can drop a little suggestion, one interesting thing would be the ability to exclude specfied headers from parsing.
There are some headers (in Boost:: in particular) that are filled with about useless stuffs with regard to code completion.

Ciao

Max

mrpringle

#12
here's from the 18th of august build, with default options, wxWidgets 2.6.3
I also did a clean install of codeblocks


[attachment deleted by admin]

nzoltan

Hi,

In nightly build (Aug 20), "Edit->Show call tip (SHIFT+CTRL+SPACE)" does not work.