This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-28
Channels
- # beginners (8)
- # boot (49)
- # cljs-dev (29)
- # cljsrn (9)
- # clojure (238)
- # clojure-dev (3)
- # clojure-gamedev (1)
- # clojure-italy (7)
- # clojure-norway (11)
- # clojure-russia (39)
- # clojure-sanfrancisco (3)
- # clojure-spec (116)
- # clojure-sweden (2)
- # clojure-uk (53)
- # clojurescript (90)
- # cursive (13)
- # datomic (12)
- # defnpodcast (2)
- # dirac (1)
- # emacs (11)
- # figwheel (2)
- # hoplon (15)
- # jobs (3)
- # jobs-discuss (48)
- # keechma (1)
- # klipse (4)
- # leiningen (16)
- # luminus (4)
- # lumo (49)
- # mount (10)
- # off-topic (1)
- # om (13)
- # onyx (15)
- # pedestal (67)
- # perun (1)
- # planck (16)
- # powderkeg (33)
- # proton (1)
- # protorepl (2)
- # re-frame (16)
- # reagent (4)
- # ring (9)
- # ring-swagger (10)
- # rum (5)
- # slack-help (1)
- # spacemacs (1)
- # uncomplicate (15)
- # untangled (19)
- # yada (58)
It is not immediately obvious to me how you can fix http://dev.clojure.org/jira/browse/CLJS-1989, so I just logged it for now. (It involves a side effect during macroexpansion.) Perhaps someone here might have a clever idea. 🙂
Is it possible that ClojureScript compiler can not resolve certain Closure compatible modules?
I can post a repro if needed. Basically I have this in compiler config :libs ["src/app_db_gen.js"]
which has goog.provide('app.db’);
,
but CLJS compiler throws No such namespace: app.db, could not locate app/db.cljs, app/db.cljc, or Closure namespace “app.db”
@roman01la it should work yes
@dnolen here’s a repro project https://github.com/roman01la/lf-clj-demo
@roman01la I really don’t have time to look at repro projects
@roman01la your cljs file does (:require [app.db :as db])
but the .js file never provides that
@thheller it worked, thanks
I suspect Closure Compiler doesn’t care about location of the goog.provide
call?
closure has https://github.com/google/closure-compiler/blob/master/src/com/google/javascript/jscomp/deps/JsFileParser.java but cljs.closure
is using a custom made regexp solution to extract provide/require
is there any reason behind this?