This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-05-17
Channels
- # architecture (14)
- # aws (4)
- # aws-lambda (2)
- # beginners (66)
- # cider (63)
- # clara (39)
- # cljsjs (4)
- # cljsrn (3)
- # clojure (111)
- # clojure-berlin (5)
- # clojure-italy (17)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-uk (93)
- # clojurescript (19)
- # core-async (60)
- # cursive (13)
- # datomic (22)
- # devcards (2)
- # dirac (4)
- # duct (44)
- # emacs (18)
- # fulcro (1)
- # graphql (10)
- # jobs (13)
- # jobs-discuss (27)
- # lumo (1)
- # mount (1)
- # off-topic (22)
- # om-next (1)
- # onyx (16)
- # philosophy (3)
- # planck (4)
- # precept (34)
- # re-frame (66)
- # reagent (6)
- # ring (2)
- # ring-swagger (1)
- # shadow-cljs (333)
- # specter (8)
- # tools-deps (4)
- # vim (15)
- # yada (1)
They seem perfectly differentiated to me. One has a / and the other has a - š
hey folks, iām trying to get this project to work with cider
: https://github.com/rogerallen/hello_lwjgl
if you clone and do a lein run
it works fine, but if you do a M-x cider-jack-in
i get this error:
Might be related to this issue: https://github.com/rogerallen/hello_lwjgl/issues/6
at any rate, when I take a look at *Messages*
, M-x cider-jack-in
seems to be ignoring -XstartOnFirstThread
in project.clj
any leads? thanks in advance!
A more general question seems to be - why is M-x cider-jack-in
ignoring this: -XstartOnFirstThread
@sashton Yeah, actually I do. Soon cider-nrepl
will become orchard-nrepl
. This both saves the naming issue and more importantly underlies the fact that cider-nrepl
is hardly specific to CIDER. Iād like to see more tool authors involved in all the foundational libraries.
@iwannaseethelight What do you mean by CIDER ignores it
? It will happily run whatever you tell it to run as command line arguments.
hey @bozhidar - love the project!
I can stick a bunch of things into jvm-opts
in project.clj
and they show up in *Messages*
when booting up the repl via cider-jack-in
, but if you specify the -XstartOnFirstThread
option it does not show up in *Messages*
- I guess that doesnāt necessarily mean itās not getting picked up, but trying to start that lwjgl
project fails and says to specify the same option
just not sure why
in that project btw, they have a different approach where they boot up an nrepl server in their game itself and then cider-connect
to it
I see. In general CIDER is not involved at all in starting the REPL - it just lein/boot/whatever you choose to invoke, thatās why I meant CIDER canāt really ignore anything of this type.
Iām trying to do cider-jack-in (with and wihout a project) and it fails to start with error in process sentinel: Could not start nREPL server: Exception in thread "main" java.io.FileNotFoundException: Could not locate cider/nrepl/middleware/util/misc__init.class or cider/nrepl/middleware/util/misc.clj on classpath., compiling:(refactor_nrepl/middleware.clj:1:1)
For both lein
based projects, and clj
outside of a project. This is with the latest stable CIDER>
I gather that refactor-nrepl has issues, so I would be glad to just turn that off if that fixes the problem but I cannot find out how!
Ok I found http://cider.readthedocs.io/en/latest/troubleshooting/#commonly-encountered-problems-and-how-to-solve-them - trying that
hmm. turning off āCider Inject Dependencies At Jack Inā does not seem to help
Starting nREPL server via clojure -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["refactor-nrepl.middleware/wrap-refactor", "com.billpiel.sayid.nrepl-middleware/wrap-sayid", "cider.nrepl/cider-middleware"])'...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Exception in thread "main" java.io.FileNotFoundException: Could not locate cider_nrepl/main__init.class or cider_nrepl/main.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.
so it starts up differently but still errors
previously it was
Starting nREPL server via clojure -Sdeps '{:deps {org.clojure/tools.nrepl {:mvn/version "0.2.13"} refactor-nrepl {:mvn/version "2.3.1"} com.billpiel/sayid {:mvn/version "0.0.16"} cider/cider-nrepl {:mvn/version "0.17.0"}}}' -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["refactor-nrepl.middleware/wrap-refactor", "com.billpiel.sayid.nrepl-middleware/wrap-sayid", "cider.nrepl/cider-middleware"])'...
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: Exception in thread "main" java.io.FileNotFoundException: Could not locate cider/nrepl/middleware/util/misc__init.class or cider/nrepl/middleware/util/misc.clj on classpath., compiling:(refactor_nrepl/middleware.clj:1:1)
@joost-diepenmaat You need to disable the injection of the refactor-nrepl
(as mentioned in the troubleshooting page).
Ah I see
Youāre using some version of clj-refactor.el
thatās not compatible with CIDER. I think the only version that work OK is their current master.
If turned off the wrong knob
should use cljr-inject-dependencies-at-jack-in
instead of cider-inject-dependencies-at-jack-in
yeah doing that fixed the problem
thanks a lot
when I call cider-eval-buffer
after jacking in to a cljs repl I get the message user-error: ācider-eval-bufferā needs a ClojureScript REPL. \n If you donāt know what that means, you probably need to jack-in (ā, "ā).
I'm following the docs at https://cider.readthedocs.io/en/latest/clojurescript/
Ok.. new data, found this error in one of the repl buffers: ClassNotFoundException cemerick.piggieback java.net.URLClassLoader.findClass (URLClassLoader.java:381)
@ramblurr just a wild guess: you may want to check your java version and try 1.8 if you run with 1.9 or 1.10
thanks for the tip. I was already using 1.8. However this morning I came back to this issue and found a small typo in my project.clj... the typo didn't cause any build errors, but correcting it resolved this issue.
@ramblurr Make sure youāre using cider/piggieback
not the older cemerick/piggieback
.
Hmm, actually I see in your error youāre using an older version of CIDER that requires that older package.
Hi all, quick debugger questionā¦. The debugger works great on libraries that Iām pulling in as dependencies. I call cider-debug-defun-at-point
and it works beautifully. However, how do I now turn debugging off on that function?? If Iām debugging an expression in my own project I just evaluate it to turn off the debugger. But not sure how to do that on an external namespaceā¦. Hope that makes sense! Any help would be greatly appreciated.
@bozhidar confirmed i am using cider/piggieback
and I'm using spacemacs.. need to check the cider version it uses
@fedreg calling cider-eval-defun-at-point
will re-compile that function without the debugger
(though cider-eval-buffer
should still work even in read-only mode?)
@tanzoniteblack Thx! Neither of those work for meā¦. If it works for you tho it must be something in my local setup. I can dig deeper. Wasnāt sure if there was some other func that I was not seeing
let me double check, I told you that working off memory
yep, that's working for me running CIDER 0.17.0 (AndalucĆa)
with cider loading the cider-nrepl into lein for me (i.e. I'm not manually specifying the additional libraries anywhere)
Alright, Iāll debug locally. At least now I know that I should be able to turn off the debugger on read-only file. Appreciate the help!
thanks for the tip. I was already using 1.8. However this morning I came back to this issue and found a small typo in my project.clj... the typo didn't cause any build errors, but correcting it resolved this issue.