Skip to content
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.

Self-hosted compatibility #20

Open
arichiardi opened this issue Feb 22, 2017 · 4 comments
Open

Self-hosted compatibility #20

arichiardi opened this issue Feb 22, 2017 · 4 comments

Comments

@arichiardi
Copy link

arichiardi commented Feb 22, 2017

Hello folks!

Given the new developments in lumo, I was playfullyngly trying to see if I could make hildebrand work in a cljs-in-cljs environment:

Lumo 1.2.0
ClojureScript 1.9.482

So I setup my dependencies:

(def dependencies '[[org.clojure/clojurescript "1.9.473" :scope "provided"] ;; maybe I don't need this one
                    [io.nervous/hildebrand "0.4.5" :scope "test" :exclusions #{org.clojure/clojurescript org.clojure/clojure org.clojure/tools.reader}]
                    [andare "0.4.0"] ;; replacing core.async
                    [cljsjs/bignumber "2.1.4-1" :scope "test"]])

but when I required the namespace I got:

cljs.user=> (require 'hildebrand.core)
                        ⬆
Can't recur here at line 88 clojure/core.clj
WARNING: list already refers to: cljs.core/list being replaced by: clojure.core$macros/list at line 16 clojure/core.clj
WARNING: cons already refers to: cljs.core/cons being replaced by: clojure.core$macros/cons at line 22 clojure/core.clj
WARNING: Can't take value of macro cljs.core/let at line 32 clojure/core.clj
WARNING: let already refers to: cljs.core/let being replaced by: clojure.core$macros/let at line 32 clojure/core.clj
WARNING: Can't take value of macro cljs.core/loop at line 37 clojure/core.clj
WARNING: loop already refers to: cljs.core/loop being replaced by: clojure.core$macros/loop at line 37 clojure/core.clj
WARNING: Can't take value of macro cljs.core/fn at line 42 clojure/core.clj
WARNING: fn already refers to: cljs.core/fn being replaced by: clojure.core$macros/fn at line 42 clojure/core.clj
WARNING: first already refers to: cljs.core/first being replaced by: clojure.core$macros/first at line 49 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/coll at line 55 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/coll at line 55 clojure/core.clj
WARNING: next already refers to: cljs.core/next being replaced by: clojure.core$macros/next at line 57 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/x at line 64 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/x at line 64 clojure/core.clj
WARNING: rest already refers to: cljs.core/rest being replaced by: clojure.core$macros/rest at line 66 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/x at line 73 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/x at line 73 clojure/core.clj
WARNING: conj already refers to: cljs.core/conj being replaced by: clojure.core$macros/conj at line 75 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/coll at line 84 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/coll at line 84 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/coll at line 85 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/x at line 85 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/coll at line 85 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/x at line 85 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/coll at line 86 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/x at line 86 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/& at line 86 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/xs at line 86 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/xs at line 87 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/coll at line 88 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/x at line 88 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/xs at line 88 clojure/core.clj
WARNING: Use of undeclared Var clojure.core$macros/xs at line 88 clojure/core.clj

Which is very unfortunate. Maybe not a priority but it would be nice if this could work. I'll try some debugging as well.

@moea
Copy link
Member

moea commented Feb 22, 2017

@arichiardi hildebrand.core isn't doing anything super unusual, except maybe using a macro to define each of the top-level functions in that namespace. I haven't used lumo - those errors look pretty inscrutable/distant to me - let me know what I could do to help.

@arichiardi
Copy link
Author

Inscrutable is the right word 😀
I will try moving the macro around and see what happens, I have noticed that it is only a simple interning thingie. Thanks for the prompt answer!

@arichiardi
Copy link
Author

It looks like the errors are due to malpositioned macros in conditionals. I am trying to understand more, also excluding plumbing helps a bit. In any case I don't have much time to spend on it at the moment, I will get back to it.

@arichiardi
Copy link
Author

Oh, also cljx files probably would not work: https://github.com/plumatic/plumbing/blob/master/src/plumbing/core.cljx

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants