This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-14
Channels
- # announcements (11)
- # babashka (82)
- # beginners (51)
- # calva (11)
- # cider (3)
- # clj-kondo (62)
- # cljdoc (10)
- # cljs-dev (22)
- # clojure (75)
- # clojure-boston (1)
- # clojure-brasil (3)
- # clojure-czech (4)
- # clojure-europe (49)
- # clojure-france (10)
- # clojure-italy (16)
- # clojure-nl (5)
- # clojure-uk (9)
- # clojurescript (69)
- # community-development (33)
- # conjure (12)
- # core-async (6)
- # cursive (2)
- # datalevin (7)
- # datomic (6)
- # graalvm (13)
- # gratitude (2)
- # honeysql (3)
- # introduce-yourself (1)
- # lsp (37)
- # nextjournal (62)
- # off-topic (29)
- # pathom (1)
- # quil (2)
- # reitit (4)
- # releases (2)
- # sci (1)
- # shadow-cljs (28)
- # spacemacs (10)
- # sql (1)
- # tools-build (3)
- # vim (3)
Is this expected? Probably an implementation detail of vararg functions?
cljs.user=> (defn foo [_ & args] (js-arguments))
#'cljs.user/foo
cljs.user=> (foo 1 2 3)
#js {"0" 1, "1" (2 3)}
A different issue btw, when I use 1.11.4, and try to load a namespace in the Node REPL, I get:
$ clj -Sdeps '{:paths ["."] :deps {org.clojure/clojurescript {:mvn/version "RELEASE"}}}' -M -m cljs.main -re node
ClojureScript 1.11.4
cljs.user=> (require '[sci.impl.fns] :reload)
Unexpected error (ExceptionInfo) compiling at (<cljs repl>:1:1).
No such namespace: sci.impl.fns, could not locate sci/impl/fns.cljs, sci/impl/fns.cljc, or JavaScript source providing "sci.impl.fns" at line 1 <cljs repl>
It works with SHA f3e0bb503333bb53c4312d4bc19aa24505185667
(latest on master currently). Maybe 1.11.4 is an accidentally released thing?https://ask.clojure.org/index.php/11575/built-clojurescript-functions-which-results-things-minified
let me know if you want me to make a jira out of that
@alexmiller sure thanks!
@borkdude I originally assumed cljs v1.11.4 was a beta/early release, just because of the 11
.
But I see it referenced in the description of #clojurescript and also the change logs.
That said, https://clojurescript.org/.
So still a bit not sure.
@borkdude given the :paths ["."]
I assume you run this in the sci repo? are you sure you are in the correct directory? missing some context there
@thheller Oh crap, you're right. That :paths
was from a previous experiment in which I wanted to load a script in the current directory. Deleting that fixed it. Major facepalm.
@borkdude maybe a facepalm, but you still raised an interesting question regarding current official release. I think the 11 might make folks wonder a bit. (It did me).
site published
@alexmiller The CLJS site links to Cognitect 24x7 support for ClojureScript, but the link is dead.