-
Notifications
You must be signed in to change notification settings - Fork 30
-
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
Node.js support #31
Comments
I believe all pieces for first-class nodejs support are in place:
I have never tried this setup myself. It would be cool to create a sample project for nodejs app working with Dirac. Unfortunately I'm not going to spend time on this task ATM. [1] https://medium.com/@paul_irish/debugging-node-js-nightlies-with-chrome-devtools-7c4a1b95ae27 |
thanks, I shall upgrade my node to new version first |
I just tried it in node 7.4.0 and dirac 1.0.0. Devtool console prints out a message "Feature :repl cannot be installed. Unsupported browser ." Here is a screenshot with more details. My guess is that node doesn't has certain browser properties that dirac depends on (btw, cljs devtools also failed to install, above is with cljs devtools feature disabled) |
we will have to relax this condition: dirac/src/runtime/dirac/runtime/repl.cljs Line 20 in e92a3ab
you might try to patch this function and then call |
@darwin Thanks for the hint! Hit another dependence on js/document. It looks like part of dirac client code has to be injected into chrome-devtools://devtools/bundled/inspector.html ? Screenshot |
ok, set
after install call let's see how far you can get... |
ah, scratch my previous comment, I don't have time to reply now. Maybe you could figure out another way how to implement |
That didn't allow me to do what you suggested. Instead, I tried to comment out
then call (boostrap-if-needed!) by hand. No error in js console, but dirac console won't start after clicking the button on toolbar. |
I was able to make it work here on my Mac. But it will require some deeper changes. I'm pretty confident I will be able to provide an example project configuration by the end of this weekend. |
That's awesome! Looking forward to try it! Really appreciate your time and effort in developing dirac! |
Try to upgrade to v1.1.0, basic support should be in place: |
Hi @darwin, I did a quick test (not setting up external source-map serving yet). Basic feature works. Just want to let you know a few differences.
|
Ok, thanks for the feedback. I'm not sure about that REPL eval. Could have been some glitch in my setup. That CLJS DevTools Error is unrelated to this issue. It is not even CLJS devtools bug. You are likely to see similar stack trace event without cljs-devtools. It looks to me that Promesa throws when someone wants to print its value via IPrintWithWriter protocol. |
Yes, you are right. That's an issue from promesa. will report it there (i did a local fix that works). Thanks again for your help! |
Released in v1.1.0. I don't hear any complaints. Feel free to reopen in case of bug reports. |
This looks like out-of-sync debugger protocol between Devtools and Node.js. In case of similar troubles, you should be using nightly builds of node.js: |
Yes, that seems the case. Thanks! |
can dirac connect to my repl in nodejs(cljs)
The text was updated successfully, but these errors were encountered: