Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » ErrorParserManager
ErrorParserManager [message #181860] Fri, 05 January 2007 21:51 Go to next message
Doug Crawford is currently offline Doug CrawfordFriend
Messages: 9
Registered: July 2009
Junior Member
I am creating a new error parser for CDT and everything appears to be
working. My only problem is that I am using
ErrorParserManager::findFileName() to get a handle of the file. But it
looks like findFileName is only looking at the last segment of the
string(ignores file path). But if my project has the same filename in 2
different directories my error parser always highlights the first file
found. Is this a general problem for all of the error parsers?
Re: ErrorParserManager [message #182394 is a reply to message #181860] Wed, 17 January 2007 03:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: biju.vaisakh.gmail.com

Here is 'ErrorParsermanager.java' file :
http://www.koders.com/java/fid838F5CA838386EEC027664A20878A3 B923819E26.aspx#L175

In this page, on the left side, if you click on the 'isConflictingName()'
you can see the source code of the function. This function as well as
findFileName() uses only path.lastSegment() to find the file. That causes
the problem.
Re: ErrorParserManager [message #182623 is a reply to message #181860] Sat, 20 January 2007 16:58 Go to previous message
Eclipse UserFriend
Originally posted by: deliciap.cradle.com

Hi Doug,

Do you have a fix for this problem?
CDT's error parser works great for me, except for the problem you've
mentioned.
There are couple of cases where user's projects have multiple directories
containing files with the same name, and the error exists in one file, but
the Problems view reports the first found file in the path.

Thanks!
Delicia.
Previous Topic:Associating a builder with a toolchain
Next Topic:template use with the Indexer
Goto Forum:
  


Current Time: Sat Nov 09 05:03:53 GMT 2024

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

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

Back to the top