News:

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

Main Menu

Code Completion / Suggestion - only after compile?

Started by roussec, August 22, 2005, 02:54:27 PM

Previous topic - Next topic

roussec

Code completion seems to currently only work after I compile the source once (or whenever I add something new that needs to be recognized). Is this intended behaviour? Is there a way to enable "on-demand" compiling?

Christian

Urxae

Actually, I think it parses after you save your source. It just happens that when you compile, you save your source automatically.
If you go to the symbols tab and right-click you can tell C::B to "reparse now", but I'm not sure if that works on non-saved files or not.

rickg22

Try checking the "always update cache" box in the code completion settings...

roussec

It works after saving, thanks Urxae. Reparse now does not work on non saved files and "always update" does not seem to help either. Is this intended or not yet implemented?

Christian

rickg22

i think parsing is only done on already saved files.

mandrav

Parsing is performed on saved files only.
When code-completion is invoked, the local scope is also parsed for local variables (no need to be saved - it reads directly from the active editor).
And the "always update cache" option refers to the cache and means to always update the cache (physically, on disk) when the project is closed, regardless if it thinks it hasn't changed (the cache).

Yiannis.
Be patient!
This bug will be fixed soon...

rickg22

perhaps we need to rephrase that setting...

programmers like to know what's happening behind curtains. And "only when necessary" isn't very descriptive :P

mandrav

Be patient!
This bug will be fixed soon...

roussec

Why is it not parsed "on-line" like in the Visual C++ IDE? Where is the problem?

rickg22

Quote from: mandrav on August 22, 2005, 11:24:30 PM
Quote from: rickg22 on August 22, 2005, 10:32:20 PM
And "only when necessary" isn't very descriptive :P

You 're referring to?

Yiannis.

The tooltip text in the codecompletion settings. Ah, nevermind.