Community
Participate
Working Groups
Build Identifier: 20111008 nightly build DataGridSelector got error in VE Reproducible: Always Steps to Reproduce: 1. Import the project in archive file 2. Open GeoName.egl in package client by VE 3. Make sure there is no compile error 4. Swtich to preview, open by browser. there is the error message as below: Uncaught SyntaxError: Unexpected token . ThirdParty/org/eclipse/edt/rui/widgets/DataGridSelector.js?contextKey=14:165 [CRRUI2094E] 以下是导致此错误的 EGL 函数调用: Internal error while defining RUIWidget org.eclipse.edt.rui.widgets.TextField() [native JavaScript] Could not render UI TypeError: undefined is not a function at [object Object].eze$$setEmpty (GeoName.js?contextKey=14:20:24) at [object Object].eze$$setInitial (GeoName.js?contextKey=14:28:10) at new (GeoName.js?contextKey=14:6:9) at [object Object].eze$$thisClass (egl.js:800:27) at GeoName.html?contextKey=14:79:22 at Function.eze$$loadScripts (GeoName.html?contextKey=14:53:3) at GeoName.html?contextKey=14:51:43 at HTMLScriptElement. (GeoName.html?contextKey=14:39:4) undefined is not a function [CRRUI2094E] 以下是导致此错误的 EGL 函数调用: org/eclipse/edt/rui/widgets/DataGridSorter.egl() at line 18 Uncaught TypeError: undefined is not a function ThirdParty/client/GeoName.html?contextKey=14:94 [CRRUI2095E] 未能找到导致此错误的 EGL 函数调用
Hi Xin, Please attach the test case. Thanks.
Created attachment 205162 [details] ThirdParty
Hi, JiYong Sorry for forgot upload, I've attached the project
Seems they are more than 1 problem in this defect. First of all, a js gen bug 360615 also happens in this test case.
Created attachment 206110 [details] Project to reproduce the Js gen defect
Hi Jiyong: This defect is a js gen problem. Please see the project I attached. The "start" function of generated main.js like below "start": function() { try { egl.enter("start",this,arguments); egl.atLine(this.eze$$fileName,17,356,13, this); this.ad = abc; <b>/// Should like this: egl.checkNull(this.aH2).abc;<b> egl.atLine(this.eze$$fileName,16,334,44, this); if (!egl.debugg) egl.leave(); } finally { if (!egl.debugg){ } else { egl.leave(); } } } The problem may be is that: If you used a function in other part the generated js will fail.
It's a js gen problem, so give it back to jiyong.
Set to major because they are things newer developers may run into fairly quickly
Fixed by bug 363525
Verified in build 20111117