This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-29
Channels
- # admin-announcements (2)
- # beginners (10)
- # boot (253)
- # cider (11)
- # cljs-dev (26)
- # cljsjs (21)
- # cljsrn (7)
- # clojure (87)
- # clojure-berlin (13)
- # clojure-dusseldorf (5)
- # clojure-greece (7)
- # clojure-poland (11)
- # clojure-russia (189)
- # clojure-spec (31)
- # clojure-uk (86)
- # clojurescript (89)
- # cursive (15)
- # datavis (2)
- # datomic (57)
- # devcards (3)
- # dirac (92)
- # editors-rus (3)
- # emacs (4)
- # events (1)
- # funcool (30)
- # hoplon (3)
- # jobs-rus (6)
- # leiningen (1)
- # luminus (12)
- # mount (25)
- # off-topic (5)
- # om (43)
- # onyx (41)
- # perun (1)
- # proton (2)
- # protorepl (7)
- # re-frame (17)
- # reagent (34)
- # ring (13)
- # specter (1)
- # spirituality-ethics (1)
@superstructor: I deployed https://clojars.org/powerlaces/boot-cljs-devtools, can you give it a good as well please? version 0.1.1-SNAPSHOT
how was the shortcut to activate Dirac again? CTRL-PGUP ?
oh sorry I was using the standard panel all good
how can you evaluate forms? I pressing enter and it just adds a new line
no, it looks like evaluation does not work
@richiardiandrea: next version of dirac will support :preloads
in the same way as cljs-devtools does
@darwin I was trying to evaluate a form in Dirac but it was always adding a new line
both with and without Parinfer enabled
yeah there was a cljs.user
green string showing up
ok, then follow this to see errors in dirac console: https://github.com/binaryage/dirac/blob/master/docs/faq.md#something-broke-how-do-i-debug-dirac-devtools-frontend
or I can tell you how to enable verbose mode in nREPL middleware / dirac’s weasel server, so you can see if the eval command was really received by REPL backend and compiled and sent back to frontend for evaluation
when it does like this in clojurescript it means that it cannot parse the input form..
I can try to enable verbose mode, I am using boot-cljs-devtools
btw
export DIRAC_NREPL_LOG_LEVEL=DEBUG; boot cider dev
is easy enough 😉
there is also: https://github.com/binaryage/dirac/blob/master/src/agent/dirac/agent/config.clj#L19
and :weasel-verbose in runtime config: https://github.com/binaryage/dirac/blob/master/src/runtime/dirac/runtime/prefs.cljs#L13
booting
weasel is the component responsible for evaluating compiled clojurescript sent from nrepl server back to client
DIRAC_WEASEL_VERBOSE is also env var which could be set: https://github.com/binaryage/dirac/blob/master/src/runtime/dirac/runtime/prefs.clj#L34
uhm not really more verbose...
Compiling {sass}... 2 changed files.
Adding :require adzerk.boot-reload.init10338 to main.cljs.edn...
nREPL server started on port 5088 on host 127.0.0.1 -
Adding :require [devtools.core dirac.runtime] and :init-fns [devtools.core/install! dirac.runtime/install!] to main.cljs.edn...
Compiling ClojureScript...
• main.js
Dirac Agent v0.6.2
Connected to nREPL server at .
Agent is accepting connections at .
Elapsed time: 28.075 sec
btw I moved the repo to https://github.com/boot-clj/boot-cljs-devtools
it looks DIRAC_NREPL_LOG_LEVEL does not work for some reason or is not used (or it starts logging after dirac frontend connection or something)
changed both env vars to “all” and this is my output for evaluation form (+ 1 2)
:
https://gist.github.com/darwin/d75e8cba060b5765aaff14dc2df1613f
wow, I don't see any of that
https://github.com/binaryage/dirac/blob/master/src/agent/dirac/agent/config.clj#L19 https://github.com/binaryage/dirac/blob/master/src/lib/dirac/lib/utils.clj#L35-L38
it can be that, I think the task was originally built using the repl
built-in task which I think executes in a pod
so I cannot debug...but without env vars I cannot evaluate as well?
this should be fixed in your boot task anyways, users should be able to configure dirac via env vars
you must be using Canary, they did a lot of changes in devtools recently, v50 is too old
lemme update
Chrome Canary is currently not available on the linux platform.
You can try Chrome Canary for Windows 32-bit, Windows 64-bit or OSX.
it was 😉
trying
unfortunately bleeding edge version of devtools was pretty broken over last 14 days or so - they are adding support for node.js debugging announced on Google I/O
Version 54.0.2810.2 dev (64-bit)
oh wow cool stuff
i mean the node.js debugging
Internal Dirac Error: DevTools code has thrown an unhandled exception
TypeError: Cannot read property 'shift' of undefined
at WebInspector.ConsoleView._alterDiracViewMessage ()
at WebInspector.ConsoleView._createViewMessage ()
at WebInspector.ConsoleView._addConsoleMessage ()
at WebInspector.ConsoleView._onConsoleMessageAdded ()
at WebInspector.MultitargetConsoleModel.dispatchEventToListeners ()
at WebInspector.MultitargetConsoleModel._consoleMessageAdded ()
at WebInspector.ConsoleModel.dispatchEventToListeners ()
at WebInspector.ConsoleModel.addMessage ()
at WebInspector.DiracAwareConsoleDispatcher.messageAdded ()
at WebInspector.DiracAwareConsoleDispatcher.messageAdded ()
at least now we have an error
ok, this one was already reported by superstructor here in the channel, didn’t have time to look into that yet
ok no problem, at least now it evaluates it
Darwin thanks for your support and we discovered the env-var bug in boot-cljs-devtools
😉
I will open an issue with the above, I don't see it
no hurry, time is limited, we try our best 😄
btw, the exception you are getting is from here: https://github.com/binaryage/dirac/blob/master/resources/unpacked/devtools/front_end/console/ConsoleView.js#L721
(println "test")
but any form throws
so it might be a canary
vs dev
difference?
the link above installed Version 54.0.2810.2 dev (64-bit)
might be that
oh ok you are the expert in this 😉