Fork me on GitHub
#clojure-uk
<
2016-06-23
>
thomas07:06:23

and a small request, please vote today, as I can’t. And I would love to stay here!

paulspencerwilliams08:06:24

@thomas: granted, but it doesn’t help as I was going to vote remain anyhow!

thomas08:06:13

and fingers crossed

paulspencerwilliams08:06:38

@thomas: yes, I'm, really not sure what is going to happen. I fear the worst, so there's absolutely no way I'm not voting.

thomas08:06:05

yes all the uncertainty is not good… and even though there are very voting ballots saying that Thomas should leave the country it does feel a bit like that…

thomas08:06:30

and judging from several articles in the news papers I am not the only one feeling like that.

otfrom08:06:29

thomas: voted for you (and other friends) to stay

yogidevbear08:06:17

@thomas if it helps settle your nerves a little, my wife drove in to London the other day and there were people on the side of the road holding signs saying something like "Honk to support leave" and the cars driving past were very quiet 🙂 Fingers crossed

yogidevbear08:06:39

And my vote will be cast a little later today

thomas08:06:41

thank you all

stathissideris10:06:02

hello @benedek - with mranderson, what’s the workflow for starting a repl and having access to the source dependencies? Do I have to add them as normal deps in the :dev profile? Do I have to change the source path and also change my requires in my code?

stathissideris10:06:39

or maybe this is enough? lein with-profile +plugin.mranderson/config repl

benedek10:06:03

Yup lein with-profile +plugin.mranderson/config repl

benedek10:06:20

Should the trick

benedek10:06:04

After lein source-deps

stathissideris10:06:17

but I can no longer say (:require [clojure.core.async :as async]) it has to be (:require [mranderson047.coreasync.v0v2v385.clojure.core.async]) correct?

benedek10:06:23

In that repl. yes, true

stathissideris10:06:32

but what about the source of my project? it also has to point to the munged namespace, right?

stathissideris10:06:53

is there an example project that uses mranderson?

stathissideris10:06:36

I guess refactor-nrepl is using it

stathissideris10:06:18

hm, it seems that the source of refactor-nrepl contains “normal” requires such as [org.httpkit.client :as http]

stathissideris10:06:45

I guess what I’m saying is: is it possible to start a repl in a project that uses mranderson and source deps and compile a namespace with “normal” includes and generally do the normal repl-driven development transparently?

benedek11:06:15

And cider-nrepl as well

benedek11:06:40

Mranderson munges your source too

benedek11:06:22

If you want work with ur source modify it under target/srcdeps

benedek11:06:56

and reload it from there into ur mranderson repl

stathissideris11:06:13

@benedek: modifying my code under target/srcdeps may be a problem because I would then have to copy the changes back to src/

stathissideris11:06:56

maybe I could add my source dependencies to the :dev profile in project.clj

stathissideris11:06:10

so that they are loaded as normal deps for repl-driven development

stathissideris11:06:20

and treated as source-deps when packaging

benedek11:06:15

well tbh mramderson is a build time/packaging thing

benedek11:06:04

You can run tests/repl with mranderson so you can make sure everything works with the munged sources

benedek11:06:29

But essentially you meant to run mranderson when packaging

stathissideris11:06:57

@benedek: ok, thanks, I’ll figure out a workflow that works for me 🙂

stathissideris12:06:09

@benedek: If I put :source-paths ["src" "dev”] in my :dev profile, mranderson does not copy/munge my src files to target. If I remove the :source-paths setting completely, it does. Bug?

benedek12:06:36

You mean does not and does?

stathissideris12:06:20

yeah, sorry, edited

benedek12:06:50

Very likely. Src might be just hardcoded in mranderson. Shame on me...

benedek12:06:47

Why do you need a source inlined repl btw?

benedek12:06:45

Also there is dolly which is very diff approach but puts the inlined deps together with ur source

benedek12:06:08

Eastwood uses it

stathissideris12:06:31

I don’t, I’m just trying to figure out how to work with mranderson. I tagged a few deps as source-deps, and when I tried to jack-in and load my namespaces, (:require) failed

stathissideris12:06:53

almost like source deps stopped being normal deps

benedek12:06:16

you should be able to use normal repl wo any probs

benedek12:06:56

Deps wont be inlined at repl time but that is ok

benedek12:06:41

try lein CLEAN and then jack in?

stathissideris12:06:47

ok let me try again

stathissideris12:06:27

yeah that worked 🙂 I think I was confused with all the different things I’m trying

benedek12:06:53

No worries. Then you can do the mranderson thing at package time

stathissideris12:06:56

so that’s good, but maybe source-paths handling is broken

benedek12:06:11

That is very likely

benedek12:06:05

Check out build.SH in refactor-nrepl or cider-nrepl to see how the packaging is done

stathissideris12:06:57

the other thing that also seems to break if I remove source-paths is this: a dependency (datascript) defines a record in one namespace and then tries to :import it from another namespace. lein with-profile +plugin.mranderson/config test fails with a ClassNotFoundException

benedek12:06:26

Care to file a bugreport about this one?

stathissideris12:06:37

@benedek: sure, I’ll raise both with details 🙂

stathissideris12:06:02

@benedek: can’t reproduce the source-paths problem, but here’s the one about records: https://github.com/benedekfazekas/mranderson/issues/14

benedek12:06:06

Coolio. Ta

thomas13:06:29

Thank you very much indeed @yogidevbear

yogidevbear13:06:59

Now lets hope the rest of the country sees sense 😉

glenjamin13:06:42

The bookies are usually on the money with these things, and they’re saying in

glenjamin13:06:44

I hope they’re right

seancorfield17:06:32

My father voted "leave" (and he’s very proud of that). I think my mother and her current hubby voted "remain" but they haven’t yet confirmed that. Over here in the US, we are watching and waiting with bated breath for the results tonight (late Pacific time).

otfrom17:06:11

sigh, I always want to ask which of my friends leavers would like to kick out of the country

thomas18:06:20

I stopped asking as it made me just angry… decided I just don’t want to know. It’s almost like a trust thing.

thomas18:06:32

(and me taking it way to personal probably)