ember-inspector
ember-inspector copied to clipboard
Unable to detect ember sites, inspect elements
Describe the bug
Unable to detect ember sites sometimes (look at top right):

Other times detection works, but (right clicking page) -> (inspect ember component) does not do anything:

To Reproduce
- Go to Chrome on linux
- Install ember-inspection
- attempt to use
- See issue
Environment linux Pop!-OS 19.10 x86_64 kernel 5.3.0-7642-generic
Additional context
- Usually use firefox. Chrome is not default browser, could that be an issue?
@chancancode @nummi do we want to support all Linux distros? I think an infinite support matrix could get hairy. I have never heard of linux Pop!, so I am not sure how to debug.
Is this really a system bug? I feel like this would be scoped to the browser.
@nummi well Inspector definitely works on Chrome on Mac, so it's something to do with Linux here.
Emberjs.com:
Neither of these work for me:

@nummi inspect ember component has never really worked. It works if you have inspector open already, but does not open inspector for you anymore, for whatever reason.
As for the message about running Ember.js or not, I am unsure what detects that, but inspector still works, despite the message.
I agree it’s unlikely to do with the OS and they are kind of “known” issues. If we don’t already have one lets make a stand-alone issue for each of these bugs. Given time I think we know how to fix them.
Having potentially the same problem? I built the extension manually and when loading it got the following error:
content-script.js:47 Uncaught Error: Extension context invalidated.
at listenToEmberDebugPort (content-script.js:47:20)
at content-script.js:30:7
listenToEmberDebugPort @ content-script.js:47
(anonymous) @ content-script.js:30
postMessage (async)
(anonymous) @ VM318:10127
(anonymous) @ VM318:10267
(anonymous) @ VM318:10269
Promise.then (async)
loadEmberDebugInWebpage @ VM318:21
(anonymous) @ VM318:10271
Edit: The inspector does actually work though!
this might be related to https://github.com/emberjs/ember-inspector/pull/2051 where it sometimes failed to detect the ember app
Cleaning up some issues, and going to close this for now. If you are still having issues, please let us know!