#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)
Change History (8)
comment:1 Changed 6 years ago by mLipok
- Description modified (diff)
Changed 6 years ago by mLipok
Changed 6 years ago by mLipok
comment:2 Changed 6 years ago by Jos
comment:3 Changed 6 years ago by Jos
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 Changed 6 years ago by Jos
- Resolution set to Wont Fix
- Status changed from new to closed
comment:5 follow-up: ↓ 6 Changed 6 years ago by mLipok
Could Au3Check.exe at least display a warning in SciTE console, if there is no appropriate termination in a given UDF ?
comment:6 in reply to: ↑ 5 Changed 6 years ago by Jos
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
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
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.