Giter Club home page Giter Club logo

Comments (1)

roti avatar roti commented on September 7, 2024

Can you provide some code which leads to this error? Maybe it's a bug...

As for better error messages I agree, but this needs to be broken down into something more specific. I think we could start by looking at some use cases where a better error is clearly needed and see how it can be done.
For example one thing that crosses my mind is a validation of the properties, but this is good enough in my opinion. Here's what you get when you try to access a wrong property:

(ui/v-box :listen/height2 {:event :height-change})

leads to

#error {
 :cause javafx.scene.layout.VBox.height2Property()
 :via
 [{:type java.lang.NoSuchMethodException
   :message javafx.scene.layout.VBox.height2Property()
   :at [java.lang.Class getMethod Class.java 1786]}]
 :trace
 [[java.lang.Class getMethod Class.java 1786]
  [fn_fx.render_core$get_prop_methods invokeStatic render_core.clj 313]
  [fn_fx.render_core$get_prop_methods invoke render_core.clj 295]
  [fn_fx.render_core$get_add_listener invokeStatic render_core.clj 331]
  [fn_fx.render_core$get_add_listener invoke render_core.clj 327]
  [fn_fx.render_core$eval2225$fn__2226 invoke render_core.clj 96]
  [clojure.lang.MultiFn invoke MultiFn.java 238]
  [fn_fx.fx_dom.FXDom$fn__2474 invoke fx_dom.clj 24]
  [clojure.lang.AFn run AFn.java 22]
  [com.sun.javafx.application.PlatformImpl lambda$null$173 PlatformImpl.java 295]
  [java.security.AccessController doPrivileged AccessController.java -2]
  [com.sun.javafx.application.PlatformImpl lambda$runLater$174 PlatformImpl.java 294]
  [com.sun.glass.ui.InvokeLaterDispatcher$Future run$$$capture InvokeLaterDispatcher.java 95]
  [com.sun.glass.ui.InvokeLaterDispatcher$Future run InvokeLaterDispatcher.java -1]
  [com.sun.glass.ui.win.WinApplication _runLoop WinApplication.java -2]
  [com.sun.glass.ui.win.WinApplication lambda$null$148 WinApplication.java 191]
  [java.lang.Thread run Thread.java 748]]}

So the question is what other use cases are there which need a better error.

from fn-fx.

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.