Fork me on GitHub
#boot
<
2015-08-26
>
xifi12:08:19

I have numerous issues with boot on windows. I had this weird error that I discussed here 2 days ago saying character to be escaped missing with an IllegalArgumentException. The same thing works on an archlinux box but not on the win7 one. So I went ahead and tried to strip the code down in the files which resulted in another set of errors stating boot cannot delete some temp files. I created a minimal example here - https://github.com/xificurC/boot-windows And running boot cljs results in this - https://www.refheap.com/108755 Any tips welcome and @micha let me know if I should file an issue on GH

micha12:08:06

@xifi: there are known issues with deleting temp files on windows

micha12:08:33

the problem is that windows won't allow a file to be deleted if any process has an open filehandle to it

micha12:08:36

unlike unix

micha12:08:22

and it's common for java programmers to open InputStreams and not close them, because they get closed automatically when they go out of scope and the garbge collector runs their finalization code

xifi12:08:25

who is holding a handle on a just created temp file

micha12:08:38

clojure does when it compiles a namespace for example

micha12:08:45

but it's common practice

micha12:08:09

there is a thing in JIRA about it, linked from the series of issues in the boot github

micha12:08:39

the only solution would be to find some hack to force GC

micha12:08:52

but the only hack i know of takes about 500ms

xifi12:08:18

how come I can delete the whole directory manually though

micha12:08:42

because i guess GC happened before you could type it

xifi12:08:09

well the java process ended by then

micha12:08:17

windows 10 reportedly doesn't have this process

micha12:08:26

s/process/problem/

micha12:08:52

yeah all input streams are closed when the proecss ends of course

xifi12:08:05

so you're saying I won't be able to use boot on win7?

micha12:08:16

we need a windows Hero

xifi12:08:32

well don't look at me 😄

xifi12:08:37

I'd burn the damn thing

micha12:08:48

neither alan nor i use windows, so it's difficult

micha12:08:00

what about docker?

xifi12:08:04

I (have to) use it at work

micha12:08:06

docker works on windows right?

micha12:08:32

that's something i'd try if i was stuck with windows

micha12:08:46

that's what i do when i have to use a mac, too simple_smile

micha12:08:11

we have a docker image available you can try

xifi12:08:58

a quick search shows it does, but I never used it so I'd need to dig into it

xifi12:08:12

apparently it installs a virtualbox VM along with some more stuff

micha12:08:38

it gives you a sane minimal unix environment in which to run itself

micha12:08:59

but you can use the one liner from the blog post to get a boot repl to see if it works

xifi12:08:05

more setup, sigh. Also, I'm running into a dangerous area, we have restrictions on what we can install on our machines here. Although for dev purposes I think I'm fine

micha12:08:32

yeah i can imagine how terrifying docker is to a windows admin

micha12:08:41

who knows what incomprehensible things you might do

xifi12:08:06

silly question: if I create an app with this setup and uberjar it will it run on windows?

xifi12:08:16

are the issues related to boot only?

micha12:08:34

yeah it has to do with how boot manages the working files

micha12:08:05

boot needs to be able to create files and hard links and move them around as it needs to

micha12:08:14

but you program doesn't have to do that

xifi12:08:34

oh dear, I have to run a Hardware-Assisted Virtualization Detection Tool

xifi12:08:47

last time I played around with the settings of this notebook I almost nuked it simple_smile

xifi12:08:13

the tech support was scratching their heads for 30 minutes simple_smile

xifi13:08:10

since I already have VirtualBox I can just setup my own linux VM and work from there

xifi13:08:37

thanks @micha, I was hoping I wouldn't need to use a VM but oh well simple_smile

micha13:08:54

if you can get docker going it's a pretty nice way to go

micha13:08:00

it feels like a normal application

micha13:08:11

lightweight

xifi13:08:22

one more recurring question

xifi13:08:38

any timeline on some nice hoplon docs/wiki?

xifi13:08:19

yeah the app is lightweight but the VM itself adds a nice overhead

micha13:08:38

this weekend i hope to work on the transition to the new organization and reorg the repos

micha13:08:47

maybe get a new hoplon website up

micha13:08:13

basically setting things up for everyone to contribute to the wiki and docs as they wish

micha13:08:28

from there we should see the pace pick up

xifi13:08:34

you're saying everyone, is there a big userbase?

xifi13:08:00

I thought it's gonna be mainly you or Alan that whips out the wiki

micha13:08:10

yeah there are quite a few people using it in production

xifi13:08:42

I hope they'll be generous regarding documentation

micha13:08:47

it's flying under the radar, people just use it and don't blog about it

micha13:08:57

which is i think pretty awesome

micha13:08:11

work getting done

xifi13:08:19

why is it awesome when the word is not being spread?

xifi13:08:37

or you meant that people use it in prod

micha13:08:24

i think that makes for a solid base, real-world stuff

xifi13:08:07

all I hear is react here react there

micha13:08:20

haha yeah

xifi13:08:50

@alandipert said a couple days ago he thinks hoplon is better and will outlive react. Those are strong words simple_smile

micha13:08:34

i agree with him simple_smile

micha13:08:04

the hoplon philosophy is more like elm-lang than anything else

micha13:08:34

technically i would say that it's a web components implementation

micha13:08:15

but imo better than the google concept of web components

micha13:08:48

and of course immutable yadda dataflow yadda yadda

xifi13:08:27

@micha: by the way I'd suggest changing the README on github for windows. If it's broken I'd rather see a statement like you just did, use docker or a VM. I myself lost a day trying to figure out what's causing the issues

micha13:08:14

a link to the wiki page is probably the thing there

micha13:08:26

we have a wiki page for windows

donmullen14:08:15

@micha: Been a while since I looked at latest hoplon/boot2 — is there a story around load time for use in hybrid mobile apps?

donmullen14:08:41

Probably best answered in the #C08BDAPRA channel….

pleasetrythisathome18:08:04

hey everyone. is anyone using circleci?

pleasetrythisathome18:08:14

i've yet to be able to get dependency caching to work

pleasetrythisathome18:08:24

and it would massively speed up my builds and make me super happy

pleasetrythisathome18:08:43

oh i think i might have figured it out

juhoteperi19:08:23

CircleCI should cache ~/.m2 by default

pleasetrythisathome19:08:35

i just noticed that the cache is saved before the test command is run

pleasetrythisathome19:08:48

so i added a call to boot show -d

pleasetrythisathome19:08:52

in the dependencies section

pleasetrythisathome19:08:59

which i think should fix things

martinklepsch19:08:25

@pleasetrythisathome: you might need to list manually in cache_dirs

pleasetrythisathome19:08:11

will let you know it works, running now

juhoteperi21:08:37

@martinklepsch: Nope, m2 is automatically in cache_dirs