Fork me on GitHub
#cursive
<
2017-01-17
>
ricroberts09:01:35

Hi. Will do.

karol.adamiec09:01:41

hi, how can i set up cursive repl to start lein ring server-headless? i would like to have one jvm process consuming memory not two like at the moement. i tried to put arg into Edit Configuration:->Common options:->Parameters: ring server-headless 8000 but restarting the repl seems not to start a server on 8000…. Am i missing something?

cfleming11:01:55

A few people have asked about getting the Cursive website onto a CDN. As a result of a power outage taking out my server for 6 hours or so yesterday, I did an emergency migration to AWS/CloudFront. I’ve been meaning to do it for a while and I was hoping to do it in a more relaxed fashion, but it should be done now - DNS is currently propagating.

cfleming11:01:27

I have some more loose ends to tie up tomorrow (mostly redirects from other domains) but the main site should be good and fast from everywhere.

reefersleep11:01:58

Is it a known problem that you cannot add dots when refactoring namespaces? I get x.y is not a valid identifier when I try to refactor the name of a namespace from y to x.y

reefersleep11:01:12

Or is there something I'm missing 🙂

manutter5112:01:22

The dot implies that you’ve created a subdirectory x and moved y into it. The refactoring tool doesn’t seem to handle moving the file and/or creating the subdirectory, so that would explain why the dot is disallowed.

karol.adamiec16:01:43

hi, how can i set up cursive repl to start lein ring server-headless? i would like to have one jvm process consuming memory not two like at the moement. i tried to put arg into Edit Configuration:->Common options:->Parameters: ring server-headless 8000 but restarting the repl seems not to start a server on 8000…. Am i missing something?

manutter5116:01:34

@karol.adamiec I do it the other way around: I start the ring server first, and then set up a Remote REPL to connect to the server

karol.adamiec16:01:59

well that would work for me as well

karol.adamiec16:01:46

how do i start a remote repl ? lein ring server-headless seems to not expose nrepl?

karol.adamiec16:01:19

do you have incantation at hand?

manutter5116:01:53

hmm, I think it’s built in to the luminus template I use, let me see if I can scare it up in the source

manutter5116:01:35

Getting some good hits searching for “repl”, but I gotta run. Maybe do “lein new luminus ring-repl” plus whatever options you want to enable? Shouldn’t be too hard to pull the remote repl settings out of that

karol.adamiec16:01:00

thx, i found that you have to pass :nrepl key to lein ring server

karol.adamiec16:01:05

should work out now 🙂

narek19:01:21

It looks like the unused binding highlighting is not working for me, has anyone seen this?

cfleming21:01:52

@narek Check if the inspection is turned on, Settings-&gt;Editor-&gt;Inspections-&gt;Clojure

cfleming23:01:17

@dragoncube Yeah, that’ll be my backup plan