Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Error parsing in external build
Error parsing in external build [message #229513] Tue, 27 January 2009 02:08 Go to next message
Eclipse UserFriend
I'm pretty new to using Eclipse, I compile my project using SCONS. I'm
calling SCONS builder as an external build.
I noticed that the external build is using it's own console window. Errors
are not passed to the Problems Window from this console.
How can I manage the errors to appear in the Problems Window so when
double clicking them I will get to the source code? Is there a way to tell
it to use the C error parser? Do I need to write my own parser? If so, how
can I do that.

Thanks in advance,
Hezi,
Re: Error parsing in external build [message #229522 is a reply to message #229513] Tue, 27 January 2009 09:56 Go to previous messageGo to next message
Eclipse UserFriend
Hezi Pereg wrote:

> I'm pretty new to using Eclipse, I compile my project using SCONS. I'm
> calling SCONS builder as an external build.
How exactly do you run your build? Do you use "External tools" or
something else? If you use launch configurations such as "External tools",
"Run as" or "Debug as" error parsing is not available in that mode. You
need to use "Build Project" or build using make target in Make Targets
View.

Andrew

> I noticed that the external build is using it's own console window. Errors
> are not passed to the Problems Window from this console.
> How can I manage the errors to appear in the Problems Window so when
> double clicking them I will get to the source code? Is there a way to tell
> it to use the C error parser? Do I need to write my own parser? If so, how
> can I do that.

> Thanks in advance,
> Hezi,
Re: Error parsing in external build [message #229543 is a reply to message #229522] Tue, 27 January 2009 13:21 Go to previous messageGo to next message
Eclipse UserFriend
Andrew Gvozdev wrote:

> Hezi Pereg wrote:

>> I'm pretty new to using Eclipse, I compile my project using SCONS. I'm
>> calling SCONS builder as an external build.
> How exactly do you run your build? Do you use "External tools" or
> something else? If you use launch configurations such as "External tools",
> "Run as" or "Debug as" error parsing is not available in that mode. You
> need to use "Build Project" or build using make target in Make Targets
> View.

> Andrew

Thanks for answering. I'm using External tool to run my builder or ANT.
I understand that error parsing is not available. Can I make it available
(maybe by changing the external tool plugin?)
Also when running from ANT I get the errors in the console but they are
not passed to the Problems Window.

Hezi

>> I noticed that the external build is using it's own console window. Errors
>> are not passed to the Problems Window from this console.
>> How can I manage the errors to appear in the Problems Window so when
>> double clicking them I will get to the source code? Is there a way to tell
>> it to use the C error parser? Do I need to write my own parser? If so, how
>> can I do that.

>> Thanks in advance,
>> Hezi,
Thanks for answering.
Re: Error parsing in external build [message #229550 is a reply to message #229543] Tue, 27 January 2009 14:19 Go to previous message
Eclipse UserFriend
Hezi Pereg wrote:

>>> I'm pretty new to using Eclipse, I compile my project using SCONS. I'm
>>> calling SCONS builder as an external build.
>> How exactly do you run your build? Do you use "External tools" or
>> something else? If you use launch configurations such as "External tools",
>> "Run as" or "Debug as" error parsing is not available in that mode. You
>> need to use "Build Project" or build using make target in Make Targets
>> View.

You can achieve it in 2 ways:
1. Specify your build command in Project->Properties->C++ Build->Build
Command. This would let you to build using Project->Build Project or
Ctrl-B or hammer icon.
2. Create make target in Make Target View (Window->Show View->Make
Targets). Right click on your project in Make Target View and do Add Make
Target. Uncheck "Use default" and specify your build command. After you
created a target you can run it double-clicking on it or clicking on build
target icon. This method lets you to create multiple commands in the view.

> Thanks for answering. I'm using External tool to run my builder or ANT.
> I understand that error parsing is not available. Can I make it available
> (maybe by changing the external tool plugin?)
I am not aware of any plugin which would allow you to do it.

> Also when running from ANT I get the errors in the console but they are
> not passed to the Problems Window.
No, they are not. You could manage running ant launcher from Make Target
View (to feed error parsers) but I am not aware of any error parser which
would parse ant output and populate problems view.

Andrew
Previous Topic:How to customize AddLink processType
Next Topic:Display of German extra letters
Goto Forum:
  


Current Time: Tue Jul 22 02:51:34 EDT 2025

Powered by FUDForum. Page generated in 0.33252 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top