This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-24
Channels
- # announcements (5)
- # aws (5)
- # aws-lambda (6)
- # babashka (6)
- # beginners (48)
- # calva (54)
- # clj-commons (12)
- # clj-kondo (39)
- # cljfx (3)
- # cljs-dev (11)
- # clojure (91)
- # clojure-europe (25)
- # clojure-uk (3)
- # clojurescript (16)
- # cursive (2)
- # data-oriented-programming (6)
- # datomic (8)
- # emacs (10)
- # events (3)
- # fulcro (2)
- # functionalprogramming (2)
- # graalvm (4)
- # graphql (2)
- # helix (1)
- # honeysql (4)
- # jobs (1)
- # malli (4)
- # nextjournal (21)
- # off-topic (5)
- # other-languages (4)
- # overtone (3)
- # reitit (17)
- # releases (2)
- # rewrite-clj (6)
- # ring (6)
- # shadow-cljs (37)
@sritchie09 what makes you think this is shadow-specific? this is a standard cljs compiler warning
Of course you're right. I bumped shadow and that bumped cljs too, plus tests hang in CI for an hour - off to debug!
Though it is a problem I guess in this case, since I am explicitly overriding + and don't need the validation anymore. Maybe if I exclude I can kill it
Vs just replacing the var
so macros are only regcognized if this ns is loaded by other means, which may be unpredicatable
I'd assume the infix
thing is a macro so for CLJS this needs a self-require (:require-macros [sicmutils.env])
Nope, just a function
The example is the same without the ->infix, that was just for printing a string
No macros at all in the example, just a function + from my namespace
Oh, it's an extensible + that is adding symbols in this case, but can do numbers, vectors, functions, and anything you extend it to
Imagine from clojure.algo.generic
It totally does
It works great in the REPL usually and in all tests, etc and has for a year
And works in the example where I bind the + to f as an example
This is the reader making an incorrect assumption about what the symbol + means
The sicmutils library? All cljc
It seems like it is just a problem with the REPL launched like in my example , not shadow's test runner or the cider repl
For cljs
I can prove it when I'm at a computer, I'll put this together for the cljs folks and see if this changed with the recent version or it's been this way
Yup, I wrote my own lighter weight one for cljs vs using Potemkinā¦ it doesn't pull any metadata over etc which is not ideal
Not ideal but works for now
did you try this with regular CLJS? as far as I can tell shadow-cljs is doing everything it is supposed to
repro reported in #cljs-dev maybe someone has an idea. not sure if this is a known issue.
Thank you for the repro!
$ clj -M -m cljs.main
Failed to launch a browser:
No X11 DISPLAY variable was set,
but this program performed an operation which requires it.
You can instead launch a non-browser REPL (Node or Nashorn).
You can disable automatic browser launch with this REPL option
:launch-browser false
and you can specify the listen IP address with this REPL option
:host "127.0.0.1"
Waiting for browser to connect to ...
ClojureScript 1.10.866
(+ 'x 'x)
WARNING: cljs.core/+, all arguments must be numbers, got [cljs.core/Symbol cljs.core/Symbol] instead at line 1 <cljs repl>
"xx"