Fork me on GitHub
#cider
<
2016-04-19
>
malabarba00:04:22

You don't need tools.nrepl in your profiles.clj anymore

malabarba00:04:45

I don't know about cljx though. Maybe @bozhidar knows

rmuslimov00:04:46

@malabarba: cider-nrepl is not needed as well?

aengelberg02:04:44

Yeah, apparently I don't need any of those plugins anymore (I did a long overdue upgrade of multiple plugins last night) but tried it anyway in case something weirder was going on internally.

malabarba03:04:03

@rmuslimov: indeed. You don't need anything in your profiles.clj for a regular Jack in.

aengelberg03:04:16

Even with nothing in profiles I'm still getting the issue.

aengelberg03:04:29

Maybe I need cljx in my plugins? I'll try that when I get home

malabarba06:04:53

@aengelberg: Yes, you probably do. The point is that CIDER no longer needs you to add any plugins or dependencies. But you still need to use whichever are needed by your project.

bvulpes06:04:07

humane-test-output says it doesn't work with CIDER 10+, is this disinfo?

aengelberg06:04:19

@malabarba: The project.clj of my project does have cljx in :plugins, which is why I'm surprised it doesn't work. Putting it in my profiles.clj's :plugins might solve it anyway.

maio08:04:27

@aengelberg: today I have some time to investigate cljx issue. sometimes it works for me, sometimes not

maio08:04:24

hmm now this is strange

maio08:04:29

@aengelberg: {:repl {:dependencies []}} in ~/.lein/profiles.clj seems to fix the issue for me

aengelberg08:04:05

@maio as in specifically make sure there's an empty vector, or you're just emphasizing there are no deps?

maio08:04:41

@aengelberg: that there is an vector (doesn't matter whether empty or not)

aengelberg08:04:05

@maio: Hah! That fixed it for me too!

maio08:04:41

I suspect that update-in conj ... somehow breaks it when cider jacks in and there is nil instead of vector, but that's just wild guess

aengelberg08:04:28

my profiles.clj diff

{:user {:plugins [[lein-clojars "0.9.1"]
                    [lein-ring "0.8.10"]
                    [lein-4clj "0.1.0"]
                    [lein-try "0.4.1"]]
          :dependencies [[pjstadig/humane-test-output "0.7.0"]]
          :injections [(require 'pjstadig.humane-test-output)
                       (pjstadig.humane-test-output/activate!)]}
+  :repl {:dependencies []}
  }

maio08:04:29

@aengelberg: good, thanks for test. I'll file an issue somewhere simple_smile

aengelberg08:04:08

thanks for the help!

maio09:04:34

damn, cider-nrepl probably isn't repo I wanted to use simple_smile

xcthulhu13:04:32

I know this is a n00b question but what happened to cider-jump-immediately?

xcthulhu13:04:47

I recently upgraded from 0.11.0-SNAPSHOT and this appears to be gone šŸ˜ž

richiardiandrea14:04:23

I noticed a tiny delay when clicking on cider's buffers and it might be related to the new popup for symbols

richiardiandrea14:04:55

I have to double check and try to switch it off (I am on version .12)

richiardiandrea14:04:11

Will investigate

richiardiandrea15:04:35

I see also that nrepl-current-connection-buffer has been removed, what function can I use instead?

agile_geek16:04:54

It seems like just 4 months ago that 0.10.0 was released at #ClojureX2015....oh wait...

zentrope16:04:49

figwheel repl ā€¦ do you start figwheel normally, then jack in via Cider?

zentrope16:04:53

I get this "Figwheel: Starting server at http://localhost:3449ā€ but then C-c C-e suggests I should attach a repl (already did)!

zentrope16:04:04

The app is actually running.

malabarba16:04:15

@zentrope: cider had no way of knowing that you started the app. You need to cider-connect to it

zentrope16:04:26

^X-e, actually. ;)

zentrope16:04:46

@malabarba: I did the cider-jack-in-clojurescript. That doesn't do it?

zentrope16:04:42

Iā€™m reading two sets of docs, ciderā€™s and figwheelā€™s. Itā€™s not super clear whatā€™s up. Hm.

malabarba16:04:55

That should do it.

malabarba16:04:12

Though I don't know how good our figwheel support is right now

zentrope16:04:32

Do you start figwheel (lein figwheel whatever) first? When I do that, I get a port conflict.

malabarba16:04:32

Could you file an issue with exact instructions of what you're doing?

zentrope16:04:06

Ok. Let me struggle a bit more and see if I can shake something out.

zentrope16:04:44

Yeah, even (js/Alert ā€œhelloā€) doesnā€™t seem to invoke a response.

malabarba16:04:49

Cider Jack in Clojure script starts everything for you

malabarba16:04:12

So if you start figwheel separately you're just going to run into issues

zentrope16:04:18

Ok, good. Thatā€™s what the docs imply.

malabarba16:04:26

But there's an alternative

malabarba16:04:56

You could start figwheel separately and then call cider-connect (instead of Jack-in)

malabarba16:04:12

That will connect to the running figwheel, instead of starting a new one

zentrope16:04:15

I added nrepl port and nrepl middleware to the figwheel config (as per fig wiki) but no changed.

zentrope16:04:32

Okay, Iā€™ll try that.

zentrope16:04:13

Ah, connected, somehow, but the (js/Alert ā€œfooā€) locked up the repl, and that progress meeter REPL[ ===] is still going.

zentrope16:04:31

thereā€™s a stdin: prompt.

zentrope16:04:51

Okay, so, cider-connec to nrepl at 7888 (as per figwheelā€™s suggestion), I get an stdin: prompt in the minibuffer. If I type stuff there, things work.

zentrope17:04:46

Fixed: Appropriate middleware in the figwheel config.

zentrope17:04:09

Yeah, the jack-in version doesnā€™t ever seem to connect to a clojurescript environment.

zentrope17:04:55

Maybe it has to do with there being no Clojure code at all in this project? Huh. Anyway.

mrg17:04:49

How do I get around the "needs a clojurescript repl" issue?

mrg17:04:06

I'm jacking into a normal repl and then start a cljs repl from there

mrg17:04:11

and cider doesn't like that

zentrope17:04:15

I bet Ciderā€™s not working for me, here, because somethingā€™s messed up with Figwheel.

rmuslimov18:04:43

@zentrope: I actually have working figwheel with emacs-cider, just use figwheel-sidecar and start their command inside of it

rmuslimov18:04:06

something like (setq cider-cljs-lein-repl "(do (require 'user) (user/start-cljs) (user/repl-cljs))")

zentrope18:04:02

rmuslimov: I think I have some other problem. When I follow the instructions on the Figwheel nrepl wiki page, I canā€™t even get figwheel to read project.clj via (start-figwheel!).

rmuslimov18:04:56

hmm, weird, btw I had same problems too, because all that tutorials require to be familiar with. May be this working example may help with figwheel setup

zentrope18:04:38

Ah, youā€™re configuring it directly rather than relying on the stuff in project.clj, I see.

rmuslimov18:04:59

Just install that variable to emacs that I mentioned before and everything should works after

zentrope18:04:09

Seems like a good plan. Leave the ā€œprodā€ build in project.clj, and the hackery over in user.

rmuslimov18:04:54

@zentrope: actually, not sure about if it is really good plan, however it is enough for me now it that project

zentrope18:04:05

@rmuslimov: Thanks again. Your plan works. ;)

