This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-29
Channels
- # adventofcode (20)
- # announcements (6)
- # asami (13)
- # babashka (9)
- # beginners (80)
- # calva (53)
- # cider (16)
- # clj-kondo (24)
- # cljs-dev (40)
- # clojure (13)
- # clojure-australia (9)
- # clojure-europe (117)
- # clojure-india (3)
- # clojure-italy (4)
- # clojure-nl (5)
- # clojure-sg (1)
- # clojure-spec (4)
- # clojure-uk (6)
- # clojurescript (6)
- # cursive (41)
- # datalog (5)
- # datomic (11)
- # emacs (9)
- # events (1)
- # fulcro (46)
- # integrant (31)
- # jobs (1)
- # kaocha (1)
- # lein-figwheel (3)
- # lsp (2)
- # meander (3)
- # missionary (4)
- # pathom (6)
- # portal (84)
- # re-frame (3)
- # remote-jobs (1)
- # reveal (2)
- # shadow-cljs (36)
- # tools-build (3)
- # xtdb (17)
clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.758"}}}' -M --main cljs.main --compile main.goog-issue
yields
// Compiled by ClojureScript 1.10.758 {}
goog.provide('main.goog_issue');
goog.require('cljs.core');
goog.typeOf("");
//# sourceMappingURL=goog_issue.js.map
clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.891"}}}' -M --main cljs.main --compile main.goog-issue
blows up with
Unexpected error (ExceptionInfo) compiling at (REPL:1).
No such namespace: goog, could not locate goog.cljs, goog.cljc, or JavaScript source providing "goog" in file /Users/orestis/dev/clj-kondo-cljs-bug/src/main/goog_issue.cljs
Full report at:
/var/folders/5d/6gc_14214js5lwj2j8llw0vm0000gn/T/clojure-8016216251114526219.edn
@orestis you don't need to require top level goog
btw, it's kind of anti pattern since it's not a thing
that said, it might be a regression though I thought we had internal tests for that already
if more people report it can think about reintroducing it - but again it's not necessary
Funny thing is that shadow-cljs accepts it happily (using the same cljs version) so it's not really a regression for our project. Just something we happened to notice by accident.
$ clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.891"}}}' -M -m cljs.main -re node
Downloading: org/clojure/clojurescript/1.10.891/clojurescript-1.10.891.pom from central
Downloading: org/clojure/clojurescript/1.10.891/clojurescript-1.10.891.jar from central
ClojureScript 1.10.891
cljs.user=> goog/typeOf
This hangs for me.I did notice one regression I mentioned here or in #clojurescript but didn't get feedback on yet:
cljs.user=> (require '[clojure.string :as str] :reload)
Execution error (TypeError) at (<cljs repl>:1).
Cannot read property 'remove' of undefined
(clojure.string is just a random example here, it happens with any namespace I try to reload)
This shows that it used to work:
$ clj -Sdeps '{:deps {org.clojure/clojurescript {:mvn/version "1.10.879"}}}' -M -m cljs.main -re node
ClojureScript 1.10.879
cljs.user=> (require '[clojure.string :as str] :reload)
nil
@dnolen should there be a mention of goog like http://cljs.github.io/api/syntax/#js-namespace
it's a simple fix and not to ClojureScript actually, just the GCL custom build we do - so will patch it up
@borkdude https://clojure.atlassian.net/browse/CLJS-3337 fixed give it a try when you have time
@dnolen that was fast. confirming:
$ clj -Sdeps '{:deps {org.clojure/clojurescript {:git/url "" :git/sha "02b450af9c5f3a1fa2ee949c28c3a671987d7e54"}}}' -M -m cljs.main -re node
Cloning:
Checking out: at 02b450af9c5f3a1fa2ee949c28c3a671987d7e54
ClojureScript 0.0.1828047738
cljs.user=> (require '[clojure.string :as str] :reload)
nil
cljs.user=>
I can't find how the http://cljs.github.io/api/ is generated. Nor clojure/clojurescript or clojure/clojurescript-site bring up any results...