This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-10
Channels
- # announcements (1)
- # beginners (2)
- # calva (41)
- # cider (3)
- # cljdoc (2)
- # cljs-dev (23)
- # clojure (94)
- # clojure-dev (23)
- # clojure-russia (5)
- # clojure-spec (9)
- # clojure-uk (85)
- # clojurescript (94)
- # code-reviews (1)
- # cursive (5)
- # datomic (1)
- # emacs (8)
- # figwheel (1)
- # figwheel-main (10)
- # fulcro (27)
- # graphql (11)
- # hyperfiddle (1)
- # jobs-discuss (10)
- # kaocha (3)
- # luminus (7)
- # lumo (1)
- # off-topic (85)
- # onyx (1)
- # pedestal (1)
- # re-frame (3)
- # shadow-cljs (21)
- # tools-deps (1)
- # yada (6)
Hi all. When I run -bo
with leiningen and my build fails, it's still returning a 0 as the exit code. Is that a known issue or is there a way I can fix it?
I'm running: lein trampoline run -m figwheel.main -- -bo client
and client.cljs.edn looks like: {:main my.company.client.main}
Also weirdly sometimes the whole compilation runs twice. Here's my full output:
$ lein trampoline run -m figwheel.main -- -bo client
[Figwheel] Compiling build client to "target/public/cljs-out/client-main.js"
[Figwheel] Failed to compile build client in 6.094 seconds.
[Figwheel] Compile Exception /project/path/src/my/company/client/main.cljs line:4 column:14
No such namespace: my.company.ui.external, could not locate my/company/ui/external.cljs, my/company/ui/external.cljc, or JavaScript source providing "my.company.ui.external" in file /project/path/src/my/company/client/main.cljs
1 (ns my.company.client.main
2 (:require [my.company.client.core :as client]
3 [fulcro.client :as core]
4 [my.company.ui.external :as ui]))
^---
5
6 ; This is the production entry point. In dev mode, we do not require this file at all, and instead mount (and
7 ; hot code reload refresh) from cljs/user.cljs
8 (reset! client/app (core/mount @client/app ui/Root "app"))
[Figwheel:SEVERE] clojure.lang.ExceptionInfo: No such namespace: my.company.ui.external, could not locate my/company/ui/external.cljs, my/company/ui/external.cljc, or JavaScript source providing "my.company.ui.external" in file /project/path/src/my/company/client/main.cljs
[Figwheel] Compiling build client to "target/public/cljs-out/client-main.js"
[Figwheel] Failed to compile build client in 0.416 seconds.
[Figwheel] Compile Exception /project/path/src/my/company/client/main.cljs line:4 column:14
No such namespace: my.company.ui.external, could not locate my/company/ui/external.cljs, my/company/ui/external.cljc, or JavaScript source providing "my.company.ui.external" in file /project/path/src/my/company/client/main.cljs
1 (ns my.company.client.main
2 (:require [my.company.client.core :as client]
3 [fulcro.client :as core]
4 [my.company.ui.external :as ui]))
^---
5
6 ; This is the production entry point. In dev mode, we do not require this file at all, and instead mount (and
7 ; hot code reload refresh) from cljs/user.cljs
8 (reset! client/app (core/mount @client/app ui/Root "app"))
[Figwheel:SEVERE] clojure.lang.ExceptionInfo: No such namespace: my.company.ui.external, could not locate my/company/ui/external.cljs, my/company/ui/external.cljc, or JavaScript source providing "my.company.ui.external" in file /project/path/src/my/company/client/main.cljs
$ echo $?
0