Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-ant-dev] Distribution?

Looking at the list archive, I don't see my email below. Maybe the list never received it? :-(
 
Anyway,
I have run into a further issue.
 
I have 3 builds of eclipse:
 
3.4 SR2 CDT release
3.4 (original?) CDT release with a load of random plugins added - emf, topcased, etc
3.5 SR1 CDT release with the following plugins added (ccrefresh, cclinux, pydev, jdt, emf, gef, dtp, wtp, birt, linuxtools, eclox)
 
Now, if I create a simple C++ project in each of these distributions, consisting of a simple .cpp file with an error (an undeclared variable) in it and ant build file that uses the cpptasks cc task to build it, I get the following:
 
 
In the vanilla 3.4 SR2 CDT eclipse:
 
I get 2 problems when the build fails. The first is identified as g++ failed with code 1 and if I double click the problem then I get taken to the cc task in the ant build file. Cool. However, the second problem is displayed as:
 
Description "[cc] /path/to/the/file.cpp 'dave' was not defined in this scope"
Resource "eclipse-3.4-test"
Path ""
Location "Line 17" (this is the correct line number)
Type "C/C++ problem"
 
However, if I double click the problem, I am not taken to the cpp file and the file is not highlighted with the problem-red-crossed-circle.
 
 
In the randomly-pluginised eclipse 3.4 release:
 
The g++ failure is shown and behaves as above - good.
The C++ error is shown as
 
Description "'dave' was not defined in this scope"
Resource "eclipse-test.cpp"
Path "eclipse-3.4.random-test"
Location "Line 17"
** Note that in this eclipse, the problems tab only has 4 headers, not the 5 in the 'vanilla' 3.4 release. It's missing the 'Type' column...
 
If I double click this problem, then I do a whoop whoop as it takes me to the file, and the line in error is marked with the problem-red-crossed-circle and red underlining.
 
In the known-pluginised 3.5 eclipse release:
 
The g++ error is highlighted and shown as for the other 2 variants.
The c++ error is shown as
 
Description "'dave' was not defined in this scope"
Resource "eclipse-3.5.AMPA3-test"
Path ""
Location "Line 17, external location: [cc] /path/to/the/file.cpp"
Type "C/C++ problem"
 
Like the vanilla 3.4 release, if I double click the problem, I am not taken to the cpp file and the file is not highlighted with the problem-red-crossed-circle.
 
 
So, I initially though this was a CDT issue and submitted a bug to the CDT team. However, they say that the CDT is not responsible for parsing the output of Ant / cpptasks, and that whatever is happening is as a result of something else. The change to the output between the 3.4 and 3.5 releases is purely cosmetic and the underlying parsing has not changed. My question therefore is: what is parsing the output of ant/cpptasks in the randomly-pluginised 3.4 release?! I have no idea what features/plugins are responsible for what, so I need some help knowing if platform Ant has any responsibility in this area? If so, what plugins am I looking for?
 
Any help is greatly appreciated, as I now see it is possible for Eclipse to recognise Ant/cpptasks output and integrate it into the ide, but I have no idea why only this one weird distro of eclipse can do it, but nothing else can! I am going slightly mad here!
 
Cheers,
 
Tom
 

From: platform-ant-dev-bounces@xxxxxxxxxxx [mailto:platform-ant-dev-bounces@xxxxxxxxxxx] On Behalf Of Dalton, Tom
Sent: 07 September 2009 18:09
To: Eclipse Ant integration developers list.
Subject: RE: [platform-ant-dev] Distribution?

Thanks for the speedy response Michael!
 
Bit of background then a couple of questions:
 
My projects are primarily C and C++, with a healthy dose of other languages mixed in to keep things interesting. Traditionally we've used make files to build everything, using make to wrap some of the more exotic build systems where necessary. Within Eclipse, the CDT stuff gives nice error tracing back to the source where there are compile errors, and also has nice features such as name/function auto-completion, though the intellisense features.
 
We have recently started looking at using Ant to replace Make, but I'm concerned that the integration between Ant/cpptasks/Eclipse isn't there.
 
I haven't actually had time to pull a copy of the Platform Ant plugins out of the Java Dev Eclipse distro, so apologies for that. I was wondering - does Platform Ant 'understand' C/C++ and/or the cpptasks (http://ant-contrib.sourceforge.net/cpptasks/index.html) Ant tasks? If not is there any intention to support this in the (near) term? We need a similar level of integration as that provided by the CDT in order to justify using Ant to replace Make.
 
Thanks for your help,
 
Tom


From: platform-ant-dev-bounces@xxxxxxxxxxx [mailto:platform-ant-dev-bounces@xxxxxxxxxxx] On Behalf Of Michael Rennie
Sent: 21 August 2009 15:15
To: Eclipse Ant integration developers list.
Subject: Re: [platform-ant-dev] Distribution?

Hi Tom,

First of all, is this editor thing part of Platform Ant (and if not, can you point me in the right direction?)

> Yes the editor, outline, Ant view, etc is all part of platform Ant

Secondly, if it is part of Platform Ant, then how do I get the latest set of plugins? Our dev environment is on an airgapped network, using Red Hat Linux boxes, so I cannot use Eclipse's auto update features - I need to download (preferably .tar.gz -type) files. The eclipse-ccase plugin is distributed as a zip file that just extracts into the eclipse install dir, so I'm after something similar.

> Unfortunately there is a no separate download for just platform Ant, but I suppose you could try downloading a version of the Java Eclipse and just copy over org.eclipse.ant.core and org.eclipse.ant.ui to the plugins directory of your C/C++ install.

Michael Rennie

Inactive hide details for "Dalton, Tom" ---08/21/2009 05:39:00 AM---Hi guys, First of all, apologies that this probably isn't t"Dalton, Tom" ---08/21/2009 05:39:00 AM---Hi guys, First of all, apologies that this probably isn't the right place to ask

From: "Dalton, Tom" <tom.dalton@xxxxxxx>
To: <platform-ant-dev@xxxxxxxxxxx>
Date: 08/21/2009 05:39 AM
Subject: [platform-ant-dev] Distribution?
Sent by: platform-ant-dev-bounces@xxxxxxxxxxx





Hi guys,

First of all, apologies that this probably isn't the right place to ask this - I have spent about 30 mins trying to find a platform ant newsgroup, user forum etc and can't find anything. I am using the Eclipse 3.5 C/C++ distribution in Linux. This only includes org.apache.ant. However, our project uses Ant to build (using Ant cpptasks for the C++ code). In the Java distribution of Eclipse 3.5, there is a plugin that gives a nice editor for Ant build files, with nice syntax highlighting and an 'intelligent' file outline tree widget thing.

First of all, is this editor thing part of Platform Ant (and if not, can you point me in the right direction?)

Secondly, if it is part of Platform Ant, then how do I get the latest set of plugins? Our dev environment is on an airgapped network, using Red Hat Linux boxes, so I cannot use Eclipse's auto update features - I need to download (preferably .tar.gz -type) files. The eclipse-ccase plugin is distributed as a zip file that just extracts into the eclipse install dir, so I'm after something similar.

Thanks for any help,

Tom Dalton
Build & Tools SME, AMPA

EDS, an HP company _______________________________________________
platform-ant-dev mailing list
platform-ant-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-ant-dev


Back to the top