Comments (1)
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)
- CompilerException org.reflections.ReflectionsException: Couldn't find subtypes of Object. HOT 4
- Standardise how examples are run
- Auto generate and deploy API docs from master HOT 3
- Use HTML as frontend HOT 2
- Direct support for loading FXML files HOT 3
- Support for WebView HOT 2
- Special handling of :shown property prevents on-showing/on-shown events being triggered.
- Doesn't seem to work with Ubuntu out of the box HOT 14
- Remove sudo:false from TravisCI config file HOT 1
- fn-fx doesn't work on OpenJDK 1.8 HOT 4
- using alternate hiccup syntax for defining dom HOT 10
- UI not updating even though the model differs
- How do you get the selected value from a choice-box HOT 1
- Endless changeloop for sliders HOT 6
- bind functionality HOT 2
- table-cell with button
- (ui/text :fill (ui/color ...)) does not set fill property to said color
- lein uberjar gives an error ClassNotFoundException HOT 1
- Event stop propagation
- Unable to open DISPLAY HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fn-fx.