This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-16
Channels
- # announcements (2)
- # beginners (50)
- # boot (80)
- # calva (4)
- # cider (58)
- # cljs-dev (11)
- # clojure (140)
- # clojure-brasil (1)
- # clojure-denver (1)
- # clojure-dev (10)
- # clojure-europe (8)
- # clojure-finland (2)
- # clojure-italy (5)
- # clojure-nl (2)
- # clojure-quebec (1)
- # clojure-spec (2)
- # clojure-sweden (4)
- # clojure-uk (94)
- # clojurescript (98)
- # cursive (19)
- # data-science (1)
- # datascript (9)
- # datomic (43)
- # emacs (2)
- # fulcro (29)
- # graphql (41)
- # hoplon (15)
- # jobs (2)
- # kaocha (4)
- # liberator (24)
- # off-topic (9)
- # perun (1)
- # re-frame (11)
- # reagent (17)
- # reitit (8)
- # remote-jobs (2)
- # rum (2)
- # shadow-cljs (24)
- # spacemacs (1)
- # specter (1)
- # tools-deps (21)
@macrobartfast i posted the link of the alternative a couple of days ago here
@kwcharllie379 also volunteered to bring this/wrap this up for cider
in CIDER 0.20.0 (package: 20190114.1422) (Oslo)
I got a weird exception
ERROR: Unhandled REPL handler exception processing message {:op slurp, :url file:/Users/tatuta/..., :session 3274155d-5da6-4885-810a-b45cce1567eb, :id 164}
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
at java.util.regex.Matcher.reset(Matcher.java:309)
at java.util.regex.Matcher.<init>(Matcher.java:229)
at java.util.regex.Pattern.matcher(Pattern.java:1093)
at clojure.core$re_matcher.invokeStatic(core.clj:4796)
at clojure.core$re_find.invokeStatic(core.clj:4838)
at clojure.core$re_find.invoke(core.clj:4838)
at cider.nrepl.middleware.slurp$normalize_content_type.invokeStatic(slurp.clj:57)
at cider.nrepl.middleware.slurp$normalize_content_type.invoke(slurp.clj:52)
at cider.nrepl.middleware.slurp$slurp_url_to_content_PLUS_body.invokeStatic(slurp.clj:94)
@benedek it might take some time since I’m also graduating and changing job this month
@tatut Likely you’ve hit some bug in the content-type middleware. You should file a bug and disable this in the mean time.
I locally patched get-file-content-type
to return “application/octet-stream” as a fallback and it works (but I get a binary file output to my repl which is not useful)
@arohner Which version did you upgrade from? Nothing has really changed there recently.
What you describe sounds like some missing Elisp autoloads, that should not be happening if you’re using package.el
.
@tatut Well, probably in such cases we should just return the regular printed value, as would be the case in the absence of the middleware.
If you can do this patch yourself that’d be great - if not you can just open a ticket on cider-nrepl
and we’ll get to it at some point.
Hi, I just updated Cider to 0.20.0, and when doing cider-jack-in-clj
I get two warnings:
WARNING: CIDER requires nREPL 0.4.4 (or newer) to work properly
WARNING: CIDER requires cider-nrepl to be fully functional. Many things will not work without it!
I have removed all refences to nrepl and cider-nrepl from .lein/profiles.clj, and the cider-jack-in-clj
seems to be injecting the dependencies correctly.
My messages have these kind of errors:
error in process filter: user-error: ‘nil’ requires the nREPL op "classpath"
Any idea on what's wrong or how could I debug this further?@sampo.toiva I assume you’re on Lein 2.8.1, right?
@bozhidar Your assumption was correct. Things are working perfectly now! Thanks a ton for this! I don't know if it's possible to somehow give a proper error message about that, but it's maybe worth considering.
There’s some check about this in cider-nrepl
, but I guess that message ended up in the *nrepl-server*
buffer.
Ah, yeah, didn't occur to me to check that buffer - went through the others.
Yeah, the situation is certainly not ideal. Probably we should just try to get the version of Lein/Boot when when cider-nrepl
loads and send it to the clients.
I put a comment here https://github.com/clojure-emacs/cider-nrepl/issues/460. In cider 0.20 I'm still experiencing the problem where the debugger only uses a breakpoint once.
@chrisblom you might be able to run (cider-repl-clear-buffer
) by using clomacs (“Clomacs simplifies calling Clojure code from Emacs lisp and vice versa”)
https://github.com/clojure-emacs/clomacs
@erwinrooijakkers thanks, that might work
@benedek thanks for the link for a strategy for hot reloading deps yesterday! tools.deps looks similar to alembic. that's helpful... although I really liked the idea of being able to both add a dep to project.clj and hot reload it via emacs bindings, so hopefully that issue will get worked out (wish I were good enough yet to tackle it!).
tbh i don't think the client code needs to change much. only the refactor-nrepl impl needs to rewritten in cider-nrepl
Hi there, when running 0.20.0, stacktraces no longer print in my repl buffer, and the stacktrace window no longer appears. I’m also seeing `Warning: implicit middleware found: cider-nrepl.plugin/middleware Please declare all middleware in :middleware as implicit loading is deprecated.` which could be related, but I’m not sure where the middleware it’s complaining about is coming from, there’s nothing that stands out in my ~/.lein/profiles or the project.clj
standard question to ask is if you are on lein version 2.8.3. CIDER no longer plays nice with tools.nrepl but needs the newer nrepl/nrepl
one thing that just helped out others: putting deps.edn files allows for others to target branches of piggieback, nrepl quite easily. Someone is trying out a patch to piggieback trivially because i pushed a branch with a deps edn file. Just for consideration going forward
when I run cider-jack-in-cljs
, the browser pops up, figwheel reports being connected, but the mini buffer just hangs with "Starting server via"
if I do list-processes
I can see the nrepl process running as expected, but I never see a working REPL in emacs
check the nrepl process in emacs. I think i've seen this before. you probably have the repl running there rather than in the proper repl buffer
Prompt will show when REPL connects to evaluation environment (i.e. a REPL hosting webpage)
Figwheel Main Controls:
(figwheel.main/stop-builds id ...) ;; stops Figwheel autobuilder for ids
(figwheel.main/start-builds id ...) ;; starts autobuilder focused on ids
(figwheel.main/reset) ;; stops, cleans, reloads config, and starts autobuilder
(figwheel.main/build-once id ...) ;; builds source one time
(figwheel.main/clean id ...) ;; deletes compiled cljs target files
(figwheel.main/status) ;; displays current state of system
Figwheel REPL Controls:
(figwheel.repl/conns) ;; displays the current connections
(figwheel.repl/focus session-name) ;; choose which session name to focus on
In the cljs.user ns, controls can be called without ns ie. (conns) instead of (figwheel.repl/conns)
Docs: (doc function-name-here)
Exit: :cljs/quit
Results: Stored in vars *1, *2, *3, *e holds last exception object
Opening URL
ClojureScript 1.10.439
cljs.user=>
but this doesn't really help me. I can't use it for anything. How can I get it to start the regular cider buffer?
check your dir locals. it needs to ask you for the cljs repl type. i remember when it doesn't this happens
it now starts a CIDER REPL, but it crashes with some syntax errors and drops into a clj repl