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
Sources > Filesystem > "Add Folder To Workspace" not working in Dirac 1.2.37 #80
Comments
Thanks for detailed report. I have reproduced it here. It sounds like a general limitation of DevTools running in so called "hosted mode" as a simple web app. That is what dirac does, it hosts devtools javascript files in a chrome extension and runs it as a simple web app talking to chrome debugging port. There are known limitations of running DevTools in hosted mode. I looked briefly at the source code and indeed "Add folder to workspace" tries to call into InspectorFrontendHost API which is not fully available in hosted mode. |
There is a relatively new command-line switch When I started hacking on Dirac this option wasn't available, that is why it is hosted inside an extension. Maybe it won't be that much work to support the |
Thanks for the detailed response. I do not personally have a critical need for this to work but I think supporting the workspaces in Dirac would bring it one step closer to being able to use dirac as your primary code editor for CLJS. With figwheel compiling changes in the background, I imagine that this could be a more productive workflow than switching to and from an external editor. |
I personally feel this would be too early and ambitious. I haven't seen any javascript devs using DevTools with workspaces as their code editor. btw. I believe you can still use internal DevTools for workspaces-related functionality and Dirac DevTools for REPL and debugging. This newly works thanks to recently implemented support for multiple clients talking to chrome debugger protocol. |
Using two different Dev Tools (one for workspace and the other for REPL and debugging) sounds like a great workaround. |
@aeberts FYI, we are getting closer to have Dirac running with |
@darwin Sounds promising! Looking forward to taking it for a test spin. |
I just tested it with Dirac v1.5.3 using new dirac cli workflow and seems to work as expected. Feel free to reopen if you spot any difference between Dirac and stock DevTools. |
Environment:
Dirac Version 1.2.37
Chromium Version : 70.0.3505.0
Mac: 10.13.6
Issue: In the Sources >> Filesystem section of Dirac devtools, clicking the button "Add folder to workspace" does nothing.
Expected behaviour: In the Sources >> Filesystem section of devtools, clicking the "Add folder to workspace" button would present the user with a file chooser dialog and allow the user to select a folder to add to the Sources section.
Actual behaviour: When clicking "Add folder to workspace" no dialog is displayed. Nothing happens when dragging folder from the filesystem to the main "Sources" window.
Reproduction steps:
Additional Notes:
In a dirac-enabled re-frame project, dirac is installed and appears to work correctly (Dirac UI starts, connects to the Dirac Agent and presents a cljs REPL that evaluates simple cljs expressions).
In a regular devtools window running in Chromium 70.0.3505.0 the "Add folder to workspace" button works as expected (i.e. the dialog is displayed and the source folder is added to the filesystem section).
The text was updated successfully, but these errors were encountered: