-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add electron support #89
Comments
Hi, I very much doubt it could work this way. According to my past experience the browser engine shipped with Electron is usually several months older than current Chrome Canary. This is definitely a deal breaker: https://github.com/binaryage/dirac/blob/master/docs/faq.md#why-should-i-use-recent-chrome-canary-with-dirac-devtools. In theory you could be able to find past Dirac version which would match browser engine in your particular Electron version. But still I think there could be other issues. I'm personally not going to add Electron support to Dirac. If someone would add it and commit to supporting it, I would consider merging a PR. |
Have started to investigate this in the context of getting something to work for developing VSCode extensions in Clojurescript. I got as far as obtaining a Chromium / dirac pair, but encountered difficulty in running the dirac-sample during its lein repl step. Below is a summary:
https://code.visualstudio.com/updates/v1_36 and noted:
So it seemed that Electron 4.0 might be relevant.
https://github.com/Kilian/electron-to-chromium/blob/master/versions.js and noted:
So it seemed like some Chromium 69 might be relevant.
https://github.com/binaryage/dirac/releases/tag/v1.2.36 and noted:
Also picked up a zip file of the dirac extension for later manual installation.
https://www.chromium.org/getting-involved/download-chromium and adapted its instructions to first look at: https://omahaproxy.appspot.com/ entering "69.0.3485.1" in the Version field within the "Version Information" box. This yielded:
Then visiting: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html I navigated to "Mac", and entered 573176 in the Filter field and (after some wait) received the URL: https://commondatastorage.googleapis.com/chromium-browser-snapshots/index.html?prefix=Mac/573176/ Visiting it, was able to find a link to chrome-mac.zip, which I downloaded.
After a git checkout of this commit, attempted to follow the steps for running the demo. Started the obtained Chromium using the remote debugger port and specifying a custom profile. I manually installed the matching dirac Chrome extension (obtained in step 3 and unzipped) via chrome://extensions/ (enabling dev mode first, etc.) I ran lein demo from a terminal and waited for it to execute the dev-server.sh (web server) step. Then I ran lein repl from another terminal and got:
Any hints as to things I might have done wrong or suggestions? I can also try under Windows (though I think I need to create an appropriate dev-server.bat there at least) and some Linux distribution, but IIUC the primary development platform for dirac is macos. |
Hello! I'm playing around with shadow-cljs + electron (which seems to work really nice!). dirac seems like it would benefit me greatly, so I tried adding it using electrons
BrowserWindow.addDevToolsExtension(path)
(api docs here).Sadly I get this error, and I'm unable to figure out what's going wrong:
I've successfully used the react dev tools extension, so I don't think I'm doing anything wrong on my end.
Any help or suggestions is very appreciated. :)
The text was updated successfully, but these errors were encountered: