Fork me on GitHub
#cider
<
2017-01-11
>
jfntn00:01:36

Is it possible to integrate clojure’s java code in Cider?

jfntn00:01:43

Symbol lookups and javadoc do not work for anything in clojure.lang.*

stuartrexking05:01:43

Is it possible to run clojurescript tests using cider? I’m getting ‘cider-test-run-test’ doesn’t support ClojureScript. What is the suggested way of doing this?

qqq05:01:22

I never quite understood cljs repl; so these days, I try to write as much as possible in *.cljc files, and my *cljs files are just bindings to dom / reagent / re-frame

qqq05:01:40

so even client side application logic is in .cljc, only client side dom interacting part is in .cljs

qqq05:01:48

and this lets me clojure-test client side logic

agile_geek08:01:44

@qqq another advantage of using that approach is that enforces separation of rendering from state management and side effect-y fn's plus it's much easier to go isomorphic and render serverside if you need to.

benedek09:01:28

@andrea.crotti this seems to be coming from refactor-nrepl rather than cider

qqq09:01:39

@agile_geek: agreed completely; for reasons I can't quite explain, forcing myself to write as much cljc as possible makes the code cleaner somehow

benedek09:01:42

what is your clj-refactor and refactor-nrepl versions?

andrea.crotti09:01:46

yes @benedek but from my understanding cider takes care of installing everything itself right?

andrea.crotti09:01:12

ah wait sorry you mean the emacs package version

benedek09:01:13

not exactly. everything takes care of itself 😉

benedek09:01:33

so clj-refactor should take care of installing the right version of refactor-nrepl

benedek09:01:54

and cider takes care of pulling in cider-nrepl

andrea.crotti09:01:59

Installed in ‘clj-refactor-20161223.1457

benedek09:01:27

can you run M-x cljr-version pls

andrea.crotti09:01:07

clj-refactor 2.3.0-SNAPSHOT (package: 20161223.1457), refactor-nrepl is unreachable

andrea.crotti09:01:12

ah that's the problem

benedek09:01:15

i guess you don’t have a REPL so no info on refactor-nrepl

andrea.crotti09:01:48

I can try to add it to .lein/profiles.clj

benedek09:01:52

i would check your java version (1) and perhaps remove refactor-nrepl dir from your maven repo so it gets pulled again from clojars (2)

andrea.crotti09:01:55

but it should not be necessary in theory right?

benedek09:01:00

there seems to be something wrong with your refactor-nrepl

andrea.crotti09:01:04

retrieving it now Retrieving refactor-nrepl/refactor-nrepl/2.3.0-SNAPSHOT/refactor-nrepl-2.3.0-20161231.143143-11.pom from clojars Retrieving refactor-nrepl/refactor-nrepl/2.3.0-SNAPSHOT/refactor-nrepl-2.3.0-20161231.143143-11.jar from clojars

andrea.crotti09:01:11

but I think I had the same version also before

benedek09:01:24

yeah that is the one i have. and REPL is ok for me

andrea.crotti09:01:37

same problem, uhm

andrea.crotti09:01:20

if I actually open the Jar file I can find the wrap-refactor function there

andrea.crotti09:01:28

so the package is fine I guess

andrea.crotti09:01:48

I can try to disable the refactor bit

andrea.crotti09:01:56

even if I don't see an option to disbale it

benedek09:01:16

you can disable the autoinjection

benedek09:01:18

so you get an repl

benedek09:01:27

clj-refactor won’t be fully functional

benedek09:01:54

java.lang.ClassNotFoundException: sun.misc.Launcher this is the underlying problem i think...

andrea.crotti09:01:00

java -version openjdk version "9-internal" OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src) OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, mixed mode)

andrea.crotti09:01:04

actually my Java is too new?

benedek09:01:26

try downgrade

benedek09:01:20

so yeah perhaps try to downgrade

andrea.crotti09:01:53

ah yes that fixed it

andrea.crotti09:01:45

didn't realize I wa so bleeding edge 'D

andrea.crotti09:01:52

and the error was quite confusing

benedek09:01:02

coolio! we check for too low java versions but perhaps we should check for too high as well 😉

andrea.crotti09:01:43

yeah specially since the error is not really clear

dottedmag23:01:27

Is this library still used in cider-nrepl? It hadn't seen a commit in 2 years.

richiardiandrea23:01:03

@dottedmag yes it should still be in use