Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Compiler/Delphi/Errors - Warnings    [ Add a report in this area ]  
Report #:  92241   Status: Open
Wrong Line Numbers on Warnings and Errors
Project:  Delphi Build #:  15.0.3953.35171
Version:    15.1 Submitted By:   André Püschel
Report Type:  Basic functionality failure Date Reported:  3/12/2011 5:04:37 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   282227
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
The compiler reports back wrong line numbers on Errors and Warning, letting the IDE jump to the wrong place, and finding the errors really compilcated.

Maybe this is related to condinal compiling with defines.


Added by Sysop
<<<<<
Please see comments of QC for more information.
>>>>>
Steps to Reproduce:
1.) Get DirectSQL from http://sourceforge.net/projects/directsql/
2.) Try to compile uMysqlVio.pas
     For example, create an empty Pproject, and just throw all the uMysql*.pas Units in, then try to compile.
3.) Compiler reports wrong Lines on Errors and Warnings
Workarounds
None
Attachment
None
Comments

André Püschel at 3/12/2011 5:05:34 AM -
Seems related to #90372

Tomohiro Takahashi at 3/13/2011 5:08:19 PM -
> 1.) Get DirectSQL from http://sourceforge.net/projects/directsql/
Do you use this one?
http://sourceforge.net/projects/directsql/files/Direct%20Mysql%20Last%20Version/1.2.2/

> 2.) Try to compile uMysqlVio.pas
Could you tell us more detailed [Steps] to build a project in order to confirm your issue?

André Püschel at 3/14/2011 9:17:35 AM -
Tomohiro Takahashi said - "> 1.) Get DirectSQL from http://sourceforge.net/projects/directsql/
Do you use this one?
http://sourceforge.net/projects/directsql/files/Direct%20Mysql%20Last%20Version/1.2.2/

Yes, the last version available.
Please note that it won't compile on XE due to old PChar non Unicode stuff.

> 2.) Try to compile uMysqlVio.pas
Could you tell us more detailed [Steps] to build a project in order to confirm your issue?
"
Create an empty Pproject, and just throw all the uMysql*.pas Units in, then try to compile.
The first error will be shown on line 964, but thats just a comment line.


Over the weekend i adapted this code to work on XE, beginning with throwing most of the conditional compiling stuff out (leaving only the SSL conditionals in). After that many of the Errors and Warning were shown on the right line, but not all. So its condinal compiling related.



André Püschel at 6/28/2012 1:06:57 AM -
When will it be fixed?

Server Response from: ETNACODE01