#2372 closed Bug (Fixed)
Function incorrect number of parameters error on wrong line
| Reported by: | Matt Diesel | Owned by: | Jon |
|---|---|---|---|
| Milestone: | 3.3.13.11 | Component: | AutoIt |
| Version: | 3.3.9.13 | Severity: | None |
| Keywords: | Cc: |
Description
It is reporting the location of where another function was defined, rather than the line that the error occurred.
For example, the error below is that I am calling HotkeySet with 3 arguments, when it should only have 2.
Func UDF_Function($a, $b) EndFunc HotkeySet(UDF_Function(1, 2), "", "")
The output is:
v3.3.9.13:
"test.au3" (1) : ==> Incorrect number of parameters in function call.: Func UDF_Function($a, $b) ^ ERROR ->10:29:37 AutoIt3.exe ended.rc:1
v3.3.8.1:
test.au3 (1) : ==> Incorrect number of parameters in function call.: HotkeySet(UDF_Function(1, 2), "", "") ^ ERROR ->10:35:19 AutoIt3.exe ended.rc:1
Attachments (0)
Change History (5)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Mlipok, that is the output from Au3Check. This bug is concerning the output of the AutoIt interpreter itself.
comment:3 by , 12 years ago
| Milestone: | → 3.3.13.11 |
|---|---|
| Owner: | set to |
| Resolution: | → Fixed |
| Status: | new → closed |
Fixed by revision [10474] in version: 3.3.13.11
follow-up: 5 comment:4 by , 9 years ago
Still getting the same issue. Issue is not fixed getting error in correct number of parameters in function call
comment:5 by , 8 years ago
Replying to mishraparthasarathi9@…:
Still getting the same issue. Issue is not fixed getting error in correct number of parameters in function call
Me too. Please tell me what is a crap on this easy thing ....
Compile : "error: Debug_file_msg() called by a previous line with 2 arg(s). Max = 1. First previous line calling this Func is 89"
call at line 89 : D_msg("Hello world")
function definition (end of code) :
Func D_msg($dt = "")
If $debug_file = 1 Then
FileWriteLine($debugFilename, $dt)
EndIf
EndFunc

is it fixed ?
3.3.8.1
3.3.9.22
Remarks:
I have SciTe and all others in latest Beta version