zentrope19:04:33

@malabarba: The issue turned out to be that I have several forms above my defproject form, and figwheel didnā€™t account for that.

malabarba19:04:03

That's good to know!

malabarba19:04:18

Might be good to report that to figwheel, maybe they're not aware.

zentrope19:04:36

Heā€™s aware. We debugged it together over on #C03S1L9DN.

nooga19:04:05

oh boy, emacs-live is killing meā€¦ I think itā€™s time for my own setup

nooga19:04:20

or at least some other maintained dotfiles

bvulpes19:04:39

nooga: get in there

bvulpes19:04:03

it's not your .emacs until it's your .emacs

nooga19:04:47

I tried updating cider within EL and itā€™s like ā€œI KINDA KNOW WAHT Iā€™M DOā€¦ NOPE, NOPE, NOPE, GIT RESET"

nooga19:04:00

and itā€™s outdated

bvulpes19:04:16

i usually delete cider and then install the new version

bvulpes19:04:18

and then restart emacs

bvulpes19:04:24

also state

nooga19:04:53

also emacs-liveā€™s .emacs.d is full of submodules

nooga19:04:03

and you get broken refs and deps everywhere

bvulpes21:04:34

> submodules

bvulpes21:04:36

that's a demerit

zentrope21:04:38

@rmuslimov: With your cljs/user.clj set up, do you have issues reloading css?

zentrope21:04:21

@rmuslimov: I see ā€œsending changed CSS fileā€ but no actual changes. Hm.

rmuslimov21:04:33

it actually donā€™t support css/other that js stuff

rmuslimov21:04:59

I guess you need extend that figwheel declaration in user.clj

zentrope21:04:11

I added :figwheel-options {:css-dirs ["resources/public/cssā€]}, but, hm.

zentrope21:04:25

Argh! And I was about to make progress! ;)

rmuslimov21:04:49

did you make it work?

zentrope21:04:26

Adding the css-dirs to the options makes it to that a ā€œloadingā€ message is displayed in the figwheel log, but thatā€™s it.

zentrope21:04:20

Oh. Hm. Not even getting a ā€œsending changedā€ message.

rmuslimov22:04:02

however, it works

rmuslimov22:04:40

changing css file, call figwheel to reload and css properly applies

zentrope22:04:58

I seem to lose it when connecting to an already running repl via emacs.

rmuslimov22:04:33

I thought you run repl from emacs

rmuslimov22:04:45

should not be a problem, btw

zentrope22:04:14

You can ā€œlein replā€ and then cider-connect. I think.

rmuslimov22:04:54

and it works same way

rmuslimov22:04:38

so, have you called start-cljs repl-cljs inside of that repl?

zentrope22:04:53

Okay. Maybe what I did was ā€œlein replā€ then ā€œstart-cljsā€ there, and THEN connected via emacs.

zentrope22:04:25

If I just do jack-cljs, it works. Or just lein repl, start, repl-cljs, it works.

zentrope22:04:31

So, some sequence error here.

zentrope22:04:36

Okay. So, something messed up somewhere, but it does indeed work.