|Problem marker displays incorrect Resource for error [message #716662]
||Thu, 18 August 2011 02:53
| Timothy Wall
Registered: July 2009
When I run my external interpreter, it may include one or more files when it encounters an "include" directive. Any errors reported while parsing those files contain the included file's name and line number of the error.|
If I report these errors to an IProblemReporter in my source parser's parse routine, they show up in the problems pane with "Resource" specified as the "main" file, and "Location" specified as that of the included file.
The "Resource" should be the included file, *not* the main file. It is either a bug to display the "main" file as the resource (instead of the included file), or it's a bug to display the location as the error line of the included file.
My project configuration explicitly includes the "main" source file, but does not include the included files in the project sources (to avoid compiling them all on their own). Note that the same error occurs when I have all included files in the project sources list as well, so it's not like the main file is getting stuck in the marker just because the included file isn't within the project sources.
[Updated on: Thu, 18 August 2011 02:59]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02191 seconds