Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 360347

Summary: DataGridSelector got error in VE
Product: z_Archived Reporter: Xin Wu <cdlwuxin>
Component: EDTAssignee: Huang Ji Yong <hjiyong>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P1 CC: cdlwuxin, chenzhh, hjiyong, svihovec, xiaobinc
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
ThirdParty
none
Project to reproduce the Js gen defect none

Description Xin Wu CLA 2011-10-09 02:36:49 EDT
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 函数调用
Comment 1 Huang Ji Yong CLA 2011-10-13 08:56:05 EDT
Hi Xin,
Please attach the test case.
Thanks.
Comment 2 Xin Wu CLA 2011-10-13 21:33:02 EDT
Created attachment 205162 [details]
ThirdParty
Comment 3 Xin Wu CLA 2011-10-13 21:33:57 EDT
Hi, JiYong
Sorry for forgot upload, I've attached the project
Comment 4 Huang Ji Yong CLA 2011-10-20 04:10:50 EDT
Seems they are more than 1 problem in this defect.
First of all, a js gen bug 360615 also happens in this test case.
Comment 5 Xiao Bin Chen CLA 2011-10-28 03:49:36 EDT
Created attachment 206110 [details]
Project to reproduce the Js gen defect
Comment 6 Xiao Bin Chen CLA 2011-10-28 03:54:34 EDT
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.
Comment 7 Xiao Bin Chen CLA 2011-10-28 03:55:51 EDT
It's a js gen problem, so give it back to jiyong.
Comment 8 Tony Chen CLA 2011-11-10 21:30:10 EST
Set to major because they are things newer developers may run into fairly quickly
Comment 9 Huang Ji Yong CLA 2011-11-12 09:37:46 EST
Fixed by bug 363525
Comment 10 Xin Wu CLA 2011-11-17 20:43:25 EST
Verified in build 20111117