#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 , 7 years ago
| Description: | modified (diff) |
|---|
by , 7 years ago
| Attachment: | Track_Au3Check_Main.au3 added |
|---|
by , 7 years ago
| Attachment: | Track_Au3Check_UDF.au3 added |
|---|
comment:2 by , 7 years ago
comment:3 by , 7 years ago
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 , 7 years ago
| Resolution: | → Wont Fix |
|---|---|
| Status: | new → closed |
follow-up: 6 comment:5 by , 7 years ago
Could Au3Check.exe at least display a warning in SciTE console, if there is no appropriate termination in a given UDF ?
comment:6 by , 7 years ago
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.