Giter VIP home page Giter VIP logo

Comments (5)

anmonteiro avatar anmonteiro commented on May 17, 2024

I think this is not related to Lumo, but is instead an upstream issue in the ClojureScript compiler.

See CLJS-1628 for more context.

Doesn't it work if you don't print the result of create-element? e.g. storing it in a def.

from lumo.

pesterhazy avatar pesterhazy commented on May 17, 2024

It does indeed!

from lumo.

anmonteiro avatar anmonteiro commented on May 17, 2024

Awesome. The problem is just with printing, or rather, with println. I think if you use js/console.log it'll print out the Symbol object.

The warnings do seem weird, though. Do you know what's happening there?

from lumo.

pesterhazy avatar pesterhazy commented on May 17, 2024

You're right, everything works fine if I apply the technique proposed in http://dev.clojure.org/jira/browse/CLJS-1628 by running this manually:

(extend-protocol IPrintWithWriter 
  js/Symbol 
  (-pr-writer [obj writer opts] 
    (write-all writer "#object[Symbol \"" (.toString obj) "\"]")))

from lumo.

pesterhazy avatar pesterhazy commented on May 17, 2024

As for the warnings, they originate in a few lines in debug.clj like this one: https://github.com/reagent-project/reagent/blob/master/src/reagent/debug.clj#L7 so this seems more of a reagent issues to me.

Closing this now as the issues lie elsewehre

from lumo.

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.