Fork me on GitHub
#hoplon
<
2016-08-12
>
eric.shao12:08:01

Sorry to bother. May I ask 2 question about "boot generate war?” 1. In "micha/boot-war-example/" where are the war and xml generated? Is this example project still work? 2. I use "lein new hoplon-castra my-project-name”.And the “” doesn’t work.How can I fix it?[I already input the right (web :serve ‘my-project-name.handler/app)]

eric.shao12:08:04

How do u usually deploy hoplon/castra in Centos7?

eric.shao12:08:31

I want to install a Jetty and put war in it.

eric.shao12:08:21

about question1. First I added (target :dir #{"target”}) ,then I get a lot of jars and a war and a “WEB-INF/web.xml”,then I copy the project.war and the "web.xml->project.xml” to the Jetty webapps directory and demo-base/webapps directory, and restart the jetty .When I enter "localhost:8080/project” still report 404. Can someone help me ? Thanks.

micha16:08:40

@eric.shao: have you seen the boot war task?

micha16:08:50

that plus the web task should get you going

micha17:08:24

boot web --serve my-project-name.handler/app war

laforge4918:08:51

@flyboarder: I'm using powershell in windows 10 now and boot show -p still displays those useless ?. Something I need to configure perhaps?

flyboarder18:08:48

@laforge49: could you humour me and try it in Powershell ISE?

flyboarder18:08:27

It’s the powershell ide on windows

laforge4918:08:42

how do I invoke it?

flyboarder18:08:44

it’s in the start menu

flyboarder18:08:55

Powershell ISE

laforge4918:08:41

But I can change the font!

flyboarder18:08:55

Hmmm I wonder if this is an issue because it’s an external application, powershell itself has unicode support via WPF but i wonder if that doesnt work for external applications, otherwise it uses the windows system buffer which doesnt support unicode

flyboarder18:08:11

cmd doesnt support unicode at all as it uses the old buffer as well

flyboarder18:08:01

I assume this will require a non-system shell to function properly, powershell probably needs a .net app for it to work correctly

laforge4918:08:11

switching to lucida unicode didn't help

flyboarder18:08:31

yeah it’s a system library issue not an application issue

laforge4918:08:17

They have been anti-unix dev for such a long time.

micha18:08:29

so when will we be able to use unicode?

flyboarder18:08:36

@micha when your in .net

micha18:08:42

so never then

flyboarder18:08:53

no dont say that! move boot to clr 😛

flyboarder18:08:10

that would fix it tho imho

laforge4918:08:45

any way to run boot commands from cursive? 🙂

flyboarder18:08:39

@laforge49: what about linux on windows? this bash on ubuntu on windows looks pretty slick and it’s a windows feature

flyboarder18:08:28

windows-linux subsystem

laforge4918:08:29

In general I avoid linux unless I can get someone to be my admin.

laforge4918:08:59

But that is no longer in my budget.

flyboarder18:08:05

It looks like ms is finally making the modular OS move, now with containers and nano

micha18:08:08

i'll push an update that removes unicode output when colors are disabled

micha18:08:15

an update to boot

micha18:08:31

or just get rid of unicode completely

laforge4918:08:47

that'd be great. And I might not be the only windows dev out there.

micha18:08:05

it's a bummer because those symbols are very helpful

shaun-mahood18:08:05

@laforge49: Nope. It's one of the things that has held me back from diving into hoplon and boot

micha18:08:24

showing dependency conflicts is not easy

micha18:08:45

having clear symbols is huge

laforge4918:08:51

Well, we've got most window/boot issues taken care of.

micha18:08:03

whereas there is nothing in ascii that expresses the same thing as ckeckmark and x

micha18:08:41

doesn't make things clear to me

laforge4918:08:49

a key code comment in show-p help?

micha18:08:58

yeah you can write prose

micha18:08:05

but it's not the same as a powerful diagram

flyboarder18:08:38

like really we shouldnt need to educate people on how this simple list works

flyboarder18:08:13

is there maybe a way to use -vv to print a text equivalent ?

flyboarder18:08:25

which could be sent to a file?

flyboarder18:08:54

boot -vv show -p > conflicts.txt

micha18:08:26

i guess the edn format will be the final solution

micha18:08:48

then it just prints EDN data

micha18:08:57

and you can format it as you wish

micha18:08:20

does anyone know of a troff viewer in windows?

micha18:08:42

like a thing that can show troff man pages in the windows console

flyboarder18:08:19

@laforge49: im giving the bash thing a try right now, ill let you know how it goes

laforge4918:08:57

I've got git bash on my system. I'll try that.

flyboarder18:08:05

mingw32? that should work it has unicode i think

laforge4918:08:51

mm. boot: command not found.

laforge4918:08:36

the bash provided when you install git. I assume cygwin.

flyboarder18:08:16

yeah there are a few different forks of that with different levels of compatibility now

flyboarder18:08:09

lol my windows vm has been suspended for weeks XD

laforge4918:08:15

mingw32 if that helps

flyboarder18:08:16

crashing all the things

flyboarder18:08:42

i guess time travel doesn't work

laforge4918:08:10

Having such fun. I made a change to ws-simple's build.boot and it stopped working. Undid and it still does not work.

flyboarder18:08:33

hahaha cache poison?

laforge4918:08:01

even tried a different copy and it died. changed browsers and it worked.

laforge4918:08:25

Got an easy fix?

laforge4919:08:11

I cleared the chrome cache. works.

laforge4919:08:20

It is interesting. I get that module undefined bug when I switch to the latest clojurescript. So at least I know who the guilty party is now.

laforge4919:08:02

and the server gives this:

flyboarder19:08:21

yeah i need to hard reset chrome cache every few days

laforge4919:08:55

Have a question about conflict resolution...

laforge4919:08:04

I get this from a show -p:

laforge4919:08:19

[!] ring/ring-core ? 1.6.0-beta4 compojure ? 1.5.0 ring/ring-defaults

laforge4919:08:31

So then I added this to my dependencies:

laforge4919:08:47

[ring/ring-core "1.6.0-beta4"]

laforge4919:08:14

I got no change in the output of show -p. But I added it to the end of my dependencies.

laforge4919:08:19

Adding it to the beginning of my dependency list in build.boot made no difference.

micha19:08:37

you can use boot show -d to see which ones were selected

micha19:08:53

those ? things that should be check marks will be the ones you see in show -d

laforge4919:08:54

But why would it stay !

laforge4919:08:08

I thought ! was bad

micha19:08:25

the ! means you didn't choose a version by adding it to your :dependencies

laforge4919:08:35

but I just did

micha19:08:36

and maven chose something its own weird way

micha19:08:06

beginning or end shouldn't matter

laforge4919:08:19

correct. it stays a !

micha19:08:33

but it should be a [?] for you now, not a [!]

laforge4919:08:56

that's what I was thinking.

laforge4919:08:20

working on the wrong copy! 😞 😄

laforge4919:08:00

ac apparently does not negate heat stress.

micha19:08:24

compare to the other image i posted

micha19:08:53

see how riddley became a [✔] when it was a [!] before

micha19:08:38

does that ^^ show up as a check or a question mark for you, by the way?

laforge4919:08:51

got it working by doing show in the correct directory.

micha19:08:01

ah okay 🙂

flyboarder19:08:59

@laforge49: ubuntu on windows takes a long time to get up and running FYI

laforge4919:08:27

I really need to learn containers.

flyboarder19:08:45

you need to be on insider preview and upgrading your os to that will take a bit

laforge4919:08:52

But first I want to become a clojurescript web dev of a sort. (Never learned js)

flyboarder19:08:02

windows containers are bomb

flyboarder19:08:20

no like awesome 🙂

laforge4919:08:29

I thought so

flyboarder19:08:07

they finally figured out that people want to control what is in their os

laforge4919:08:40

I'm working through all the ! from show -p

laforge4919:08:02

Can I assume that all the ? are checks and not x's if it works?

micha19:08:22

the x's are also unicode groovy x's

flyboarder19:08:33

30min download time for a windows update…

laforge4919:08:10

so you can have x's even if it works. Perhaps because not everything gets tested.

micha19:08:42

the x's mark the conflicting versions that are not chosen to be incorporated into the project

micha19:08:51

the checks mark the ones that were selected

laforge4919:08:00

so the module then is simply not included you are saying. while checks mean resolved manually and included and ! means resolved by maven and included. Hmm?

laforge4919:08:15

I just forced the latest version for each ! conflict and everything still works in ws-simple.

laforge4919:08:25

Here's what I added:

flyboarder21:08:09

still waiting on the bash on ubuntu on windows install

flyboarder21:08:03

@laforge49: so the linux subsystem is just like running a linux container you need to install the linux version of things so im sure once i get java working boot will work also

flyboarder21:08:39

like wow iv been at this for hours 😂

flyboarder22:08:29

so it would seem boot just hangs within the ubuntu container

micha22:08:38

could be a networking issue

micha22:08:45

trying to download something

flyboarder22:08:32

yeah i think you might be right

flyboarder22:08:53

it needs more exploring for sure

laforge4923:08:08

In reviewing what I did today, I got the latest version of everything working together except for clojurescript.

laforge4923:08:52

My wag is that hoplon does not work with the latest version of clojurescript. And I suspect this is a recent development.

flyboarder23:08:45

It’s probably a bug in the alpha version of clojurescript

flyboarder23:08:53

or do you mean [org.clojure/clojurescript "1.9.198"]

laforge4923:08:00

198. Do you have hoplon code that works with that?

laforge4923:08:30

I was using 193 in error!

laforge4923:08:42

(I need new eyes)

laforge4923:08:11

yes, that was my problem

laforge4923:08:22

To think I wasted a day on that! But hey, I learned stuff about dependencies. (glass half full)

flyboarder23:08:44

and we learned something about unicode support on windows

laforge4923:08:17

yeah, I went from 1.9.93 to 1.9.193 in error.

laforge4923:08:40

everything works really great now. with the latest version of everything!

laforge4923:08:07

Now why do I bother updating the dependencies on a demo? I just think having demos with the latest possible dependencies adds a lot of value.

flyboarder23:08:14

Can we put together a compatibility table in the wiki? that might be good so people have a reference of clj/cljs versions

flyboarder23:08:06

it doesnt need to be huge just a checklist

laforge4923:08:09

I can only say that I have these working together:

laforge4923:08:10

[org.clojure/clojure "1.9.0-alpha10"] [org.clojure/clojurescript "1.9.198"]

flyboarder23:08:44

what version are you using for boot-cljs?

flyboarder23:08:52

i think that also matters

laforge4923:08:54

I generally just grab the latest of both and have not had any problems until this 193 thing.

flyboarder23:08:33

so no breaking changes for boot-cljs since 1.7.228? thats impressive!

laforge4923:08:38

[adzerk/boot-cljs "1.7.228-1"]

laforge4923:08:31

Yeah, despite everything clojure generally just works. 😄

micha23:08:00

clojure and clojurescript are pretty different

micha23:08:12

cljs is not as stable as clojure

micha23:08:21

that's why i don't generally use the latest version of it

micha23:08:51

the only thing you get is headaches

laforge4923:08:55

but with this specs thing, it is important, hmm?

micha23:08:11

you should be able to use clojure.spec separately as a library

micha23:08:24

it's not built into clojure or anything

micha23:08:29

it's like core.async

micha23:08:40

as i understand it spec is a library

micha23:08:55

you add it to your dependencies

micha23:08:01

and require the namespace whatever