Re: Eu4 - Bug in ex.err file generation
- Posted by jimcbrown (admin) Jul 29, 2012
- 1080 views
I can't say for sure without seeing the complete contents of both aaa.exw and bbb.ew but I suspect that the error message for both are both correct.
That is, your code has (at least) two errors.
There was a change in Eu4 so the undeclared identifiers errors is detected later, while in Eu311 they are detected and reported earlier.
So, what I believe is happening, is that bbb.ew really does have a syntax error involving some sort of unclosed syntax structure, and that Eu311 is seeing and reporting the problem with fileName first, but Eu4 is reporting the other issue first.
I have a file aaa.exw with an include bbb.ew
Inside the file aaa.exw, there is a line: "global variable FileName"
On the next line, I wrote (wrongly) the variable "FileName" above as "fileName"
If I'm using Eu311 the error message is:
C:\001ExecRem\aaa.exw: 29 fileName Has not Been Declared fileName = "formFogin"
However, if use EU4 the error message is:
C:\001ExecRem\bbb.ew: 1000 <0132> :: Syntax error - expected to see Possibly 'end', not the end of file <end-of-file> ^ --- Words --- Defined EU4 EU4_0 EU4_0_3 WINDOWS WIN32 GUI EUI ------------------- ^
Note that the error occurred at line 29 of file "aaa.exw"
But, when I use Eu4, the error message says the error is on line 1000 of file "bbb.ew"
Only for information: the file "bbb.ew" has only 999 lines and not 1000.
Maybe I did something wrong, or is this a bug. Please let us know.