| Newbie: How enable "realtime compilation" [message #115390] | 
Fri, 13 August 2004 09:17   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: cclshome.aol.com 
 
One of the features I enjoy in eclipse with Java is what I call "realtime 
compilation".  That is, when I edit a file and type bogus code, eclipse 
will quickly alert me with an error icon in the editor.  And when I fix 
the bug, the error icon goes away.  All without saving the file or 
building a project. 
 
How do I enable this feature in the CDT? 
 
I am wondering if this is the same as the "background compilation" or 
"automatic compilation" features which are mentioned in the FAQ and 
bugzilla... 
 
PS: I am running eclipse 3.0.0 200406251208 and CDT 2.0, on Red Hat Linux 
9.0 
Thanks for any advice. 
Andy Dingsor
 |  
 |  
  | 
| Re: Newbie: How enable "realtime compilation" [message #115590 is a reply to message #115390] | 
Mon, 16 August 2004 10:18   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
Originally posted by: alain.nowhere.ca 
 
Andy Dingsor wrote: 
 
> One of the features I enjoy in eclipse with Java is what I call "realtime 
> compilation".  That is, when I edit a file and type bogus code, eclipse 
> will quickly alert me with an error icon in the editor.  And when I fix 
> the bug, the error icon goes away.  All without saving the file or 
> building a project. 
 
> How do I enable this feature in the CDT? 
 
We have started work in this area for the CDT, but it is still work 
in progress and we still do not do quick fixes. 
But the first draft of the work can be "turn on": 
 
Windows -> Preference -> C/C++ -> Editor -> Hover -> Problem annotation 
 
I beleive it was "on" by default.  You problem did not see, the CEditor 
will have "squiggly" red lines on the offending code. 
You probably did not see, since we do not do quickfix so there is no 
icons on the annotation bar. 
The parser is still struggling but getting better, there is a world of 
difference in finding valid problems in the Java vs C/C++ 
 
Work in progress. 
 
> I am wondering if this is the same as the "background compilation" or 
> "automatic compilation" features which are mentioned in the FAQ and 
> bugzilla... 
 
- You can turn on background build for std make project, see the 
preference for global settings but I think that is on the head branch 
only. 
- Another way is to turn on "build on resource change" in the Make 
preference 
for standard make(it is off by default, even if Eclipse build on resource 
is on) 
 
Now for real "automatic compilation" for the managed builder ... work 
in progress and probably not before CDT 2.2 and above. 
 
> PS: I am running eclipse 3.0.0 200406251208 and CDT 2.0, on Red Hat Linux 
> 9.0 
> Thanks for any advice. 
 
Thanks for the feedbacks.
 |  
 |  
  | 
Powered by 
FUDForum. Page generated in 0.03532 seconds