This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-06
Channels
- # 100-days-of-code (15)
- # beginners (32)
- # calva (2)
- # cider (37)
- # clara (1)
- # cljs-dev (47)
- # clojure (177)
- # clojure-boston (1)
- # clojure-dev (2)
- # clojure-germany (1)
- # clojure-greece (5)
- # clojure-italy (13)
- # clojure-nl (2)
- # clojure-sanfrancisco (1)
- # clojure-uk (72)
- # clojurescript (46)
- # cursive (20)
- # datascript (7)
- # datomic (14)
- # devcards (6)
- # docker (1)
- # duct (1)
- # emacs (1)
- # figwheel (3)
- # figwheel-main (151)
- # graphql (2)
- # hyperfiddle (1)
- # interop (3)
- # jobs (3)
- # lumo (2)
- # off-topic (21)
- # pedestal (1)
- # re-frame (9)
- # reagent (25)
- # shadow-cljs (57)
- # slack-help (4)
- # specter (21)
- # tools-deps (53)
- # vim (2)
how do I clear the cache trying to do clj -A:new figwheel-main hello-world.app --reagent but getting yesterdays cached version of fighweel.main template?
yeah I see that however also saw you updated template so tryed to run clj -Anew but keep getting old template settings?
@gas does clj -Sforce
work to clear the cache (that clj
keeps)?
(or you can just delete the .cpcache
folder where you are running clj
and that should force it to recreate any classpaths)
I think Alex mentioned a bug around snapshot handling...
Ah, here we go https://clojurians.slack.com/archives/C6QH853H8/p1536058198000100
The .cpcache
folder exists wherever you run clj
(it creates that in every folder that you run it in)
Per Alex's comment?
(snapshots only get checked for once a day)
yeah but not sure how bhaumann figwheel-main template works as it doesnt seem to have a version. presume its goes off git?
dont seem to have .cpcache where I am running clj? on a mac not in home wither. hmm found it in .clojure/.cpcache
clj-new
requests RELEASE or SNAPSHOT versions as part of the dependency lookup as I recall... Let me go look at the code. It's been a while since I wrote it.
@bhauman ok - I have copied your template and works great - FYI only issue in template at moment you need react as deps for reagent config for it to work with regent 0.8.1
OK, so here's what happens in clj-new
...
...it looks for <template>/clj-template then <template>/boot-template then <template>/lein-template, in that order.
@seancorfield so no snapshot versions?
For the clj-template, if the template name looks like a git URL or a filesystem local path, it will only use that.
Otherwise it will either request a RELEASE version or a SNAPSHOT version -- but I'm checking whether the flag to expose snapshot is in place...
...right now, that flag isn't exposed in clj-new
(only in boot-new
... and lein new
)
BTW, a "git template" looks like <url to repo>@<SHA> and the last part of the URL is considered to be the template name.
So you can pull specific versions of templates down from GitHub using that.
@bhauman ok I commented out react and it works this time! Only diff is i had the #framework part in my core.cljs but dont see any react stuff in that code
Ah, it won't work with https://github.com/bhauman/figwheel-main-template because it ends it -template
rather than just the template name (`figwheel-main`).
@seancorfield the snapshot part won’t work?
The git dependency won't work.
clj -A:new
That would work if that was indeed the name of the repo -- but you have -template
on it.
I could provide an option to override the actual template name (like I do with local paths: /path/to/some/code::my-template
Well, the problem is that the template name doesn't match the repo path.
If I added that option, you could do
clj -A:new hello-world.app
I should make it consistent on both git and local deps really...
And figure out a way to enable snapshot lookup...
I'll work on those tomorrow afternoon or over the weekend.