Fork me on GitHub
#cursive
<
2016-08-30
>
moizsj14:08:11

I dont see the "Run"/"Debug" green button when i created a new project. What could I be doing wrong?

moizsj14:08:23

I see it for projects created outside cursive.

vikeri15:08:34

Has anyone gotten boot-cljs-repl working with Cursive?

vikeri15:08:09

I have the following config:

(cljs-repl :ws-host "localhost"
               :port 9001
               :ip "0.0.0.0”)

vikeri15:08:42

And I try to connect in Cursive through an nREPL at port 9001 and tried both localhost and 0.0.0.0 as IP.

vikeri15:08:11

It works in Cider and Fireplace...

juhoteperi15:08:57

@vikeri 9001 is the WS server port, not nrepl port

vikeri15:08:10

@juhoteperi Alright, how can I get the nREPL port?

juhoteperi15:08:27

It should be printed on when starting the repl

juhoteperi15:08:18

you can set it by passing nrepl-opts map to cljs-repl

juhoteperi15:08:33

and you can see the available options by checking repl task help

vikeri15:08:36

@juhoteperi: Sweet! Do you want a PR with Cursive instructions in boot-cljs-repl readme?

joe.koza19:08:59

Question regarding using Cursive offline... Is it possible and expected that Cursive should work offline? When trying to open a clojure project, Cursive tries to download the standalone leiningen jar (leiningen-x.x.x-standalone.zip) from github. Since I am offline, it naturally fails out with an IOException because it can't reach github.

joe.koza19:08:56

If I download the jar separately and copy it to a location where Cursive is looking for it, I would hope that is a workaround. However, I have no idea where Cursive is looking for the lein standalone... I do have leiningen working in the typical way outside of Cursive using the shell script with the .lein folder in my user space....

joe.koza21:08:30

My mistake. Looks like I was running IntelliJ as a different user, and that user did not have leiningen set up. Starting IntelliJ as the proper user and everything works just fine. My apologies!

cfleming21:08:41

@joe.koza: For reference, Cursive will get lein from the same place as lein itself: ~/.lein/self-installs. If you want to use it offline, just make sure that you’re telling Cursive to use a version which is already downloaded in that dir (Settings-&gt;Build, Execution, Deployment-&gt;Build Tools-&gt;Leiningen-&gt;Project Settings).

cfleming21:08:34

@moizsj That’s very strange. If you go to Run-&gt;Edit Configurations... can you set one up there?