This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-23
Channels
- # admin-announcements (6)
- # aleph (3)
- # beginners (38)
- # boot (119)
- # braid-chat (15)
- # braveandtrue (1)
- # clara (4)
- # cljs-dev (56)
- # cljsfiddle (12)
- # cljsjs (15)
- # cljsrn (6)
- # clojars (4)
- # clojure (113)
- # clojure-art (1)
- # clojure-berlin (1)
- # clojure-dusseldorf (3)
- # clojure-india (15)
- # clojure-new-zealand (3)
- # clojure-poland (1)
- # clojure-russia (83)
- # clojure-uk (18)
- # clojurescript (97)
- # community-development (9)
- # cursive (1)
- # data-science (1)
- # datomic (12)
- # emacs (14)
- # hoplon (350)
- # immutant (2)
- # jobs (2)
- # jobs-discuss (23)
- # keechma (74)
- # liberator (1)
- # off-topic (1)
- # om (127)
- # onyx (54)
- # parinfer (74)
- # pedestal (1)
- # proton (5)
- # re-frame (6)
- # reagent (4)
- # remote-jobs (17)
- # ring-swagger (1)
- # slack-help (5)
- # untangled (16)
- # yada (21)
@danielsz: Might you anyway try to rename ~/.m2
?
@andrewboltachev: I could, but it is wise to do that?
To try just on one project
@andrewboltachev: OK then, here I go.
@danielsz: Did it help?
Sure. And it's size should be good too. In the meantime you might learn about ~/.m2
@micha: So, isn't it (likely) ~/.m2
which is wrong?
but is worse, sure 😄
this is for the case where there are different maven repositories that have the same coordinate but the actual jar is different
Did lein install
or some other "local" operation likely broke it?
Interesting
then in a different project you depend on foo/bar:1.2 but you don't have A in your set of repositories
So it weren't wise to rename ~/.m2
This is all useful. @tcrawley just said in the Clojure channel that I'm hitting a Clojars issue
Is it Java's "directory watch service" that backends Boot's watch
task?
I were using Boot as a tool to do TDD (or other hacking, really) in Clojure: I have own script to bootstrap the new project, where I would be able to call "boot dev", and then make changes to core.clj
and other files, and what were in main
fn would be executing. There's how: https://github.com/andrewboltachev/clojure-tdd-example/blob/master/build.boot#L45
Sometimes I were hearing it speak
ing twice. And I'm confused why.
The thing now is that I've played with WatchSerivce and now using it successfully enough in my one project. I noticed that vim
sends series of events when saving files, while e.g. gedit
does so, but for temporary file. Solution that I've found is this: http://dpaste.com/01MZ82K
Are you doing suchlike thing in Boot or might consider to do (to prevent "double operation")?
I've seen that, yes
So... it would be the same effect?
i.e. when new event would appear, it will wait 10ms again for the next?
it doesn't actually trigger any handlers until the polling timeout (10ms) is reached without anything new being put on the queue
well, queue... is that Java object?
So LinkedBlockingQueue
yes
just above
so queue is something of "organizational" nature, not about watching files for changes?
(sorry, I were away) yes
Btw, as I see it now...
it would be crazy enough for Boot to do it on core.async
blocks
i.e. much harder for users to make own tasks
uhm, don't know, the only thing is that it used to speak
more than once
now speak
is sometimes slient on success
only on fail it produces sound
or on first success after fail
the speak task continues with the pipeline before the sound is actually finished playing
well, I have it watch
ing
so nothing like exit is here
https://github.com/andrewboltachev/clojure-tdd-example/blob/master/build.boot#L45
where main
might me as easy as "Hello, world!"
when I change it to "Hello, Andrew!" I expect it to (1) make (exactly one) sound of success and (2) to print out the message and "Elapsed time" etc
It used to speak twice. I suppose that 'cause of big files
ah, didn't try yet
well, I were thinking you'll get idea of my core.async
version
it were actually first time me drawing time diagrams for programming
while designing it
so, anyway, what's source of FS events? it's just polling it, right?
i.e. no event source
and again, I just wanted to learn about your solution to suchlike probem, and these little issues — I don't know if they're important
'cause it's so exciting to learn others solutions
one bad thing about me is that I used to hang on Hoplon channels for long time, but switched to Om now 😕
the event source is the fsevents API, via the java watchservice for windows and linux, and via a 3rd party implementation for OSX
this is where the watching is started: https://github.com/boot-clj/boot/blob/master/boot/core/src/boot/core.clj#L150-L164
great thanks! I didn't even see that code yet (while hacking into Boot a bit). I'll review that later then. Time to go now...
hallo hi hey--is there a way to add a directory to the resource path and have it not be watched on changes
@johanatan: no, not really
node_modules
😛
ah right, I was reading it as "and have no watchers on those dirs"