Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Error Parser
Error Parser [message #159497] Wed, 30 November 2005 13:45 Go to next message
Eclipse UserFriend
Originally posted by: gabriel.phan.ge.com

I'm trying to write an error parser for my compiler which is the Windriver
Diab DCC compiler. Examples of the error output are below. Can some help
me out or point me in the right direction.

All the help that I found online says to create an extension for
org.eclipse.cdt.core.ErrorParser. I have looked through the Eclipse
directory and can not find that directory. I am running ver 3.1.1.

"0181\src\codec.c", line 152: error (dcc:1525): identifier _ALARM_CLEARED
not declared
"0181\src\codec.c", line 152: error (dcc:1633): parse error near
'_ALARM_CLEARED'
"0181\src\codec.c", line 152: error (dcc:1206): syntax error
"0181\src\codec.c", line 152: fatal error (dcc:1340): can't recover from
earlier errors

Gabe
Re: Error Parser [message #159573 is a reply to message #159497] Wed, 30 November 2005 18:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse.dharty.com

Take a look at

http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-cor e/org.eclipse.cdt.core/src/org/eclipse/cdt/internal/errorpar sers/?cvsroot=Tools_Project#dirlist

for the code to the existing cdt error parsers. You will also want to
look at the plugin.xml file for the existing cdt error parser and binary
parser plugins (extract the .jar files with an archiving utility like
winrar or jar.exe that comes with the java jdk).


To start, create a new plugin project.

When the project is created, click on the "Extensions" of the project
page to add a new extension of the org.eclipse.cdt.core.ErrorParserpoint
extension point. Be sure you connect to this existing extension, don't
try to add/create a new extension point.

You now need to edit the plugin.xml file manually. There should exist
an extension tag that looks like:

<extension
point="org.eclipse.cdt.core.ErrorParser">
</extension>


You will need to add an id attribute, a name attribute, and an
erroparser element that points to the ErrorParser class that you are
going to implement, eg com.mycompany.MyErrorParser:

<extension
point="org.eclipse.cdt.core.ErrorParser">
id="MyErrorParser"
name="%MyErrorParser.name" <!-- this will be referenced in the
plugin.properties file, don't forget the '%' -->
<errorparser
class="com.mycompany.MyErrorParser">
</errorparser>
</extension>


Now, edit the file plugin.properties an add a line for the ErrorParser
name, but leave out the '%' symbol. eg:

MyErrorParser.name=My Error Parser


Now all thats left is to create the error parser class itself, eg
com.mycompany.MyErrorParser. You can use the plugin framework to run a
debug mode of eclipse to debug your error parsers.


Good Luck,

David



Gabe wrote:
> I'm trying to write an error parser for my compiler which is the
> Windriver Diab DCC compiler. Examples of the error output are below.
> Can some help me out or point me in the right direction.
> All the help that I found online says to create an extension for
> org.eclipse.cdt.core.ErrorParser. I have looked through the Eclipse
> directory and can not find that directory. I am running ver 3.1.1.
>
> "0181\src\codec.c", line 152: error (dcc:1525): identifier
> _ALARM_CLEARED not declared
> "0181\src\codec.c", line 152: error (dcc:1633): parse error near
> '_ALARM_CLEARED'
> "0181\src\codec.c", line 152: error (dcc:1206): syntax error
> "0181\src\codec.c", line 152: fatal error (dcc:1340): can't recover from
> earlier errors
>
> Gabe
>
Re: Error Parser [message #160855 is a reply to message #159497] Wed, 21 December 2005 07:35 Go to previous message
Eclipse UserFriend
Originally posted by: MCondarelli.harmanbecker.com

Hi,
did You solve Your problem?
I need the same thing (use diab compiler under eclipse), so, perhaps, we
could help each other...

Thanks
Mauro
Previous Topic:Excluding Folders in a Managed Make C/C++ Project
Next Topic:Build don't work if I only change files other than ".c"
Goto Forum:
  


Current Time: Sat Jul 26 03:45:23 EDT 2025

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

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

Back to the top