Modify

#3666 closed Bug (Wont Fix)

Au3Check issue when error is in include at last line and there is no crlf at the end

Reported by: mLipok Owned by:
Milestone: Component: Au3Check
Version: 3.3.14.5 Severity: None
Keywords: Cc:

Description (last modified by mLipok)

Try to run:
Track_Au3Check_Main.au3

"Z:\AutoItPortable\__COMUNITY\TRACK\Track_Au3Check_Main.au3"(2,34) : warning: $A: possibly used before declaration.
$A
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"Z:\AutoItPortable\__COMUNITY\TRACK\Track_Au3Check_Main.au3"(2,34) : error: Statement cannot be just an expression.
$A
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
"Z:\AutoItPortable\__COMUNITY\TRACK\Track_Au3Check_Main.au3"(2,34) : error: $A: undeclared global variable.
$A
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
Z:\AutoItPortable\__COMUNITY\TRACK\Track_Au3Check_Main.au3 - 2 error(s), 1 warning(s)

After quick check you can found out that: the problem is not located in Track_Au3Check_Main.au3 ... but it is inside Track_Au3Check_UDF.au3 as a last line.

Au3Check should show proper line and udf file .

Attachments (2)

Track_Au3Check_Main.au3 (102 bytes ) - added by mLipok on Sep 24, 2018 at 12:23:17 PM.
Track_Au3Check_UDF.au3 (5 bytes ) - added by mLipok on Sep 24, 2018 at 12:23:36 PM.

Download all attachments as: .zip

Change History (8)

comment:1 by mLipok, on Sep 24, 2018 at 12:22:48 PM

Description: modified (diff)

comment:2 by Jos, on Sep 24, 2018 at 2:46:00 PM

This is confirmed and happens when the last line in an included file has an error and doesn't have a CRLF at the end.

Needs investigation why this is happening.

comment:3 by Jos, on Oct 17, 2018 at 1:09:39 PM

I have had a look but there is no easy solution to this issue in the way au3check is coded, so all I can say is make sure you have a (cr)lf as last character in each included file, or no errors on the last line.

Jos

comment:4 by Jos, on Oct 17, 2018 at 1:10:09 PM

Resolution: Wont Fix
Status: newclosed

comment:5 by mLipok, on Oct 18, 2018 at 5:47:25 PM

Could Au3Check.exe at least display a warning in SciTE console, if there is no appropriate termination in a given UDF ?

Last edited on Oct 18, 2018 at 5:48:26 PM by mLipok (previous) (diff)

in reply to:  5 comment:6 by Jos, on Oct 18, 2018 at 9:08:28 PM

Replying to mLipok:

Could Au3Check.exe at least display a warning in SciTE console, if there is no appropriate termination in a given UDF ?

It likely is possible, like coping without the crlf, but I don't know of a simple way of doing that. The whole issue is that Flex&Yacc are used which generate a lot of the actual code and the reading process is part of that standard code which I can't change. I do not have enough knowledge to fix this without risk and honestly this is too trivial to have any risk.
You know pretty quickly when it it telling you the wrong line/file to be able to fix this.
Jos

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.