This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-10-18
Channels
- # 100-days-of-code (6)
- # announcements (4)
- # beginners (126)
- # cider (49)
- # cljdoc (28)
- # cljsrn (3)
- # clojure (89)
- # clojure-dev (19)
- # clojure-greece (2)
- # clojure-italy (13)
- # clojure-mexico (1)
- # clojure-nl (13)
- # clojure-spec (108)
- # clojure-sweden (1)
- # clojure-uk (48)
- # clojurescript (31)
- # cloverage (3)
- # core-async (16)
- # cursive (28)
- # data-science (3)
- # datascript (1)
- # datomic (60)
- # defnpodcast (1)
- # docker (17)
- # editors (18)
- # emacs (16)
- # events (1)
- # figwheel (22)
- # figwheel-main (4)
- # graphql (26)
- # jobs (2)
- # off-topic (9)
- # om-next (2)
- # overtone (4)
- # perun (1)
- # re-frame (2)
- # reagent (18)
- # reitit (1)
- # ring-swagger (2)
- # shadow-cljs (2)
- # tools-deps (49)
- # uncomplicate (1)
- # unrepl (1)
- # vim (2)
I get this error with Prelude on a colleague laptop:
Prompt will show when REPL connects to evaluation environment (i.e. Node)
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
2018-10-17 18:15:05.167:INFO::nREPL-worker-0: Logging initialized @11986ms
Starting node ...
IOException error=2, No such file or directory java.lang.UNIXProcess.forkAndExec (UNIXProcess.java:-2)
user>
Has anyone seen it?When I use jack in with clj
it briefly shows the CLI invocation that’s used to start the nrepl server. Can I somewhere find the full command for copy-pasting?
Is it just this?
clojure -Sdeps '{:deps {org.clojure/tools.nrepl {:mvn/version "0.2.13"} cider/cider-nrepl {:mvn/version "0.18.0-SNAPSHOT"}}}' -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["cider.nrepl/cider-middleware"])'
For my leiningen project I see this in *Messages*
buffer:
[nREPL] Starting server via /usr/local/bin/lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.13\"\ \:exclusions\ \[org.clojure/clojure\]\] -- update-in :plugins conj \[refactor-nrepl\ \"2.4.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.18.0-SNAPSHOT\"\] -- repl :headless :host ::...
thanks @U06BE1L6T I also found the line above in the messages buffer but wasn't sure if it's complete due to trailing ellipsis 😄
I think it's complete: https://github.com/clojure-emacs/cider/blob/c936cdad4c944b716e2842f11c373f69a452c4b2/nrepl-client.el#L1031
yeah that makes sense. 🙂 Once I saw it in the messages buffer I was a bit more confident it's complete but in the minibuffer I guess an abbreviation would have been just as likely 🙂
enjoyed your defn podcast btw, many good points! @U051BLM8F
So I just started using shadow-cljs, and noticed that all of the sudden trying to jack in will ask if I'm in a lein or shadow-cljs project. Problem is, no matter which one I pick, I get an error like unsupported project type '"lein"'
. It looks like (cider-project-type)
is resolving to a string instead of a symbol. BUT, if I remove the shadow-cljs.edn
file from my project, the error goes away.
@bryan778 if i remember right i think there was a release for a few hours where this confusion existed. strange that this is happening. any chance you have some dir-locals laying around?
I don't think so...but I am also a mediocre spacemacs user at best. Those are project local vars I would set myself?
yeah. dir-locals are variable overrides for a directory tree. so you can override cljs repl types for particular projects without setting the value globally
and what may be happening: if there are two build systems present -- like lein and shadow-cljs -- there's a notion of preferred build system. perhaps this is set to "lein" rather than 'lein
do you know how to do that? there are always different levels of emacs experience with CIDER users. sometimes 20 years in emacs, sometimes only emacs experience is booting up prelude or spacemacs and running CIDER
M-x
is how you invoke "interactive" functions. we want to check the value of a variable so m-x isn't quite what we want to do
there's a way to have a little prompt down in the minibuffer and you can evaluate (cider-project-type)
from within your project
is that the M-:
? If I try that, I'll get the popup asking me which project type, and depending on what I choose, I'll get eiterh "lein"
or "shadow-cljs"
printed to the minibuffer
@richiardiandrea Seems like node
being on the PATH or something like this.
filed an issue in figwheel, it was a problem with the js file
@danie You’ve got some version mismatch between the nREPL server your starting and the middlewares you’re loading. What’s in your deps?
- org.clojure/tools.nrepl {:mvn/version "0.2.13"}
+ nrepl {:mvn/version "0.4.5"}
This changed on my top-level deps (as oppose to dev deps) fixed it.
That, and (setq nrepl-sync-request-timeout nil)
for the next problem.
Thank you.what is this tool the guy demonstrates that allows one to click down thru a highly nested data structure return result from the REPL while still in the source code buffer? I realize this might be a different editor than emacs, but has anyone seen such a tool for emacs/cider? https://youtu.be/rh5J4vacG98?t=1086
@dpsutton hmm.. I'm getting an "inspector error" on that (with nothing in the messages buffer)
inspector error for: {:name "Hyundai Electronics PC3-12800", :type :memory, :used {:value 5311229952}, :total {:value 8579297280}}
and nothing in the cider error buffer either
what is the "on that" in your case? I called cider-inspect
on {:a :b}
with C-c M-i
and it worked for me
by putting point at the end of that form and hitting the chord. what are you doing and where?
Its simply:
(first (mapv :memory @hist))
I guess I could try it on the literal data structure that came back
same result
REPL had no problem with it
ah, had a middleware mismatch. Thanks @dpsutton!