This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-01
Channels
- # announcements (54)
- # asami (3)
- # aws (5)
- # babashka (8)
- # beginners (64)
- # biff (27)
- # calva (11)
- # cider (41)
- # clj-otel (7)
- # cljdoc (72)
- # clojars (20)
- # clojure (159)
- # clojure-austin (3)
- # clojure-europe (143)
- # clojure-italy (1)
- # clojure-nl (5)
- # clojure-norway (3)
- # clojure-uk (3)
- # clojurescript (19)
- # community-development (1)
- # core-typed (5)
- # cursive (3)
- # datalevin (1)
- # datomic (8)
- # emacs (13)
- # fulcro (4)
- # google-cloud (4)
- # honeysql (25)
- # java (1)
- # jobs (1)
- # lambdaisland (3)
- # lsp (121)
- # off-topic (52)
- # other-languages (1)
- # re-frame (3)
- # releases (2)
- # remote-jobs (1)
- # shadow-cljs (36)
- # sql (4)
- # xtdb (36)
Hello,
I am running this command ❯ clj -m cljs.main -O advanced -c "foo.bar"
However, I am getting this warning: WARNING: Implicit use of clojure.main with options is deprecated, use -M.
A https://www.google.com/search?client=safari&rls=en&q=WARNING%3A+Implicit+use+of+clojure.main+with+options+is+deprecated%2C+use+-M for this is not returning great results. It is a warning, but any pointers as to what I might be doing wrong?
Just add -M
after clj
.
Also, when you search such things, always surround the query with double quotes. Google treats -M
as "exclude results containing M
". Of course, since it's a single character it doesn't matter much (I think), but if you try with double quotes you will definitely get relevant results.
Thanks @U2FRKM4TW - I am now getting this error:
Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).
-d (No such file or directory)
Command: clj -M -O advanced -c foo.bar
thanks, that worked. I assumed you need one
Hey!
grid-template-areas:
"a a a"
"b c c"
"b c c";
How do I write this in hiccup? It has multiple string values for one key and I haven't got anything working. I'm trying to do it inline in a div. i.e.
[:div {:style {:grid-template-areas "a b c d d d"}}]
Thanks!Omg. I had a typo. Thanks.
:grid-template-areas "\"a b\" \"c b\" \"d d\""
does actually work. I was trying an invalid config over and over.
:grid-template-areas "\"a b\" \"c d\" \"d d\""
..................................^
I had d
but I wanted b
I also made my question harder for you to answer since my example code didn't match the example css. Sorry.
Hello, how can I override the console object in clojurescript?
(set! js/console ...)
.
But if you really have to change the default behavior, I'd override specific methods, like .log
.
What is the way to express this js this.myFn(data);
I am aware of this-as
, but I’m not sure how to phrase it.
https://cljs.github.io/api/cljs.core/this-as
In (this-as this (myFn data))
, where does the this
go? Does myFn
need to take an extra param?
this-as
just lets you provide a name for the JS this
. doesn't need to be this
. after you have that name its just regular JS interop as above
Thank you!