lein-figwheel

metacritical 2018-06-03T16:09:15.000065Z

@bhauman Thanks for making the figwheel-main i was trying to bolt figwheel on cljs.main but then i saw on clojurescriptchannel about figwheel-main and it is awesome. Now i am gonna send just one link to my resume to the prospective employer.

metacritical 2018-06-03T16:23:16.000108Z

@bhauman My current barebones figwheel-main based resume in progress is like this : clj -Sdeps '{:deps {github-metacritical/cljscv {:git/url "<https://github.com/metacritical/cljscv>" :sha "6dad5bfbc29892a8c2f385b8275673863d1f6c6e"}}}' -m figwheel.main -co '{:main resume.core}' -c resume.core -r the only problem is this creates a target directory and even warns that deps.edn does not have a targetdirectory. Is there a way it would not create a targetdirectory or may be create it in /tmp or may be cleanup when we press C-c

bhauman 2018-06-03T17:21:07.000103Z

@metacritical yeah I've been thinking about this, but there's not going to be a solution anytime soon

bhauman 2018-06-03T17:21:26.000076Z

remember a .cpcache is also being created I think

bhauman 2018-06-03T17:22:11.000054Z

you can get rid of the warning by adding :paths ["src" "target"] to the Sdeps

bhauman 2018-06-03T21:38:10.000102Z

@metacritical oh I figured it out, figwheel.main -co '{:main resume.core}' -r creates a temp-directory without warnings

metacritical 2018-06-03T23:00:54.000016Z

@bhauman, thanks for the reply. It does not give warnings if target directory exists, but on a fresh invocation it does warn. Try deleting the existing target directory, it would complain and then create a targetdirectory. Can there be a flag based option say -twhich guides where to create the target directory?

bhauman 2018-06-03T23:01:51.000066Z

@metacritical are you talking about the temp target dir?

metacritical 2018-06-03T23:02:07.000089Z

@bhauman yes

bhauman 2018-06-03T23:03:04.000003Z

@metacritical are you using figwheel.main -co '{:main resume.core}' -r explicitly without the -c flag?

metacritical 2018-06-03T23:03:27.000028Z

yes

bhauman 2018-06-03T23:03:32.000021Z

oh so strange

bhauman 2018-06-03T23:03:38.000057Z

your on a mac?

bhauman 2018-06-03T23:04:09.000092Z

let me try to reproduce

metacritical 2018-06-03T23:04:26.000003Z

Yes

bhauman 2018-06-03T23:05:08.000107Z

i get no such warning

bhauman 2018-06-03T23:05:29.000046Z

maybe you aren't using the latest snapshot

metacritical 2018-06-03T23:05:47.000047Z

Let me check.

metacritical 2018-06-03T23:06:59.000101Z

It is the latest snapshot, i used the same command as above clj -Sdeps '{:deps {github-metacritical/cljscv {:git/url "<https://github.com/metacritical/cljscv>" :sha "6dad5bfbc29892a8c2f385b8275673863d1f6c6e"}}}' -m figwheel.main -co '{:main resume.core}' -c resume.core -r

bhauman 2018-06-03T23:07:41.000076Z

oh take "target" out of the deps edn

bhauman 2018-06-03T23:07:51.000066Z

no that shouldn't do it

bhauman 2018-06-03T23:08:04.000077Z

but you don't need it there if you are using a temp dir

metacritical 2018-06-03T23:08:12.000132Z

yes

metacritical 2018-06-03T23:08:33.000102Z

but targetis the default.

metacritical 2018-06-03T23:08:53.000046Z

It warns anyway. ther is no way to use temp is there?

metacritical 2018-06-03T23:09:01.000034Z

e

bhauman 2018-06-03T23:11:32.000104Z

that command has a "-c" in it

bhauman 2018-06-03T23:12:01.000117Z

@metacritical get rid of the -c resume.core and it works

metacritical 2018-06-03T23:12:09.000106Z

ohh

bhauman 2018-06-03T23:12:17.000006Z

I stated that above 🙂

metacritical 2018-06-03T23:12:27.000050Z

I didnt see.

metacritical 2018-06-03T23:12:32.000012Z

Sorry

metacritical 2018-06-03T23:13:56.000051Z

@bhauman thankyou it works!!! 🙂

👍 1
metacritical 2018-06-03T23:15:58.000019Z

@bhauman There is only one problem it does not start the resume.core ns which i want to start as soon as it loads.

metacritical 2018-06-03T23:17:38.000037Z

So a -c resume.core is a necessity.

bhauman 2018-06-03T23:18:27.000110Z

-c isn't a neccessity

bhauman 2018-06-03T23:19:21.000115Z

its loading core

metacritical 2018-06-03T23:20:21.000095Z

wow

metacritical 2018-06-03T23:24:40.000061Z

@bhauman it warns without the -c

bhauman 2018-06-03T23:49:40.000159Z

yes it will as the resume.core is not supposed to be there

bhauman 2018-06-03T23:50:48.000098Z

@metacritical ^

metacritical 2018-06-03T23:51:26.000016Z

@bhauman yes if i dont use the -c flag, it loads the default figwheel.main

metacritical 2018-06-03T23:51:49.000115Z

1 sec

bhauman 2018-06-03T23:52:02.000078Z

it really shouldn't

metacritical 2018-06-03T23:52:18.000041Z

I understand.

metacritical 2018-06-03T23:55:00.000006Z

@bhauman does it look like a caching issue?

bhauman 2018-06-03T23:55:31.000034Z

looks like you don't have the latest

bhauman 2018-06-03T23:55:53.000129Z

as I fixed this bug earlier today

metacritical 2018-06-03T23:56:43.000122Z

hmm

metacritical 2018-06-03T23:56:56.000120Z

will clean the .mvn and check again.