cljfx

Jonathan Bennett 2023-12-03T12:16:57.145809Z

Ok, I'm trying to figure out how to add selection to my table, I think I've done this correctly, but I'm getting an error message java.lang.IllegalArgumentException: No implementation of method: :create of protocol: #'cljfx.lifecycle/Lifecycle found for class: nil https://github.com/jonathanabennett/megastrike/blob/c64bade449303ebcd255c8392e2edd470cac095e/src/megastrike/gui/views.clj#L58

Jonathan Bennett 2023-12-04T11:57:13.238929Z

How would I use that if I'm using Leiningen? It isn't a dependency because I don't want it installed when I build the uberjar.

vlaaad 2023-12-04T11:57:58.891919Z

add it as a :dev dependency

vlaaad 2023-12-04T11:59:08.638409Z

the code snippet in this readme section sketches how you can use it in dev while excluding it for the build

Jonathan Bennett 2023-12-04T12:04:48.648179Z

So how do I add it as a :dev dependency? Like this? :profiles {:dev {:dependencies [[io.github.cljfx/dev "1.0.38"]]}}

Jonathan Bennett 2023-12-04T12:04:59.420749Z

Still learning how all of this works

vlaaad 2023-12-04T12:05:16.310899Z

looks like it

✅ 1
Jonathan Bennett 2023-12-04T12:13:40.125789Z

Oh man, this help-ui... That's life-changing!

👍 1
Jonathan Bennett 2023-12-03T12:17:29.251999Z

As a side note, when I encounter these errors, I never know what to do to debug them. What's nil? where did it come from? How can I tell?

Jonathan Bennett 2023-12-03T12:50:39.234989Z

Ok, I managed to find it. I had some of the property keywords incorrect. I'm still not satisfied with how I'm debugging these errors (which is basically swiping back and forth between the example code and my code until I feel my eyes start to cross).

vlaaad 2023-12-03T15:44:57.351099Z

Hey check out cljfx/dev

vlaaad 2023-12-03T15:45:11.745059Z

https://github.com/cljfx/dev

vlaaad 2023-12-03T15:45:51.328469Z

It helps with errors like these