Modify

Opened 12 months ago

Closed 11 months ago

Last modified 11 months ago

#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 12 months ago.
Track_Au3Check_UDF.au3 (5 bytes) - added by mLipok 12 months ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 12 months ago by mLipok

  • Description modified (diff)

Changed 12 months ago by mLipok

Changed 12 months ago by mLipok

comment:2 Changed 12 months ago by 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.

comment:3 Changed 11 months 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 11 months ago by Jos

  • Resolution set to Wont Fix
  • Status changed from new to closed

comment:5 follow-up: Changed 11 months ago by mLipok

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

Last edited 11 months ago by mLipok (previous) (diff)

comment:6 in reply to: ↑ 5 Changed 11 months 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

Last edited 11 months ago by Jos (previous) (diff)

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.

Add Comment

Modify Ticket

Action
as closed The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.