This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-30
Channels
- # aleph (12)
- # beginners (23)
- # boot (12)
- # cider (40)
- # cljs-dev (8)
- # cljsrn (20)
- # clojars (1)
- # clojure (122)
- # clojure-canada (2)
- # clojure-dev (21)
- # clojure-gamedev (2)
- # clojure-italy (3)
- # clojure-nl (12)
- # clojure-norway (1)
- # clojure-sanfrancisco (3)
- # clojure-spec (59)
- # clojure-uk (114)
- # clojurescript (50)
- # clojurex (1)
- # cursive (2)
- # datascript (2)
- # datomic (26)
- # emacs (5)
- # fulcro (19)
- # garden (1)
- # hoplon (54)
- # leiningen (42)
- # luminus (14)
- # off-topic (24)
- # om (5)
- # onyx (7)
- # re-frame (2)
- # reagent (31)
- # reitit (3)
- # ring-swagger (39)
- # shadow-cljs (8)
- # sql (3)
- # tools-deps (13)
@arrdem That's great. Thanks. Looking forward to play with it. And will integrate it into Emacs Org-mode ob-clojure (or ob-clojure-literate) in later days.
When I evala quil sketch and I exit it, I get random messages that stall my input, in the emacs popup window I get a stream of
error in process filter: nrepl--dispatch-response: [nREPL] No response handler with id nil found
error in process filter: [nREPL] No response handler with id nil found
without quitting the nrepl it sporadically shows that message and stalls my whole emacs
@theeternalpulse That’s a long standing bug, which I never had time to debug. Certain responses arrive without a matching request id and we don’t know what to do with them basically, as the callbacks are associated with the id request.
I think you should search for quil
on our github issues - I recall other people reporting a similar problem in the past.
I instrumented that function in the debugger and one anomaly I've noticed is this
nrepl-client-filter(#<process nrepl-connection> "d2:id2:167:session36:a6306720-98db-4ce8-938c-83331e9f9fe15:value39:#'sandbox.graphics.star-field/starfielde")
it's adding an e to some functions in this log. I've gotten this with other functions as well at the start of the stack, all with e added
hmm, I guess that's a false lead, something must be adding that and it's getting past the client filter
@theeternalpulse the e is part of the protocol to signify the end of a dictionary
hi, latest CIDER from MELPA gives me this upon C-c M-J: error in process filter: cider-cljs-repl-form: Symbol’s function definition is void: nil
Do you want me to file an issue?
ah yes I have the same problem
I updated Cider this morning and with this config
(eval . (add-to-list 'cider-cljs-repl-types
`("Figwheel+Integrant"
"(do (require 'figwheel-sidecar.repl-api)
(require 'integrant.repl)
(integrant.repl/go)
(figwheel-sidecar.repl-api/cljs-repl))"))
it fails to jack-in-clojurescript
even though evaluating these things manually works and gives me a working cljs repl
the only error I see is cider-cljs-repl-form: Symbol's function definition is void: nil
@manuel @andrea.crotti The name is of the REPL type is now a symbol, not a string. That’s causing this error for you.
I’ve changed this, as it’s confusing/uncommon to be referring to things by string names in Elisp.
You should have used cider-register-cljs-repl-type
instead - it has validation of the its args and would have given you meaningful error.
(eval . (cider-register-cljs-repl-type
'figwheel+integrant
"(do (require 'figwheel-sidecar.repl-api)
(require 'integrant.repl)
(integrant.repl/go)
(figwheel-sidecar.repl-api/cljs-repl))"))
(and you can also add this to your Emacs config, of course - that’s make this REPL type available to all your projects)
this is my .dir-locals:
((nil
(cider-refresh-before-fn . "mount.core/stop")
(cider-refresh-after-fn . "mount.core/start")
(cider-default-cljs-repl . "Figwheel"))
(emacs-lisp-mode
(flycheck-disabled-checkers . "emacs-lisp-checkdoc")))
I need to change cider-default-cljs-repl
, then?That’s why you get the nil
- the code is searching for “Figwheel” in a list where there is not longer such an entry.
I was writing some documentation a day or two ago and then I decided I should probably change this before 0.17 is released, as relatively few similar configs use strings.
((nil
(cider-refresh-before-fn . "mount.core/stop")
(cider-refresh-after-fn . "mount.core/start")
(cider-default-cljs-repl . 'figwheel))
(emacs-lisp-mode
(flycheck-disabled-checkers . "emacs-lisp-checkdoc")))
Restarted Emacs just to be sure: error in process filter: cider-cljs-repl-form: Symbol’s function definition is void: nil
I guess I should add some validation for the type, so people get a meaningful error if doesn’t exist.
ok great thanks @bozhidar
but then
(cider-default-cljs-repl . 'figwheel+integrant)
this should work?
still count not manage to start it until I removed that and selected the figwheel+integrant
ahh ok thanks
and just to clarify this does new config doesn't work on older versions right? (but still on 0.17-)?
(but hopefully under 0.17 there are going to be no more changes to this for the foreseeable future)
ok cool just to know how to warn my colleagues
I’ve updated the ClojureScript section of the manual to cover all of this http://cider.readthedocs.io/en/latest/clojurescript/
I’m really hoping that 0.17 is going to happen very soon - at this point there are no major changes I plan to do myself, just some small refinements here and there. I’m hoping that @gonewest818 will soon wrap the exciting feature he’s been working on, and then we’d be good to go.
Btw, I’d love it if more ClojureScript devs reviewed this part of the manual and helped us to improve it. 🙂
sure I can check if I spot any problem
do you prefer github issues or just on this channel if it's something small?
@andrea.crotti The manual’s in GH, so feel free to just fire PRs for problematic parts.