This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-18
Channels
- # beginners (15)
- # boot (23)
- # cider (8)
- # clara (29)
- # cljs-dev (86)
- # cljsrn (36)
- # clojars (9)
- # clojure (211)
- # clojure-dusseldorf (5)
- # clojure-italy (21)
- # clojure-sg (2)
- # clojure-spec (4)
- # clojure-uk (12)
- # clojurescript (204)
- # cursive (5)
- # data-science (12)
- # datomic (15)
- # dirac (99)
- # emacs (1)
- # events (2)
- # figwheel (1)
- # fulcro (9)
- # graphql (27)
- # hoplon (50)
- # instaparse (9)
- # juxt (61)
- # keechma (6)
- # leiningen (1)
- # luminus (4)
- # lumo (24)
- # off-topic (24)
- # om (16)
- # onyx (17)
- # parinfer (35)
- # pedestal (3)
- # planck (12)
- # protorepl (8)
- # re-frame (15)
- # reagent (22)
- # ring (1)
- # rum (1)
- # spacemacs (3)
- # uncomplicate (4)
- # vim (5)
- # yada (1)
@darwin Huh, I didn't know this was here. đ
Oh, I guess it might still not be the proper version. I figured since I was actually seeing the console it was the right version. Version 61.0.3163.25 (Official Build) dev (64-bit)
Yeah, alright. Sorry to bother you. I'll go get a newer one. đ
Oh, can I? I'd need to do the browser plugin and the library being used?
:thumbsup:
Yeah, I'll see if I can just upgrade the package without issues.
just for reference: https://github.com/binaryage/dirac/blob/master/docs/faq.md#how-do-i-stick-to-a-particular-dirac-version
Thanks
@darwin Alright, I have a proper version, and everything seems to be working, except the clojurescript REPL times out with:
17-08-18 20:11:30 hyperion DEBUG [dirac.lib.nrepl-tunnel-server:288] - [NREPLTunnelServer#1 of [NREPLTunnel#1]] Received :ready from client [WebSocketServerClient#4]
17-08-18 20:11:30 hyperion DEBUG [dirac.lib.nrepl-tunnel-server:288] - [NREPLTunnelServer#1 of [NREPLTunnel#1]] process :nrepl-message from [WebSocketServerClient#4] {:op :nrepl-message,
:envelope
{:op "eval",
:code
"(do (require (quote dirac.nrepl)) (dirac.nrepl/boot-dirac-repl! (quote {:runtime-tag \"sheet | | Chrome/62.0.3178.0 | Linux/?\"})))",
:id "024d8c4d-ffd0-4d0a-b02c-555e045e4c7d"}}
17-08-18 20:09:27 hyperion ERROR [dirac.lib.nrepl-tunnel-server:288] - [NREPLTunnelServer#1 of [NREPLTunnel#1]] Received a bootstrap timeout from client [WebSocketServerClient#3] :
{:op :bootstrap-timeout}
My hostname
Didn't actually check that yet: http://sprunge.us/MDJi
Not sure what the "enable the :repl feature" is referring to.
"Dirac requires runtime support from page context."
hey dude, you should follow this https://github.com/binaryage/dirac/blob/master/docs/installation.md
This is the error I'm seeing in dirac itself: "Unable to bootstrap ClojureScript REPL due to a timeout. Usually this happens when server-side process raised an exception or crashed. Please check error output in Dirac Agent."
https://github.com/binaryage/dirac/blob/master/docs/installation.md#install-the-dirac-runtime
I'm using powerlaces.boot-cljs-devtools to load in dirac. I thought it did this.
What should be visible in dirac?
This is the first two lines of the dirac console:
Installing Dirac Runtime 1.2.15 and enabling features :repl
Installing CLJS DevTools 0.9.4 and enabling features :formatters :hints :async
But still: "dirac.runtime.installed_QMARK_ is not a function"
Undefined
dirac is defined though
{_DEBUG_EVAL: false, _DEBUG_COMPLETIONS: false, _DEBUG_KEYSIM: false, _DEBUG_FEEDBACK: false, _DEBUG_WATCHING: false, âŚ}
addConsoleMessageToMainTarget
:
Ć addConsoleMessageToMainTarget(type,level,text,parameters)
adoptPrompt
:
Ć ($text_area_element$$,$use_parinfer_QMARK_$$)
codeAsString
:
Ć codeAsString(code)
deduplicate
:
Ć deduplicate(coll,keyFn=item=>""+item)
evalInCurrentContext
:
Ć evalInCurrentContext(code,callback)
evalInDefaultContext
:
Ć evalInDefaultContext(code,callback)
extractMacroNamespaceSymbolsAsync
:
Ć extractMacroNamespaceSymbolsAsync(namespaceName)
extractNamespaceSymbolsAsync
:
Ć extractNamespaceSymbolsAsync(namespaceName)
extractNamespacesAsync
:
Ć extractNamespacesAsync()
extractScopeInfoFromScopeChainAsync
:
Ć extractScopeInfoFromScopeChainAsync(callFrame)
feedback
:
Ć $dirac$implant$post_feedback_BANG_$$($var_args$jscomp$593$$)
getFullFunctionName
:
Ć ($munged_name$jscomp$16$$)
getFunctionName
:
Ć ($munged_name$jscomp$15$$)
getMacroNamespaceNames
:
Ć getMacroNamespaceNames(namespaces)
getNamespace
:
Ć getNamespace(namespaceName)
getReplSpecialsAsync
:
Ć ()
getRuntimeTag
:
Ć ($callback$jscomp$81$$)
getVersion
:
Ć ()
hasBeautifyFunctionNames
:
true
hasCleanUrls
:
true
hasClusteredLocals
:
true
hasCurrentContext
:
Ć hasCurrentContext()
hasDefaultContext
:
Ć hasDefaultContext()
hasFeature
:
Ć hasFeature(feature)
hasFriendlyLocals
:
true
hasInlineCFs
:
true
hasLinkActions
:
true
hasParinfer
:
true
hasREPL
:
true
hasWelcomeMessage
:
true
initConsole
:
Ć ()
initRepl
:
Ć ()
invalidateNamespaceSymbolsCache
:
Ć invalidateNamespaceSymbolsCache(namespaceName=null)
invalidateNamespacesCache
:
Ć invalidateNamespacesCache()
isIntercomReady
:
Ć ()
lookupCurrentContext
:
Ć lookupCurrentContext()
notifyFrontendInitialized
:
Ć ()
notifyPanelSwitch
:
Ć ($panel_id$$)
nsToRelpath
:
Ć ($ns$jscomp$60$$,$ext$jscomp$2$$)
parseNsFromSource
:
Ć ($source$jscomp$20$$)
registerDiracLinkAction
:
Ć registerDiracLinkAction(action)
reportNamespacesCacheMutation
:
Ć ()
sendEvalRequest
:
Ć ($JSCompiler_inline_result$jscomp$271_JSCompiler_inline_result$jscomp$3015_coll$jscomp$inline_3621_request_id$$,$code$jscomp$39$$,$scope_info$jscomp$1$$)
stableSort
:
Ć stableSort(array,comparator)
startListeningForWorkspaceChanges
:
Ć startListeningForWorkspaceChanges()
stopListeningForWorkspaceChanges
:
Ć stopListeningForWorkspaceChanges()
stringEscape
:
Ć stringEscape(string)
subscribeDebuggerEvents
:
Ć subscribeDebuggerEvents(callback)
triggerInternalError
:
Ć ()
triggerInternalErrorAsErrorLog
:
Ć ()
triggerInternalErrorInPromise
:
Ć ()
unsubscribeDebuggerEvents
:
Ć unsubscribeDebuggerEvents()
_DEBUG_BACKEND_API
:
false
_DEBUG_BACKEND_CSS
:
false
_DEBUG_CACHES
:
false
_DEBUG_COMPLETIONS
:
false
_DEBUG_EVAL
:
false
_DEBUG_FEEDBACK
:
false
_DEBUG_KEYSIM
:
false
_DEBUG_WATCHING
:
false
_lazyLoaded
:
true
_namespacesCache
:
{goog.string: {âŚ}, goog.string.Unicode: {âŚ}, goog.object: {âŚ}, goog.math.Integer: {âŚ}, goog.string.StringBuffer: {âŚ}, âŚ}
_namespacesSymbolsCache
:
Map(0) {}
__proto__
:
Object
Whoops... sorry
Right... dirac.runtime is defined
Nah, it's just an empty page.
did you open Dirac DevTools by clicking on the Dirac extension button while being on your page?
Then I closed it to open devtools for that error. Now I've opened dirac again, and that error isn't in its devtools.
Still can't bootstrap clojurescript REPL though.
If I reload with dirac open, it throws the same warning.
Yup :thumbsup:
No warning, but can't bootstrap REPL.
Dirac's devtools console?
It's stuck with the unable to bootstrap repl message.
Thanks Yeah, it's defined.
same as before
Version 62.0.3178.0 (Official Build) dev (64-bit)
again, this might be old version, unfortunately DevTools devs were messing with evaluation API just few days ago
I had to accomodate to it here: https://github.com/binaryage/dirac/commit/0188da804f9d79d63ed4935c004ab6c511a8c2c8
anyways, it seems like Dirac is unable to evaluate javascript code in the context of debugged page
Haha, probably. Should I try to get a later version?
Alright :thumbsup:
unfortunately the stuff is in flux right now, but it worked for me when tested on my Mac
I couldn't seem to find that version in the location the nixos package is pointing.
Yeah, unfortunately nixos can be a bit of a pain with specific package versions.
in this case you should simply download the chromium snapshot I link in the release section, see âRolling DevToolsâ
Yeah, I was hoping I could get that exact version. It wasn't available in the same location my build package is looking.
Anyways, thanks for your time.
:thumbsup:
I can imagine why it is silently failing, the api change is only in signature, I newly pass js object as first argument, but your âoldâ chrome treats it as a string and simply fails to execute it
Yeah, javascript likes to fail silently like that. đ