You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
addDevToolsExtension does not work in Electron v0.30.2 #2404
Really not sure this is a OS specific issue, only two things that can go wrong here would be path to extension might be incorrect or the custom experiments options isnt set before loading extension. @s-a could you try remote-debugging the devtools to see if extension is loaded ?
@magicae react devtools needs loading content scripts support in Electron.
@s-a was able to reproduce the issue, could try the following in your test demo and confirm the result.
Run the test demo and enable the Allow Custom Ui option.
Remove the extension and add (try in devtools console / in app run after devtools-opened with a delay).
The problem is when we load the registered extensions on devtools open here, the experiments option isnt recognised by the time it loads and hence dont find the theme applied, a slight delay in loading the extension after devtools opened produces the desired result. I still havnt figured how devtools applies the experiments option.
removeDevToolsExtension uses the extension name from manifest not the path to the extension. It should be removeDevToolsExtension("DevTools Theme: Zero Dark Matrix")
I am getting a ENOENT error for react devtools. Its trying to open manifest.json which doesn't exist for react dev-tools
'/Users/goutham/github/bookworm/react-devtools/manifest.json'
Error: ENOENT: no such file or directory, open '/Users/goutham/github/bookworm/react-devtools/manifest.json'
Activity
hanzhao commentedon Aug 2, 2015
v0.30.0 reproduced
s-a commentedon Aug 3, 2015
@zcbenz does there exist a way to subscribe a notification if a new electron version was released?
deepak1556 commentedon Aug 3, 2015
@s-a you need to enable
Allow Custom UI themesoption in experiments panel of devtools for this extension to work.zcbenz commentedon Aug 3, 2015
You can use RSS feed:
http://stackoverflow.com/questions/20839622/notifications-for-new-github-project-releases
s-a commentedon Aug 3, 2015
@deepak1556 This is already activated.
@zcbenz ty 😄
deepak1556 commentedon Aug 3, 2015
just tested on linux and works fine.
s-a commentedon Aug 3, 2015
Hmm nice to know that Linux is not affected 👍 @magicae What OS are you using? I am on Windows 7 here. Would be cool to know if it works on mac.
hanzhao commentedon Aug 3, 2015
@s-a I use Linux and I can't add
React DevToolto Electron devtool.deepak1556 commentedon Aug 3, 2015
Really not sure this is a OS specific issue, only two things that can go wrong here would be path to extension might be incorrect or the custom experiments options isnt set before loading extension. @s-a could you try remote-debugging the devtools to see if extension is loaded ?
@magicae react devtools needs loading content scripts support in Electron.
s-a commentedon Aug 3, 2015
@deepak1556 yes i am able to debug remote. But not far enough into electron to know how. Can you post me debugger expression I should check?
s-a commentedon Aug 3, 2015
The fact my code works on v"0.26.1" indicates it is a timing problem then.
I' ve tested this without success.
hanzhao commentedon Aug 3, 2015
@deepak1556 is it supported now? I can't find it and can't load React DevTools...
deepak1556 commentedon Aug 3, 2015
@magicae nope. tracked here #915
@s-a you can check for the stack trace at
InspectorFrontEndAPI.addExtensionsin devtools.js.2 remaining items
s-a commentedon Aug 4, 2015
@deepak1556 To be shure we talk about the same status i created a repo to reproduce at https://github.com/s-a/e-d-t-e-t
deepak1556 commentedon Aug 4, 2015
@s-a thanks for the test case, these are the two things i had to change to make the extension work.
Allow Custom UI themesoptionsdevtools-openeds-a commentedon Aug 4, 2015
Unfortunately extension still does not work on my workstation. Additional I tried

Restore defaults and reloadRestarted the app re-checked
Allow Custom UI themesand re-started again.Without success.
I will give it a try on Ubuntu today. There I should have exactly the same environment conditions than you.
Updated test case code at https://github.com/s-a/e-d-t-e-t/commit/81900e8df0e9fd92d0f8a0df7d1d69ffcecff2d7
s-a commentedon Aug 4, 2015
No success on Ubuntu
If I pass a wrong extension folder it throws an exception.
What is your secret @deepak1556? 👿
deepak1556 commentedon Aug 5, 2015
@s-a was able to reproduce the issue, could try the following in your test demo and confirm the result.
Allow Custom Uioption.The problem is when we load the registered extensions on devtools open here, the experiments option isnt recognised by the time it loads and hence dont find the theme applied, a slight delay in loading the extension after devtools opened produces the desired result. I still havnt figured how devtools applies the experiments option.
s-a commentedon Aug 5, 2015
I commented all code from app.js so that it is empty.
Double checked that
Allow Custom Ui optionis enabled.Then I executed this in the console after some seconds
removeDevToolsExtensionreturns true, whileaddDevToolsExtensionreturns undefined. 😿deepak1556 commentedon Aug 5, 2015
removeDevToolsExtensionuses the extension name from manifest not the path to the extension. It should beremoveDevToolsExtension("DevTools Theme: Zero Dark Matrix")s-a commentedon Aug 5, 2015
Success!!! 🙀 😄 👍
s-a commentedon Aug 5, 2015
It simply works even without a timeout.
gouthamve commentedon Aug 19, 2015
I am getting a ENOENT error for react devtools. Its trying to open manifest.json which doesn't exist for react dev-tools
s-a commentedon Aug 26, 2015
@deepak1556 since v0.31.0 your work around does not work anymore 😢
s-a commentedon Dec 12, 2015
@deepak1556 seems that this is broken again in electron 0.36.0 ?
s-a commentedon Dec 12, 2015
no it works! sorry i missed the option in allow custom ui