This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-26
Channels
- # adventofcode (2)
- # beginners (69)
- # boot (37)
- # cider (6)
- # clara (31)
- # cljs-dev (75)
- # cljsrn (5)
- # clojure (72)
- # clojure-dev (7)
- # clojure-italy (11)
- # clojure-nl (8)
- # clojure-russia (2)
- # clojure-spec (56)
- # clojure-uk (54)
- # clojure-za (1)
- # clojurescript (156)
- # cursive (2)
- # datomic (34)
- # emacs (1)
- # fulcro (227)
- # hoplon (74)
- # jobs (1)
- # jobs-discuss (16)
- # leiningen (5)
- # lumo (17)
- # off-topic (9)
- # om (3)
- # onyx (10)
- # other-languages (1)
- # portkey (2)
- # re-frame (2)
- # reagent (36)
- # reitit (1)
- # remote-jobs (1)
- # ring-swagger (8)
- # shadow-cljs (85)
- # slack-help (2)
- # spacemacs (6)
- # specter (3)
- # sql (17)
- # test-check (15)
- # tools-deps (80)
ah, i found the issue: https://github.com/boot-clj/boot/issues/676
I run into an issue with boot 2.8.0 where I’m loading a file from the resource to create queries with hugsql.
( "dre/db/html/query.sql")
This resolves to file:/Users/Borkdude/.boot/cache/tmp/Users/Borkdude/dre/DocSearch/app/gpu/-ueasqk/dre/db/html/query.sql
, but when I change the file in my resources dir, the changes are not seen by hugsql. This cached file remains the same…@borkdude the classpath is static unless you use watch
(in which case it gets updated). Using watch
requires you to use a separate process for the repl client however..
Hmm, odd that it used to work. I suspect that there's probably something more here then, I've not been tracking commits to boot very closely recently, so there could be some good ideas on how to debug this in the changelog.
First time:
file:/Users/Borkdude/.boot/cache/tmp/Users/Borkdude/dre/DocSearch/app/h2a/-ueasqk/dre/db/html/query.sql
After edit:
file:/Users/Borkdude/.boot/cache/tmp/Users/Borkdude/dre/DocSearch/app/h2a/-ueasqk/dre/db/html/query.sql
hmm, tested in both versions with stripped down project and when I slurp the edited file I see the edits… so, don’t know what’s going on in my project 🙂
This should be true
…
(= (slurp ( "dre/db/html/query.sql"))
(slurp (io/file "src/dre/db/html" "query.sql")))
I’m one step closer to the solution, commented out some composed tasks and now it works..
ok, found the issue, when I comment out this task then it works:
(deftask include-assets []
(comp
(sift :add-jar {'cljsjs/c3 #"cljsjs/c3/common/c3.min.css"})
(sift :move {#"cljsjs/c3/common/c3.min.css"
"public/css/vendor/c3/c3.min.css"})))
Not sure if anyone can make sense out of that.@borkdude thanks for finding that, can you please post your findings on a github issue if you haven't yet? it sounds like we should consider reverting the change
also if you could elaborate a little on your workflow there, that would be supremely helpful
that's great, thank you
I can imagine this would also break some people’s workflows when they were relying on evaluating clojure on save, like some reloaded workflows do?
Fwiw, I had to change a bunch of stuff in our build.boots (we have 10 of them) related to using the newest s3-private-wagon which only works with boot 2.8.0, so reverting that is a bit painful. I’d rather not go back to 2.7.2 now, but I might if there isn’t a good workaround for this.
@borkdude perhaps i should just push 2.8.1 with the revert, and then we can discuss workflows and whether we want the change? without any pressure