View tree is blank
After the upgrade to 1.6, the view tree no longer shows anything. The Routes panel is working fine, just the current view is non-functional.

My app stack:
DEBUG: -------------------------------
vendor.js:28474 DEBUG: Ember : 1.8.0-beta.5
vendor.js:28474 DEBUG: Ember Data : 1.0.0-beta.11
vendor.js:28474 DEBUG: Handlebars : 1.3.0
vendor.js:28474 DEBUG: jQuery : 1.11.1
vendor.js:28474 DEBUG: Ember Simple Auth : 0.6.7
vendor.js:28474 DEBUG: Ember Simple Auth OAuth 2.0 : 0.6.7
vendor.js:28474 DEBUG: -------------------------------
Are there any errors in the console? Can you reproduce this issue in a Jsbin or any public example?
@teddyzeenny: please close this issue. Entirely my bad JS.
I'm having the same problem. Can you explain what was causing your error, or how you figured out the problem?
I would note that the 1.5.0 version of the inspector does not have the same problem for me...
@marshall-prosperworks: Pretty much there was malformed data in the ember-data store on a route or view that needed it, the view tree didn't work. I narrowed it down by trial and error on the routes panel, showing on the current route and checking controllers and models. I looked for properties that looked janky. Wish I had a better solution than that, but it's what worked for me.
Still feels like, if something goes wrong that would make the view panel break, there should be some error message or diagnostic available. Even if it is one's own code at fault.
@marshall-prosperworks it could be that the error is getting caught inside a promise. Look in the Promise tab for rejected promises, or maybe try using Ember.RSVP.config('onerror').
@marshall-prosperworks ping
I have not had time to investigate this problem, unfortunately. I'm currently working around it by using a previous build of the plugin.
The only 2 commits between 1.5 and 1.6 that could affect the view tree are https://github.com/emberjs/ember-inspector/commit/063198a73b2b5baed2a858e95d1f064f8524f3e2 and https://github.com/emberjs/ember-inspector/commit/ff2145185b6d2575fd0b76801bb8b35debfdabae.
Can you tell me what the value of your application's rootElement (YourApp.rootElement) ?
And the value of $(YourApp.rootElement).find('> .ember-view').attr('id');
App.rootElement undefined Ember.VERSION "1.0.0"
@marshall-prosperworks App.rootElement shouldn't be undefined. The default value is body. Any idea why it might beundefined?
@marshall-prosperworks ping
Sorry, have not had much chance to look into this problem, though we are still experiencing it.
@marshall-prosperworks Is it possible you are deleting the app's rootElement? if you search your project for rootElement do you get any results?
Our project contains a few applications which we run in different contexts. The one that was breaking, was specifying a rootElement of '#application_content', but it seemed that we had no element with that id (running $('#application_content') from the command line got me an empty array).
I saw that we had some other Applications, which were using rootElement: 'body', so i tried changing '#application_content' to 'body', and now the newer inspector version is working. Nice!
Still, it would be nice if the inspector or the framework itself had some better way to deal with this error instead of failing silently. Like, "You specified an applicationRoot which is not present. This will break Ember Inspector and possibly other things"
Anyways, thanks again.
Oh I guess i should point out that changing the rootElement to 'body' makes the ember inspector seem to work, but also is messing up my app in other ways, but I guess I just need to figure that out on my end.
If your rootElement doesn't exist, you're supposed to get an error from Ember core. See
http://emberjs.jsbin.com/quxeli/1/edit?html,js,console
Having the same issue when there is no root element in the page. I think it should give a waring though.
Closing this for relevancy.