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

Bug 393460

Summary: parentRequire.specified is undefined
Product: [ECD] Orion Reporter: Adam Peller <apeller>
Component: EditorAssignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: Silenio_Quarti, simon_kaegi
Version: 1.0   
Target Milestone: 2.0 M1   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Adam Peller CLA 2012-11-02 16:21:28 EDT
When integrating the Orion editor with Maqetta, it is loaded by the Dojo loader.  parentRequire.specified is undefined, so the load() method in textview/i18n fails.  Our workaround is to simply test for truthiness:

if (parentRequire.specified && parentRequire.specified("orion/bootstrap")) { //$NON-NLS-0$
Comment 1 Simon Kaegi CLA 2012-11-05 10:00:52 EST
Sorry Adam, that check was supposed to be in the code-base already.
Comment 2 Silenio Quarti CLA 2012-11-08 11:16:13 EST
The test is already in the code base (Orion 1.0):

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=5cf156464601d5db223e11ad306e34fa42cd7ea2

Could it be a different problem?
Comment 3 Simon Kaegi CLA 2012-12-06 16:55:46 EST
.
Comment 4 Simon Kaegi CLA 2012-12-06 16:56:24 EST
.
Comment 5 Adam Peller CLA 2012-12-07 14:55:13 EST
Sorry, I was looking at an old tag (v20120618-1815)