| Summary: | Cannot load HTML file when service references a part not generated to JS | ||||||
|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Justin Spadea <jspadea> | ||||
| Component: | EDT | Assignee: | Huang Ji Yong <hjiyong> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | major | ||||||
| Priority: | P3 | CC: | chenzhh, hjiyong, svihovec | ||||
| Version: | unspecified | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Justin Spadea
This problem is worse now. The latest code is trying to import .js files for interfaces and services, which do not exist. This renders the VE useless if invoking a service. I've put in a temporary workaround into EGLClassTemplate.java. (In reply to comment #1) > This problem is worse now. The latest code is trying to import .js files for > interfaces and services, which do not exist. This renders the VE useless if > invoking a service. I've put in a temporary workaround into > EGLClassTemplate.java. Hi Justin, It seems your fix has resolved the problem. Can you confirm that? The remaining problem is how to determine a built-in part, I will check with Paul about that. Hi JiYong, Your latest change backed out part of my temporary fix. It was just a temporary fix though, and I've put in a real fix that uses templates to do nothing in several methods for services and interfaces. The methods are: genOutputFileName genDependentParts genDependentIncludeFiles genDependentCSSs genDependentProps Interfaces and services do not have any of these files for inclusion in the HTML. I'm leaving this open as there is still the issue about determining if a part is user defined. If there is no good solution - as a last resort you could probably use ir.getFileName() and walk the source folders in the egl path to see if the file exists. It will be a path relative to the source folder. Created attachment 204060 [details]
Patch
Here is a patch. Thanks.
Code committed Verified |