1. Translator problem with Eu 4.0
- Posted by RStowasser Dec 21, 2008
- 930 views
- Last edited Dec 22, 2008
Hello to the development team,
unfortunately IDE104 is not translated and compiled correctly since rev 1265 (tail recursion). I tried again with rev 1271 but the result is the same: IDE runs ok when interpreted but when translated the creation of the windows for Toolbox, Property, Project etc does not work correctly. They do not appear at the expected location and the behaviour is very strange.
I tried to run IDE with eu.ex but there is also a strange result:
C:\EUPHORIA\SOURCE40>exwc eu.ex d:\euphoria\ide104\ide.exw
D:\Euphoria\Win32libv07\include\win32lib.ew:13656 in function createEx()
index out of bounds in match_from()
... called from d:\euphoria\ide104\includes\ide_config.ew:57
> see ex.err
Press Enter...
the corresponding code in Win32lib.ew is:
... elsif lControl = Icon then iIconInfo = 0 if length(pCaption)=2 and integer(pCaption[2]) and pCaption[2]>0 then iIconInfo=pCaption[2] end if if iIconInfo or match(".ICO", upper(pCaption)) = (length(pCaption)-3) then setIcon(id, pCaption) end if ...
As Win32lib.ew uses the include files of Eu 3.1.1 I wonder why the error message shows match_from and not match? Could there be a relation between the wrong error message and the incorrect translating of IDE?
Btw hopefully you don't mind if I only report about problems and do not mention the many points which work fine or will make programming with Euphoria more comfortable. But in the moment I am still in backwards compatibility mode, at least as long this should be possible.
Roland
2. Re: Translator problem with Eu 4.0
- Posted by mattlewis (admin) Dec 22, 2008
- 898 views
unfortunately IDE104 is not translated and compiled correctly since rev 1265 (tail recursion). I tried again with rev 1271 but the result is the same: IDE runs ok when interpreted but when translated the creation of the windows for Toolbox, Property, Project etc does not work correctly. They do not appear at the expected location and the behaviour is very strange.
Wow, that is a monster application! Do you happen to know the last known good rev? Using 1271, I only see one tail call (deleteTheControl), and it's not called during the initialization phase, so I suspect that it's something else that's causing the problems.
I tried to run IDE with eu.ex but there is also a strange result:
index out of bounds in match_from()
the corresponding code in Win32lib.ew is:
if iIconInfo or match(".ICO", upper(pCaption)) = (length(pCaption)-3)
As Win32lib.ew uses the include files of Eu 3.1.1 I wonder why the error message shows match_from and not match? Could there be a relation between the wrong error message and the incorrect translating of IDE?
This appears to be a result of a change that was made to only emit match_from(), since match() is just a special case. But the bounds checking is slightly different in execute.e, and since the default of 1 is supplied as the 'from' parameter for a regular match(), you get that erroneous error message.
Btw hopefully you don't mind if I only report about problems and do not mention the many points which work fine or will make programming with Euphoria more comfortable. But in the moment I am still in backwards compatibility mode, at least as long this should be possible.
It's not a problem, but the positive comments are definitely appreciated.
Matt
3. Re: Translator problem with Eu 4.0
- Posted by mattlewis (admin) Dec 22, 2008
- 906 views
unfortunately IDE104 is not translated and compiled correctly since rev 1265 (tail recursion). I tried again with rev 1271 but the result is the same: IDE runs ok when interpreted but when translated the creation of the windows for Toolbox, Property, Project etc does not work correctly. They do not appear at the expected location and the behaviour is very strange.
Wow, that is a monster application! Do you happen to know the last known good rev? Using 1271, I only see one tail call (deleteTheControl), and it's not called during the initialization phase, so I suspect that it's something else that's causing the problems.
Meh. Nevermind that. There were others, but I wasn't looking properly. It wasn't resetting temps properly, which was corrupting some data. Try r1272.
Matt
4. Re: Translator problem with Eu 4.0
- Posted by RStowasser Dec 22, 2008
- 923 views
- Last edited Dec 23, 2008
unfortunately IDE104 is not translated and compiled correctly since rev 1265.
Meh. Nevermind that. There were others, but I wasn't looking properly. It wasn't resetting temps properly, which was corrupting some data. Try r1272.
Matt
Using rev 1274 my IDE and Editor run perfectly, either interpreted or translated/compiled or running with eu.ex. With the small changes of some keywords (entry, label) Arwen and EuWinGui work also as expected. Thank you for this really fast fix.
Roland