ember-inspector icon indicating copy to clipboard operation
ember-inspector copied to clipboard

Unable to detect ember sites, inspect elements

Open LukeClancy opened this issue 5 years ago • 7 comments

Describe the bug Unable to detect ember sites sometimes (look at top right): image

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

image

To Reproduce

  1. Go to Chrome on linux
  2. Install ember-inspection
  3. attempt to use
  4. 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?

LukeClancy avatar Mar 30 '20 21:03 LukeClancy

@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.

RobbieTheWagner avatar Apr 05 '20 15:04 RobbieTheWagner

Is this really a system bug? I feel like this would be scoped to the browser.

nummi avatar Apr 05 '20 15:04 nummi

@nummi well Inspector definitely works on Chrome on Mac, so it's something to do with Linux here.

RobbieTheWagner avatar Apr 05 '20 16:04 RobbieTheWagner

Emberjs.com:

image

Neither of these work for me: image

nummi avatar Apr 05 '20 17:04 nummi

@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.

RobbieTheWagner avatar Apr 05 '20 18:04 RobbieTheWagner

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.

chancancode avatar Apr 05 '20 19:04 chancancode

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!

steffansluis avatar Aug 18 '22 12:08 steffansluis

this might be related to https://github.com/emberjs/ember-inspector/pull/2051 where it sometimes failed to detect the ember app

patricklx avatar Oct 02 '22 09:10 patricklx

Cleaning up some issues, and going to close this for now. If you are still having issues, please let us know!

RobbieTheWagner avatar Oct 10 '23 12:10 RobbieTheWagner