Giter Site home page Giter Site logo

Does not compile in CLJS about geom HOT 5 CLOSED

thi-ng avatar thi-ng commented on August 26, 2024
Does not compile in CLJS

from geom.

Comments (5)

den1k avatar den1k commented on August 26, 2024

Works after local install of [thi.ng/geom "0.0.882"]

git clone [email protected]:thi-ng/geom.git
cd geom
./tangle-all.sh
./install-all.sh

from geom.

postspectacular avatar postspectacular commented on August 26, 2024

Hiya, am confused - can you please point me to your project and I will investigate. Right now I can't tell you what's going on... thanks!

from geom.

den1k avatar den1k commented on August 26, 2024

@postspectacular

https://github.com/den1k/geom-example

➜  geom-example git:(master) ✗ lein figwheel
Figwheel: Starting server at http://localhost:3449
Focusing on build ids: dev
Compiling "resources/public/js/compiled/geom_example.js" from ["src"]...
Compiling "resources/public/js/compiled/geom_example.js" failed.
clojure.lang.ExceptionInfo: failed compiling file:target/figwheel_temp/dev/figwheel/connect.cljs
 at clojure.core$ex_info.invoke (core.clj:4593)
Caused by: clojure.lang.ExceptionInfo: No such namespace: thi.ng.geom.viz.core, could not locate thi/ng/geom/viz/core.cljs, thi/ng/geom/viz/core.cljc, or Closure namespace "thi.ng.geom.viz.core"
 at clojure.core$ex_info.invoke (core.clj:4593)

clojure.lang.ExceptionInfo: No such namespace: thi.ng.geom.viz.core, could not locate thi/ng/geom/viz/core.cljs, thi/ng/geom/viz/core.cljc, or Closure namespace "thi.ng.geom.viz.core" {:tag :cljs/analysis-error}
    at clojure.core$ex_info.invoke(core.clj:4593)
    at cljs.analyzer$error.invoke(analyzer.cljc:543)
    at cljs.analyzer$error.invoke(analyzer.cljc:541)
    at cljs.analyzer$analyze_deps.invoke(analyzer.cljc:1649)
    at cljs.analyzer$ns_side_effects.invoke(analyzer.cljc:2485)
    at cljs.analyzer$analyze_STAR_$fn__2089.invoke(analyzer.cljc:2566)
    at clojure.lang.PersistentVector.reduce(PersistentVector.java:333)
    at clojure.core$reduce.invoke(core.clj:6518)
    at cljs.analyzer$analyze_STAR_.invoke(analyzer.cljc:2566)
    at cljs.analyzer$analyze.invoke(analyzer.cljc:2581)
    at cljs.analyzer$analyze_file$fn__2140.invoke(analyzer.cljc:2825)
    at cljs.analyzer$analyze_file.invoke(analyzer.cljc:2820)
    at figwheel_sidecar.repl$analyze_build.invoke(repl.clj:242)
    at figwheel_sidecar.repl$analyze_builds.invoke(repl.clj:247)
    at figwheel_sidecar.repl$run_autobuilder_helper.invoke(repl.clj:295)
    at figwheel_sidecar.repl$start_autobuild.invoke(repl.clj:366)
    at figwheel_sidecar.repl$run_autobuilder.invoke(repl.clj:576)
    at user$eval16119.invoke(form-init5114583419288522768.clj:1)
    at clojure.lang.Compiler.eval(Compiler.java:6782)
    at clojure.lang.Compiler.eval(Compiler.java:6772)
    at clojure.lang.Compiler.load(Compiler.java:7227)
    at clojure.lang.Compiler.loadFile(Compiler.java:7165)
    at clojure.main$load_script.invoke(main.clj:275)
    at clojure.main$init_opt.invoke(main.clj:280)
    at clojure.main$initialize.invoke(main.clj:308)
    at clojure.main$null_opt.invoke(main.clj:343)
    at clojure.main$main.doInvoke(main.clj:421)
    at clojure.lang.RestFn.invoke(RestFn.java:421)
    at clojure.lang.Var.invoke(Var.java:383)
    at clojure.lang.AFn.applyToHelper(AFn.java:156)
    at clojure.lang.Var.applyTo(Var.java:700)
    at clojure.main.main(main.java:37)
Subprocess failed

from geom.

postspectacular avatar postspectacular commented on August 26, 2024

Erm... your project.clj doesn't list geom as a dependency, so of course the namespace can't be found. If I add [thi.ng/geom "0.0.881"] to the :dependencies it compiles fine...

Also, note - this 0.0.881 version is the latest release and still uses an older version of the thi.ng/color lib (v1.0.0 of the color lib has only been released last week and has a completely different API than the previous 0.2.1 release). The dev branch of this repo (geom) has already been updated to use the new color API, but I will do some more refactoring before cutting a new release...

from geom.

den1k avatar den1k commented on August 26, 2024

oh, apologies. I figure the issue I had before was part of intellij not indexing the new project file...
Thanks!

from geom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.