Opened on Sep 24, 2018 at 12:19:03 PM
Closed on Oct 17, 2018 at 1:10:09 PM
Last modified on Oct 18, 2018 at 9:08:52 PM
#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 )
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)
Change History (8)
comment:1 by , on Sep 24, 2018 at 12:22:48 PM
| Description: | modified (diff) |
|---|
by , on Sep 24, 2018 at 12:23:17 PM
| Attachment: | Track_Au3Check_Main.au3 added |
|---|
by , on Sep 24, 2018 at 12:23:36 PM
| Attachment: | Track_Au3Check_UDF.au3 added |
|---|
comment:3 by , 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 , on Oct 17, 2018 at 1:10:09 PM
| Resolution: | → Wont Fix |
|---|---|
| Status: | new → closed |
follow-up: 6 comment:5 by , 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 ?
comment:6 by , 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

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.