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

Bug 411278

Summary: Cannot read "root" of undefined message in console
Product: [ECD] Orion Reporter: Simon Kaegi <simon_kaegi>
Component: ClientAssignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: ken_walker
Version: 3.0   
Target Milestone: 5.0 M1   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Simon Kaegi CLA 2013-06-20 12:35:54 EDT
After debugging this for a while I believe this is an error in either chrome or requirejs and how it handles async scripts. What I'm seeing is that script is returning as "completed" prior to it being parsed. In the case I'm seeing it we are loading inside of the requirejs i18n plugin after using a local require to load the git/nls/gitmesssages message bundle. The message bundle is returned as undefined. In chrome I see the script tag but do not see the network request so suspect chrome is to blame. I am using Chrome 28 beta. 

Clearing localStorage and browser cache sometimes will resolve this however I'm not at all sure why.
Comment 1 Ken Walker CLA 2013-06-20 13:08:24 EDT
This also happens on Safari so perhaps it's webkit related?
Comment 2 Simon Kaegi CLA 2013-06-20 13:20:16 EDT
yep definitely possible. I also want to update requireJS in 4.0 as I imagine we are not the first to see it.
Comment 3 Simon Kaegi CLA 2013-06-20 13:20:48 EDT
Not saying the problem is in requireJS necessarily however James might have a workaround.
Comment 4 John Arthorne CLA 2015-05-05 14:40:22 EDT
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg03444.html